pub fn linspace<T>(
a: T,
b: T,
n: usize
) -> impl Iterator<Item = <<T as Sub<<f32 as Mul<T>>::Output>>::Output as Add<<f32 as Mul<T>>::Output>>::Output>
Expand description
Linearly interpolates from a
through b
in n
steps, returning the intermediate result at
each step.