pub enum MatrixLayout {
RowMajor,
ColMajor,
}Expand description
Storage layout for matrix data.
Variants§
RowMajor
Row-major (C-style) ordering. Element (i,j) is at index i * cols + j.
ColMajor
Column-major (Fortran-style) ordering. Element (i,j) is at index j * rows + i.
Trait Implementations§
Source§impl Clone for MatrixLayout
impl Clone for MatrixLayout
Source§fn clone(&self) -> MatrixLayout
fn clone(&self) -> MatrixLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatrixLayout
impl Debug for MatrixLayout
Source§impl Display for MatrixLayout
impl Display for MatrixLayout
Source§impl Hash for MatrixLayout
impl Hash for MatrixLayout
Source§impl PartialEq for MatrixLayout
impl PartialEq for MatrixLayout
impl Copy for MatrixLayout
impl Eq for MatrixLayout
impl StructuralPartialEq for MatrixLayout
Auto Trait Implementations§
impl Freeze for MatrixLayout
impl RefUnwindSafe for MatrixLayout
impl Send for MatrixLayout
impl Sync for MatrixLayout
impl Unpin for MatrixLayout
impl UnsafeUnpin for MatrixLayout
impl UnwindSafe for MatrixLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more