pub struct SparseElements {
pub i: Vec<i64>,
pub j: Vec<i64>,
pub x: Vec<f64>,
}Expand description
The elements of a sparse matrix as returned by
SparseMat::getelements (the raw CXSparse arrays).
Fields§
§i: Vec<i64>Row index of each stored element.
j: Vec<i64>For a triplet matrix: the column index of each stored element. For a
column-compressed matrix: the column pointers, of length ncol + 1;
the elements of column k are at positions j[k]..j[k + 1] of
i and x.
x: Vec<f64>The value of each stored element.
Trait Implementations§
Source§impl Clone for SparseElements
impl Clone for SparseElements
Source§fn clone(&self) -> SparseElements
fn clone(&self) -> SparseElements
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparseElements
impl Debug for SparseElements
Source§impl PartialEq for SparseElements
impl PartialEq for SparseElements
Source§fn eq(&self, other: &SparseElements) -> bool
fn eq(&self, other: &SparseElements) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SparseElements
Auto Trait Implementations§
impl Freeze for SparseElements
impl RefUnwindSafe for SparseElements
impl Send for SparseElements
impl Sync for SparseElements
impl Unpin for SparseElements
impl UnsafeUnpin for SparseElements
impl UnwindSafe for SparseElements
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