pub struct LastEq<Rows, Cols, Mat: MatShape<Rows = Rows, Cols = Cols>>(pub Mat);
Expand description
Single matrix view.
Tuple Fields§
§0: Mat
Implementations§
Source§impl<M: for<'a> MatIndex<'a, Rows = usize, Cols = usize, Index = (usize, usize), LayoutTransform = MatLayoutTransform>> LastEq<usize, usize, M>
impl<M: for<'a> MatIndex<'a, Rows = usize, Cols = usize, Index = (usize, usize), LayoutTransform = MatLayoutTransform>> LastEq<usize, usize, M>
Sourcepub fn for_each(self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item))
pub fn for_each(self, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item))
Applies f
to each element of self
.
Sourcepub fn for_each_triangular_lower(
self,
diag: Diag,
f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item),
)
pub fn for_each_triangular_lower( self, diag: Diag, f: impl for<'a> FnMut(<Self as MatIndex<'a>>::Item), )
Applies f
to each element of the lower triangular half of self
.
diag
specifies whether the diagonal should be included or excluded.
Source§impl<M: for<'a> MatIndex<'a, Rows = (), Cols = usize, Index = ((), usize), LayoutTransform = VecLayoutTransform>> LastEq<(), usize, M>
impl<M: for<'a> MatIndex<'a, Rows = (), Cols = usize, Index = ((), usize), LayoutTransform = VecLayoutTransform>> LastEq<(), usize, M>
Trait Implementations§
Source§impl<Rows: Clone, Cols: Clone, Mat: Clone + MatShape<Rows = Rows, Cols = Cols>> Clone for LastEq<Rows, Cols, Mat>
impl<Rows: Clone, Cols: Clone, Mat: Clone + MatShape<Rows = Rows, Cols = Cols>> Clone for LastEq<Rows, Cols, Mat>
Source§impl<Rows: Debug, Cols: Debug, Mat: Debug + MatShape<Rows = Rows, Cols = Cols>> Debug for LastEq<Rows, Cols, Mat>
impl<Rows: Debug, Cols: Debug, Mat: Debug + MatShape<Rows = Rows, Cols = Cols>> Debug for LastEq<Rows, Cols, Mat>
Source§impl<'a, Rows: Copy + Eq, Cols: Copy + Eq, Mat: MatIndex<'a, Rows = Rows, Cols = Cols>> MatIndex<'a> for LastEq<Rows, Cols, Mat>
impl<'a, Rows: Copy + Eq, Cols: Copy + Eq, Mat: MatIndex<'a, Rows = Rows, Cols = Cols>> MatIndex<'a> for LastEq<Rows, Cols, Mat>
Source§unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item
unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item
Get the item at the given index, skipping bound checks.
Source§unsafe fn get_from_slice_unchecked(
slice: &'a mut Self::Slice,
idx: usize,
) -> Self::Item
unsafe fn get_from_slice_unchecked( slice: &'a mut Self::Slice, idx: usize, ) -> Self::Item
Get the item at the given slice position, skipping bound checks.
Source§fn is_contiguous(&self) -> bool
fn is_contiguous(&self) -> bool
Checks if the zipped matrices are contiguous.
Source§fn preferred_layout(&self) -> Self::LayoutTransform
fn preferred_layout(&self) -> Self::LayoutTransform
Computes the preferred iteration layout of the matrices.
Source§fn with_layout(self, layout: Self::LayoutTransform) -> Self
fn with_layout(self, layout: Self::LayoutTransform) -> Self
Applies the layout transformation to the matrices.
Source§impl<Rows: Copy + Eq, Cols: Copy + Eq, Mat: MatShape<Rows = Rows, Cols = Cols>> MatShape for LastEq<Rows, Cols, Mat>
impl<Rows: Copy + Eq, Cols: Copy + Eq, Mat: MatShape<Rows = Rows, Cols = Cols>> MatShape for LastEq<Rows, Cols, Mat>
Source§impl<Rows: Copy + Eq, Cols: Copy + Eq, Mat: MaybeContiguous<Rows = Rows, Cols = Cols>> MaybeContiguous for LastEq<Rows, Cols, Mat>
impl<Rows: Copy + Eq, Cols: Copy + Eq, Mat: MaybeContiguous<Rows = Rows, Cols = Cols>> MaybeContiguous for LastEq<Rows, Cols, Mat>
Source§type Index = <Mat as MaybeContiguous>::Index
type Index = <Mat as MaybeContiguous>::Index
Indexing type.
Source§type LayoutTransform = <Mat as MaybeContiguous>::LayoutTransform
type LayoutTransform = <Mat as MaybeContiguous>::LayoutTransform
Layout transformation type.
impl<Rows: Copy, Cols: Copy, Mat: Copy + MatShape<Rows = Rows, Cols = Cols>> Copy for LastEq<Rows, Cols, Mat>
Auto Trait Implementations§
impl<Rows, Cols, Mat> Freeze for LastEq<Rows, Cols, Mat>where
Mat: Freeze,
impl<Rows, Cols, Mat> RefUnwindSafe for LastEq<Rows, Cols, Mat>where
Mat: RefUnwindSafe,
impl<Rows, Cols, Mat> Send for LastEq<Rows, Cols, Mat>where
Mat: Send,
impl<Rows, Cols, Mat> Sync for LastEq<Rows, Cols, Mat>where
Mat: Sync,
impl<Rows, Cols, Mat> Unpin for LastEq<Rows, Cols, Mat>where
Mat: Unpin,
impl<Rows, Cols, Mat> UnwindSafe for LastEq<Rows, Cols, Mat>where
Mat: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more