numcodecs_swizzle_reshape

Function undo_swizzle_reshape

Source
pub fn undo_swizzle_reshape<T: Copy, S: Data<Elem = T>>(
    encoded: ArrayBase<S, IxDyn>,
    axes: &[AxisGroup],
) -> Result<Array<T, IxDyn>, SwizzleReshapeCodecError>
Expand description

Reverts the swizzle and reshape of the encoded array with the axes and returns the original array.

Since the shape of the original array is not known, only permutations of axes are supported.

ยงErrors

Errors with