pub fn rollaxis<T: Element, D: Dimension>(
a: &Array<T, D>,
axis: usize,
start: usize,
) -> FerrayResult<Array<T, IxDyn>>Expand description
Roll an axis to a new position (similar to moveaxis).
Analogous to numpy.rollaxis().
ยงErrors
Returns FerrayError::AxisOutOfBounds if axis >= ndim or start > ndim.