Skip to main content

arange

Function arange 

Source
pub fn arange<T>(
    start: T,
    stop: T,
    step: T,
) -> Result<Array<T, Ix1>, FerrayError>
where T: ArangeNum,
Expand description

Create a 1-D array with evenly spaced values within a given interval.

Analogous to numpy.arange(start, stop, step).

§Errors

Returns FerrayError::InvalidValue if step is zero.