pub struct SparseMatIndexList<T, I> { /* private fields */ }Implementations§
Source§impl<T, I> SparseMatIndexList<T, I>
impl<T, I> SparseMatIndexList<T, I>
pub fn to_crs(&self) -> SparseMatCRS<T, I>
Trait Implementations§
Source§impl<T, I> Add for SparseMatIndexList<T, I>
impl<T, I> Add for SparseMatIndexList<T, I>
Source§impl<T, I> AddAssign for SparseMatIndexList<T, I>
impl<T, I> AddAssign for SparseMatIndexList<T, I>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<T: Clone, I: Clone> Clone for SparseMatIndexList<T, I>
impl<T: Clone, I: Clone> Clone for SparseMatIndexList<T, I>
Source§fn clone(&self) -> SparseMatIndexList<T, I>
fn clone(&self) -> SparseMatIndexList<T, I>
Returns a duplicate 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<'a, T, I> ColumnIter<'a> for SparseMatIndexList<T, I>
impl<'a, T, I> ColumnIter<'a> for SparseMatIndexList<T, I>
Source§impl<T, I> Mul<DenseVec<T>> for SparseMatIndexList<T, I>
impl<T, I> Mul<DenseVec<T>> for SparseMatIndexList<T, I>
Source§impl<T, I> Mul<T> for SparseMatIndexList<T, I>
impl<T, I> Mul<T> for SparseMatIndexList<T, I>
Source§impl<T, I> MulAssign<T> for SparseMatIndexList<T, I>
impl<T, I> MulAssign<T> for SparseMatIndexList<T, I>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moreSource§impl<'a, T, I> Sortable<'a> for SparseMatIndexList<T, I>
impl<'a, T, I> Sortable<'a> for SparseMatIndexList<T, I>
Source§impl<'a, T, I> SparseMatrix<'a> for SparseMatIndexList<T, I>
impl<'a, T, I> SparseMatrix<'a> for SparseMatIndexList<T, I>
type Value = T
type Index = I
type IterRow = IterRow<'a, T, I>
fn iter_row(&self, row: usize) -> IterRow<'_, T, I> ⓘ
fn with_capacity(cap: usize) -> Self
fn n_rows(&self) -> usize
fn n_cols(&self) -> usize
fn n_non_zero_entries(&self) -> usize
fn get(&self, i: usize, j: usize) -> T
fn get_mut(&mut self, i: usize, j: usize) -> &mut T
fn scale(&mut self, rhs: Self::Value)
const UNSET: Self::Index = <Self::Index>::MAX
fn iter(&'a self) -> Iter<'_, Self> ⓘ
fn new() -> Self
fn eye(dim: usize) -> Self
fn empty(&self) -> bool
fn add<S>(&'a mut self, rhs: &'a S)where
S: SparseMatrix<'a, Value = Self::Value>,
fn sub<S>(&'a mut self, rhs: &'a S)where
S: SparseMatrix<'a, Value = Self::Value>,
fn mvp<V>(&'a self, rhs: &V) -> V
fn inner_prod<V>(&'a self, lhs: &V, rhs: &V) -> Self::Value
fn transpose(&'a self) -> Self
fn prod<M>(&'a self, rhs: &'a M) -> Result<Self, SparseMatError>
fn is_symmetric(&'a self) -> bool
fn set(&mut self, i: usize, j: usize, val: Self::Value)
fn add_to(&mut self, i: usize, j: usize, val: Self::Value)
fn density(&self) -> f64
fn sparsity(&self) -> f64
fn is_sorted_row(&'a self, i: usize) -> bool
fn is_sorted(&'a self) -> bool
fn get_row(&'a self, i: usize) -> SparseVec<Self::Value, Self::Index>
fn to_string_row(&'a self, i: usize) -> String
fn to_string(&'a self) -> String
fn to_pbm(&'a self, filename: String)
Source§impl<T, I> Sub for SparseMatIndexList<T, I>
impl<T, I> Sub for SparseMatIndexList<T, I>
Source§impl<T, I> SubAssign for SparseMatIndexList<T, I>
impl<T, I> SubAssign for SparseMatIndexList<T, I>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl<T, I> Freeze for SparseMatIndexList<T, I>
impl<T, I> RefUnwindSafe for SparseMatIndexList<T, I>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for SparseMatIndexList<T, I>
impl<T, I> Sync for SparseMatIndexList<T, I>
impl<T, I> Unpin for SparseMatIndexList<T, I>
impl<T, I> UnwindSafe for SparseMatIndexList<T, I>where
I: UnwindSafe,
T: UnwindSafe,
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