pub struct V2MatrixColMajor<T, V>{ /* private fields */ }
Expand description
A column major matrix.
Trait Implementations§
Source§impl<T, V> Matrix<T> for V2MatrixColMajor<T, V>
impl<T, V> Matrix<T> for V2MatrixColMajor<T, V>
Source§fn at(&self, idx: impl IntoIdx<D2>) -> T
fn at(&self, idx: impl IntoIdx<D2>) -> T
Returns the element at the given
idx
of the matrix. Read moreSource§fn all(&self) -> impl Iterator<Item = T>
fn all(&self) -> impl Iterator<Item = T>
Returns an iterator of all elements of the matrix.
The direction of iteration depends on whether the matrix is row-major
or column-major. Read more
Source§fn in_bounds(&self, idx: impl Into<<D2 as Dim>::LeqIdx>) -> bool
fn in_bounds(&self, idx: impl Into<<D2 as Dim>::LeqIdx>) -> bool
Returns true if the given
idx
is in bounds of the matrix.Source§impl<T, V> MatrixColMajor<T> for V2MatrixColMajor<T, V>
impl<T, V> MatrixColMajor<T> for V2MatrixColMajor<T, V>
Source§impl<T, V> MatrixColMajorMut<T> for V2MatrixColMajor<T, V>
impl<T, V> MatrixColMajorMut<T> for V2MatrixColMajor<T, V>
Source§impl<T, V> MatrixMut<T> for V2MatrixColMajor<T, V>
impl<T, V> MatrixMut<T> for V2MatrixColMajor<T, V>
Source§fn at_mut<Idx: IntoIdx<D2>>(&mut self, idx: Idx) -> &mut T
fn at_mut<Idx: IntoIdx<D2>>(&mut self, idx: Idx) -> &mut T
Returns a mutable reference to the element at the given
idx
of the matrix. Read moreSource§fn mut_all<F>(&mut self, f: F)
fn mut_all<F>(&mut self, f: F)
Applies the mutating function
f
over all elements of the matrix.Source§fn reset_all(&mut self, value: T)
fn reset_all(&mut self, value: T)
Sets all elements of the matrix to the given
value
.
This method is often used at initialization stage of algorithms. Read moreAuto Trait Implementations§
impl<T, V> Freeze for V2MatrixColMajor<T, V>where
V: Freeze,
impl<T, V> RefUnwindSafe for V2MatrixColMajor<T, V>where
V: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, V> Send for V2MatrixColMajor<T, V>
impl<T, V> Sync for V2MatrixColMajor<T, V>
impl<T, V> Unpin for V2MatrixColMajor<T, V>
impl<T, V> UnwindSafe for V2MatrixColMajor<T, V>where
V: UnwindSafe,
T: UnwindSafe,
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