pub fn undo_swizzle_reshape_into<T: Copy>(
encoded: ArrayView<'_, T, IxDyn>,
decoded: ArrayViewMut<'_, T, IxDyn>,
axes: &[AxisGroup],
) -> Result<(), SwizzleReshapeCodecError>
Expand description
Reverts the swizzle and reshape of the encoded
array with the axes
and
outputs it into the decoded
array.
§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 markerSwizzleReshapeCodecError::MismatchedDecodeIntoArray
if theencoded
array’s shape does not match the shape that swizzling and reshaping an array of thedecoded
array’s shape would have produced