pub fn swizzle_reshape<T: Copy, S: Data<Elem = T>>(
data: ArrayBase<S, IxDyn>,
axes: &[AxisGroup],
) -> Result<Array<T, IxDyn>, SwizzleReshapeCodecError>Expand description
Swizzle and reshape the input data array with the new axes.
ยงErrors
Errors with
SwizzleReshapeCodecError::InvalidAxisIndexif any axis is out of boundsSwizzleReshapeCodecError::InvalidAxisPermutationif theaxespermutation does not contain every axis index exactly onceSwizzleReshapeCodecError::MultipleRestAxesif theaxespermutation contains more than oneRest-axes marker