Struct extendr_api::prelude::utils::constrained::sparse::SymbolicSparseColMatRef
source · pub struct SymbolicSparseColMatRef<'nrows, 'ncols, 'a, I>(/* private fields */)
where
I: Index;Expand description
Symbolic structure view with dimensions equal to the values tied to ('nrows, 'ncols),
in column-major order.
Implementations§
source§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,
sourcepub 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).
sourcepub fn into_inner(self) -> SymbolicSparseColMatRef<'a, I>
pub fn into_inner(self) -> SymbolicSparseColMatRef<'a, I>
Returns the unconstrained symbolic structure.
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 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§
source§impl<I> Clone for SymbolicSparseColMatRef<'_, '_, '_, I>where
I: Index,
impl<I> Clone for SymbolicSparseColMatRef<'_, '_, '_, I>where
I: Index,
source§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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