Struct nalgebra::sparse::CsVecStorage
source · [−]pub struct CsVecStorage<T: Scalar, R: Dim, C: Dim>where
DefaultAllocator: Allocator<usize, C>,{ /* private fields */ }
Expand description
A storage of column-compressed sparse matrix based on a Vec.
Implementations
sourceimpl<T: Scalar, R: Dim, C: Dim> CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<T: Scalar, R: Dim, C: Dim> CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
Trait Implementations
sourceimpl<T: Clone + Scalar, R: Clone + Dim, C: Clone + Dim> Clone for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<T: Clone + Scalar, R: Clone + Dim, C: Clone + Dim> Clone for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
sourcefn clone(&self) -> CsVecStorage<T, R, C>
fn clone(&self) -> CsVecStorage<T, R, C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Scalar, R: Dim, C: Dim> CsStorage<T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<T: Scalar, R: Dim, C: Dim> CsStorage<T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
sourcefn len(&self) -> usize
fn len(&self) -> usize
The size of the value buffer (i.e. the entries known as possibly being non-zero).
sourcefn row_index(&self, i: usize) -> usize
fn row_index(&self, i: usize) -> usize
Retrieve the i-th row index of the underlying row index buffer.
sourceunsafe fn row_index_unchecked(&self, i: usize) -> usize
unsafe fn row_index_unchecked(&self, i: usize) -> usize
Retrieve the i-th row index of the underlying row index buffer. Read more
sourceunsafe fn get_value_unchecked(&self, i: usize) -> &T
unsafe fn get_value_unchecked(&self, i: usize) -> &T
The i-th value on the contiguous value buffer of this storage. Read more
sourcefn get_value(&self, i: usize) -> &T
fn get_value(&self, i: usize) -> &T
The i-th value on the contiguous value buffer of this storage.
sourcefn column_range(&self, j: usize) -> Range<usize>
fn column_range(&self, j: usize) -> Range<usize>
The value indices for the
i
-th column.sourceimpl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIter<'a, T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIter<'a, T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
type ColumnEntries = ColumnEntries<'a, T>
type ColumnEntries = ColumnEntries<'a, T>
Iterator through all the rows of a specific columns. Read more
type ColumnRowIndices = Cloned<Iter<'a, usize>>
type ColumnRowIndices = Cloned<Iter<'a, usize>>
Iterator through the row indices of a specific column.
sourcefn column_entries(&'a self, j: usize) -> Self::ColumnEntries
fn column_entries(&'a self, j: usize) -> Self::ColumnEntries
Iterates through all the entries of the j-th column.
sourcefn column_row_indices(&'a self, j: usize) -> Self::ColumnRowIndices
fn column_row_indices(&'a self, j: usize) -> Self::ColumnRowIndices
Iterates through all the row indices of the j-th column.
sourceimpl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIterMut<'a, T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIterMut<'a, T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
type ColumnEntriesMut = Zip<Cloned<Iter<'a, usize>>, IterMut<'a, T>>
type ColumnEntriesMut = Zip<Cloned<Iter<'a, usize>>, IterMut<'a, T>>
Mutable iterator through all the rows of a specific columns. Read more
sourcefn values_mut(&'a mut self) -> Self::ValuesMut
fn values_mut(&'a mut self) -> Self::ValuesMut
A mutable iterator through the values buffer of the sparse matrix.
sourcefn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut
fn column_entries_mut(&'a mut self, j: usize) -> Self::ColumnEntriesMut
Iterates mutably through all the entries of the j-th column.
sourceimpl<T: Debug + Scalar, R: Debug + Dim, C: Debug + Dim> Debug for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<T: Debug + Scalar, R: Debug + Dim, C: Debug + Dim> Debug for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
sourceimpl<T: PartialEq + Scalar, R: PartialEq + Dim, C: PartialEq + Dim> PartialEq<CsVecStorage<T, R, C>> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<T: PartialEq + Scalar, R: PartialEq + Dim, C: PartialEq + Dim> PartialEq<CsVecStorage<T, R, C>> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
sourcefn eq(&self, other: &CsVecStorage<T, R, C>) -> bool
fn eq(&self, other: &CsVecStorage<T, R, C>) -> bool
impl<T: Scalar, R: Dim, C: Dim> CsStorageMut<T, R, C> for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
impl<T: Scalar, R: Dim, C: Dim> StructuralPartialEq for CsVecStorage<T, R, C>where
DefaultAllocator: Allocator<usize, C>,
Auto Trait Implementations
impl<T, R, C> !RefUnwindSafe for CsVecStorage<T, R, C>
impl<T, R, C> !Send for CsVecStorage<T, R, C>
impl<T, R, C> !Sync for CsVecStorage<T, R, C>
impl<T, R, C> !Unpin for CsVecStorage<T, R, C>
impl<T, R, C> !UnwindSafe for CsVecStorage<T, R, C>
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
sourcefn 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 moresourcefn 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).sourcefn 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.sourcefn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.sourceimpl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
sourcefn 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 moresourcefn 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).sourceunsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.sourcefn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.