logo

Function neuronika::logspace[][src]

pub fn logspace(base: f32, start: f32, end: f32, n: usize) -> Var<Input<Ix1>>
Expand description

Creates a one-dimensional variable with n logarithmically spaced elements.

The starting value is base.powf(start) and the final one is base.powf(end).

If base is negative, all values will be negative.

Panics

If n is greater than isize::MAX or if converting n - 1 to type f32 fails.