pub trait BitReversibleMatrix<T: Send + Sync + Clone>: Matrix<T> {
type BitRev: BitReversibleMatrix<T>;
// Required method
fn bit_reverse_rows(self) -> Self::BitRev;
}
Expand description
A trait for matrices that support bit-reversed row reordering.
Implementors of this trait can switch between row-major order and bit-reversed row order (i.e., reversing the binary representation of each row index).
This trait allows interoperability between regular matrices and views that access their rows in a bit-reversed order.
Required Associated Types§
Sourcetype BitRev: BitReversibleMatrix<T>
type BitRev: BitReversibleMatrix<T>
The type returned when this matrix is viewed in bit-reversed order.
Required Methods§
Sourcefn bit_reverse_rows(self) -> Self::BitRev
fn bit_reverse_rows(self) -> Self::BitRev
Return a version of the matrix with its row order reversed by bit index.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.