pub fn split<T>(
a: &Array<T, IxDyn>,
n_sections: usize,
axis: usize,
) -> Result<Vec<Array<T, IxDyn>>, FerrayError>where
T: Element,Expand description
Split an array into equal-sized sub-arrays.
n_sections must evenly divide the size along axis.
Analogous to numpy.split().
§Errors
Returns FerrayError::InvalidValue if the axis cannot be evenly split.