Function numcodecs_swizzle_reshape::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