Module matrixable::strategies
source · Expand description
Structures implementing AccessStrategy
, InPlace
and/or TransformStrategy
traits.
Re-exports§
pub use crate::req::AccessStrategy;
pub use crate::req::TransformStrategy;
pub use crate::req::SwapsDimensions;
pub use crate::req::InPlace;
Structs§
- Accesses to a matrix (the subject) are defined by entries of another matrix (the map).
- Performs a horizontal flip of a matrix.
- Performs a vertical flip of a matrix.
- This Strategy does nothing…
- Gives a new shape to the matrix.
- Reverses a matrix by performing a symmetry of elements by the center of that matrix.
- Performs a counter-clockwise rotation.
- Performs a clockwise rotation.
- Performs a circular shift of elements from left to right.
- Performs a circular shift of elements of a matrix from right to left.
- Sorts the matrix according to the result of a function. If that argument function returns true, then its first parameter is considered to come before the second parameter. The ordering can then be processed based on that assumption.
- Gives access to a portion of the matrix .
- Performs matrix transposition.
Type Aliases§
- This strategy access elements of this matrix following an ordered set of
AccessStrategy
s. This set can only contain strategies implementingAccessStrategy<Observer>
.