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::InvalidAxisIndex
if any axis is out of boundsSwizzleReshapeCodecError::InvalidAxisPermutation
if theaxes
permutation does not contain every axis index exactly onceSwizzleReshapeCodecError::MultipleRestAxes
if theaxes
permutation contains more than oneRest
-axes marker