pub struct CscCol<'a, T> { /* private fields */ }Expand description
An immutable representation of a column in a CSC matrix.
Implementations§
Source§impl<'a, T> CscCol<'a, T>
impl<'a, T> CscCol<'a, T>
Sourcepub fn row_indices(&self) -> &[usize]
pub fn row_indices(&self) -> &[usize]
The row indices corresponding to explicitly stored entries in this column.
Sourcepub fn values(&self) -> &[T]
pub fn values(&self) -> &[T]
The values corresponding to explicitly stored entries in this column.
Sourcepub fn get_entry(&self, global_row_index: usize) -> Option<SparseEntry<'_, T>>
pub fn get_entry(&self, global_row_index: usize) -> Option<SparseEntry<'_, T>>
Returns an entry for the given global row index.
Each call to this function incurs the cost of a binary search among the explicitly stored row entries.
Trait Implementations§
impl<'a, T: Eq> Eq for CscCol<'a, T>
impl<'a, T> StructuralPartialEq for CscCol<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for CscCol<'a, T>
impl<'a, T> RefUnwindSafe for CscCol<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CscCol<'a, T>where
T: Sync,
impl<'a, T> Sync for CscCol<'a, T>where
T: Sync,
impl<'a, T> Unpin for CscCol<'a, T>
impl<'a, T> UnwindSafe for CscCol<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.