Struct nalgebra::sparse::CsVecStorage
source · pub struct CsVecStorage<T: Scalar, R: Dim, C: Dim>{ /* private fields */ }
Expand description
A storage of column-compressed sparse matrix based on a Vec.
Implementations§
Trait Implementations§
source§impl<T: Clone + Scalar, R: Clone + Dim, C: Clone + Dim> Clone for CsVecStorage<T, R, C>
impl<T: Clone + Scalar, R: Clone + Dim, C: Clone + Dim> Clone for CsVecStorage<T, R, C>
source§fn clone(&self) -> CsVecStorage<T, R, C>
fn clone(&self) -> CsVecStorage<T, R, C>
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 moresource§impl<T: Scalar, R: Dim, C: Dim> CsStorage<T, R, C> for CsVecStorage<T, R, C>
impl<T: Scalar, R: Dim, C: Dim> CsStorage<T, R, C> for CsVecStorage<T, R, C>
source§fn len(&self) -> usize
fn len(&self) -> usize
The size of the value buffer (i.e. the entries known as possibly being non-zero).
source§fn 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.
source§unsafe 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
source§unsafe 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
source§impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIter<'a, T, R, C> for CsVecStorage<T, R, C>
impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIter<'a, T, R, C> for CsVecStorage<T, R, 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.
source§fn 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.
source§fn 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.
source§impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIterMut<'a, T, R, C> for CsVecStorage<T, R, C>
impl<'a, T: Scalar, R: Dim, C: Dim> CsStorageIterMut<'a, T, R, C> for CsVecStorage<T, R, 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
source§fn 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.
source§fn 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.
source§impl<T: PartialEq + Scalar, R: PartialEq + Dim, C: PartialEq + Dim> PartialEq for CsVecStorage<T, R, C>
impl<T: PartialEq + Scalar, R: PartialEq + Dim, C: PartialEq + Dim> PartialEq for CsVecStorage<T, R, C>
source§fn eq(&self, other: &CsVecStorage<T, R, C>) -> bool
fn eq(&self, other: &CsVecStorage<T, R, C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Scalar, R: Dim, C: Dim> CsStorageMut<T, R, C> for CsVecStorage<T, R, C>
impl<T: Scalar, R: Dim, C: Dim> StructuralPartialEq for CsVecStorage<T, R, 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§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn 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.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
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.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§unsafe 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.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.