pub struct SparseColMatMut<'nrows, 'ncols, 'a, I, E: Entity> { /* private fields */ }
Expand description
Mutable sparse matrix view with dimensions equal to the values tied to ('nrows, 'ncols)
, in column-major order.
Implementations§
Source§impl<'nrows, 'ncols, 'a, I: Index, E: Entity> SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'nrows, 'ncols, 'a, I: Index, E: Entity> SparseColMatMut<'nrows, 'ncols, 'a, I, E>
Sourcepub fn new(
inner: SparseColMatMut<'a, I, E>,
nrows: Size<'nrows>,
ncols: Size<'ncols>,
) -> Self
pub fn new( inner: SparseColMatMut<'a, I, E>, nrows: Size<'nrows>, ncols: Size<'ncols>, ) -> Self
Returns a new matrix view after checking that its dimensions match the
dimensions tied to ('nrows, 'ncols)
.
Sourcepub fn into_inner(self) -> SparseColMatMut<'a, I, E>
pub fn into_inner(self) -> SparseColMatMut<'a, I, E>
Returns the unconstrained matrix.
Methods from Deref<Target = SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>>§
Sourcepub fn row_indices_of_col_raw(
&self,
j: Idx<'ncols, usize>,
) -> &'a [Idx<'nrows, I>]
pub fn row_indices_of_col_raw( &self, j: Idx<'ncols, usize>, ) -> &'a [Idx<'nrows, I>]
Returns the row indices in column j
.
Sourcepub fn row_indices_of_col(
&self,
j: Idx<'ncols, usize>,
) -> impl 'a + ExactSizeIterator + DoubleEndedIterator<Item = Idx<'nrows, usize>>
pub fn row_indices_of_col( &self, j: Idx<'ncols, usize>, ) -> impl 'a + ExactSizeIterator + DoubleEndedIterator<Item = Idx<'nrows, usize>>
Returns the row indices in column j
.
Trait Implementations§
Source§impl<'nrows, 'ncols, 'a, I, E: Entity> Deref for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'nrows, 'ncols, 'a, I, E: Entity> Deref for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
Source§impl<'nrows, 'ncols, 'a, I, E: Entity> IntoConst for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'nrows, 'ncols, 'a, I, E: Entity> IntoConst for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
type Target = SparseColMatRef<'nrows, 'ncols, 'a, I, E>
fn into_const(self) -> Self::Target
Source§impl<'short, 'nrows, 'ncols, 'a, I, E: Entity> Reborrow<'short> for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'short, 'nrows, 'ncols, 'a, I, E: Entity> Reborrow<'short> for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
Source§impl<'short, 'nrows, 'ncols, 'a, I, E: Entity> ReborrowMut<'short> for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'short, 'nrows, 'ncols, 'a, I, E: Entity> ReborrowMut<'short> for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
Auto Trait Implementations§
impl<'nrows, 'ncols, 'a, I, E> Freeze for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'nrows, 'ncols, 'a, I, E> RefUnwindSafe for SparseColMatMut<'nrows, 'ncols, 'a, I, E>where
<<E as Entity>::Group as ForType>::FaerOf<*mut [<E as Entity>::Unit]>: RefUnwindSafe,
I: RefUnwindSafe,
impl<'nrows, 'ncols, 'a, I, E> Send for SparseColMatMut<'nrows, 'ncols, 'a, I, E>where
I: Sync,
impl<'nrows, 'ncols, 'a, I, E> Sync for SparseColMatMut<'nrows, 'ncols, 'a, I, E>where
I: Sync,
impl<'nrows, 'ncols, 'a, I, E> Unpin for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
impl<'nrows, 'ncols, 'a, I, E> !UnwindSafe for SparseColMatMut<'nrows, 'ncols, 'a, I, E>
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> 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