I think the ratio between usability and Implementation complexity for this functions is high, therefore I believe is worth implementing.
The goal would be simply something like Ndarr::linspace(start: T, stop: T, n: usize)
ndarray implementation require for the T to be Float, which I'm not sure is quite necessary. T: Float it would certainly make it almost trivial to implement, but I don't se why divisible integers like linspace(2,10,5) -> Ndarr::from([2,4,6,8,10]) are not supported. Although maybe is not worth the extra work, because there is always ranges for integers.
I think the ratio between usability and Implementation complexity for this functions is high, therefore I believe is worth implementing.
The goal would be simply something like
Ndarr::linspace(start: T, stop: T, n: usize)
ndarray implementation require for the
T
to be Float, which I'm not sure is quite necessary.T: Float
it would certainly make it almost trivial to implement, but I don't se why divisible integers likelinspace(2,10,5) -> Ndarr::from([2,4,6,8,10])
are not supported. Although maybe is not worth the extra work, because there is always ranges for integers.