nalgebra
nalgebra copied to clipboard
Does nalgebra provide a linspace function?
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.
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