Struct nalgebra_sparse::csc::CscCol
source · 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§
source§impl<'a, T: PartialEq> PartialEq<CscCol<'a, T>> for CscCol<'a, T>
impl<'a, T: PartialEq> PartialEq<CscCol<'a, T>> for CscCol<'a, T>
impl<'a, T: Eq> Eq for CscCol<'a, T>
impl<'a, T> StructuralEq for CscCol<'a, T>
impl<'a, T> StructuralPartialEq for CscCol<'a, T>
Auto Trait Implementations§
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.