Crate numcodecs_swizzle_reshape

Source
Expand description

CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main

Array axis swizzle and reshape codec implementation for the numcodecs API.

Structs§

Rest
Marker to signify all remaining (not explicitly named) axes
SwizzleReshapeCodec
Codec to swizzle/swap the axes of an array and reshape it.

Enums§

Axis
An axis or all remaining axes
AxisGroup
An axis group, potentially from a merged combination of multiple input axes
SwizzleReshapeCodecError
Errors that may occur when applying the SwizzleReshapeCodec.

Functions§

swizzle_reshape
Swizzle and reshape the input data array with the new axes.
undo_swizzle_reshape
Reverts the swizzle and reshape of the encoded array with the axes and returns the original array.
undo_swizzle_reshape_into
Reverts the swizzle and reshape of the encoded array with the axes and outputs it into the decoded array.