pub fn linspace<T: LinspaceNum>(
start: T,
stop: T,
num: usize,
endpoint: bool,
) -> FerrayResult<Array<T, Ix1>>Expand description
Create a 1-D array with num evenly spaced values between start and stop.
If endpoint is true (the default in NumPy), stop is the last sample.
Otherwise, it is not included.
Analogous to numpy.linspace().
ยงErrors
Returns FerrayError::InvalidValue if num is 0 and endpoint is true
(cannot produce an empty array with an endpoint).