Description
The linspace API is implemented here: https://github.com/certik/fortran-utils/blob/b43bd24cd421509a5bc6d3b9c3eeae8ce856ed88/src/mesh.f90#L157
Matlab's linspace.
The logspace is similar, but I don't have it implemented yet -- historically I have used a function called meshexp, which is more general --- it allows you to change the gradation of the mesh, which the Matlab's logspace does not allow. The NumPy's logspace allows to set different base
which allows to change gradation. So I think my meshexp
can be implemented using NumPy's logspace
. NumPy also has geomspace where you can specify the end points directly (just like in my meshexp
) but it does not allow to change gradation. So I think there is room for meshexp
, perhaps we should change the name somehow to be consistent with the other functions.