pub fn linspace<T>( start: T, stop: T, num: usize, endpoint: bool, ) -> Result<Tensor<T>>where T: Clone + Default + Send + Sync + 'static + Float + FromPrimitive,
Create an array with evenly spaced values over a specified interval