Skip to main content

linspace

Function linspace 

Source
pub fn linspace<T>(
    start: T,
    stop: T,
    num: usize,
    endpoint: bool,
) -> Result<Tensor<T>>
where T: Clone + Default + Send + Sync + 'static + Float + FromPrimitive,
Expand description

Create an array with evenly spaced values over a specified interval