nalgebra icon indicating copy to clipboard operation
nalgebra copied to clipboard

Does nalgebra provide a linspace function?

Open samehmohamed88 opened this issue 1 year ago • 1 comments

Does nalgebra provide a linspace function, similar to the python's numpy.linspace or the rust crate iter_num_tools' linspace.

I looked in the documentation but was not able to find it.

samehmohamed88 avatar Sep 01 '23 03:09 samehmohamed88

Since it's been a while since a maintainer has answered, no there is not a linspace function. Unlike numpy, nalgebra is designed for low-dimensional tensors. That being said, it would not be hard to make one by making a Dynamic vector of size N, and filling each element as the index/N

JulianKnodt avatar Sep 16 '23 06:09 JulianKnodt