Function neuronika::geomspace [−][src]
Expand description
Creates a one-dimensional variable with n geometrically spaced elements.
The elements range from start
to end
(inclusive).
Returns None
if start
and end
have different signs or if either one is zero. Conceptually,
this means that in order to obtain a Some
result, end / start
must be positive.
Panics
If n
is greater than isize::MAX
or if converting n - 1
to type f32
fails.