Struct SymbolicSparseColMatRef
#[repr(transparent)]pub struct SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>(Branded<'ncols, Branded<'nrows, SymbolicSparseColMatRef<'a, I>>>)
where
I: Index;
Expand description
Symbolic structure view with dimensions equal to the values tied to ('nrows, 'ncols)
,
in column-major order.
Tuple Fields§
§0: Branded<'ncols, Branded<'nrows, SymbolicSparseColMatRef<'a, I>>>
Implementations§
§impl<'nrows, 'ncols, 'a, I> SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>where
I: Index,
impl<'nrows, 'ncols, 'a, I> SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>where
I: Index,
pub fn new(
inner: SymbolicSparseColMatRef<'a, I>,
nrows: Size<'nrows>,
ncols: Size<'ncols>,
) -> SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>
pub fn new( inner: SymbolicSparseColMatRef<'a, I>, nrows: Size<'nrows>, ncols: Size<'ncols>, ) -> SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>
Returns a new symbolic structure after checking that its dimensions match the
dimensions tied to ('nrows, 'ncols)
.
pub fn into_inner(self) -> SymbolicSparseColMatRef<'a, I>
pub fn into_inner(self) -> SymbolicSparseColMatRef<'a, I>
Returns the unconstrained symbolic structure.
pub 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
.
pub fn row_indices_of_col(
&self,
j: Idx<'ncols, usize>,
) -> impl ExactSizeIterator + DoubleEndedIterator + 'a
pub fn row_indices_of_col( &self, j: Idx<'ncols, usize>, ) -> impl ExactSizeIterator + DoubleEndedIterator + 'a
Returns the row indices in column j
.
Trait Implementations§
§impl<I> Clone for SymbolicSparseColMatRef<'_, '_, '_, I>where
I: Index,
impl<I> Clone for SymbolicSparseColMatRef<'_, '_, '_, I>where
I: Index,
§fn clone(&self) -> SymbolicSparseColMatRef<'_, '_, '_, I>
fn clone(&self) -> SymbolicSparseColMatRef<'_, '_, '_, I>
Returns a copy 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 moreimpl<I> Copy for SymbolicSparseColMatRef<'_, '_, '_, I>where
I: Index,
Auto Trait Implementations§
impl<'nrows, 'ncols, 'a, I> Freeze for SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>
impl<'nrows, 'ncols, 'a, I> RefUnwindSafe for SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>where
I: RefUnwindSafe,
impl<'nrows, 'ncols, 'a, I> Send for SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>
impl<'nrows, 'ncols, 'a, I> Sync for SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>
impl<'nrows, 'ncols, 'a, I> Unpin for SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>
impl<'nrows, 'ncols, 'a, I> UnwindSafe for SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>where
I: RefUnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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