SparseMatIndexList

Struct SparseMatIndexList 

Source
pub struct SparseMatIndexList<T, I> { /* private fields */ }

Implementations§

Source§

impl<T, I> SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source

pub fn to_crs(&self) -> SparseMatCRS<T, I>

Trait Implementations§

Source§

impl<T, I> Add for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

type Output = SparseMatIndexList<T, I>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T, I> AddAssign for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<T: Clone, I: Clone> Clone for SparseMatIndexList<T, I>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<'a, T, I> ColumnIter<'a> for SparseMatIndexList<T, I>
where T: 'a + ValueType, I: 'a + IndexType,

Source§

type IterCol = IterCol<'a, T, I>

Source§

fn assemble_column_info(&mut self)

Source§

fn iter_col(&'a self, col: usize) -> Result<Self::IterCol, SparseMatError>

Source§

impl<T: Debug, I: Debug> Debug for SparseMatIndexList<T, I>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, I> Mul<DenseVec<T>> for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

type Output = DenseVec<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DenseVec<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, I> Mul<T> for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

type Output = SparseMatIndexList<T, I>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, I> MulAssign<T> for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<'a, T, I> Sortable<'a> for SparseMatIndexList<T, I>
where T: 'a + ValueType, I: 'a + IndexType,

Source§

fn sort_row(&mut self, i: usize)

Source§

fn sort(&mut self)

Source§

impl<'a, T, I> SparseMatrix<'a> for SparseMatIndexList<T, I>
where T: 'a + ValueType, I: 'a + IndexType,

Source§

type Value = T

Source§

type Index = I

Source§

type IterRow = IterRow<'a, T, I>

Source§

fn iter_row(&self, row: usize) -> IterRow<'_, T, I>

Source§

fn with_capacity(cap: usize) -> Self

Source§

fn n_rows(&self) -> usize

Source§

fn n_cols(&self) -> usize

Source§

fn n_non_zero_entries(&self) -> usize

Source§

fn get(&self, i: usize, j: usize) -> T

Source§

fn get_mut(&mut self, i: usize, j: usize) -> &mut T

Source§

fn scale(&mut self, rhs: Self::Value)

Source§

const UNSET: Self::Index = <Self::Index>::MAX

Source§

fn iter(&'a self) -> Iter<'_, Self>

Source§

fn new() -> Self

Source§

fn eye(dim: usize) -> Self

Source§

fn empty(&self) -> bool

Source§

fn add<S>(&'a mut self, rhs: &'a S)
where S: SparseMatrix<'a, Value = Self::Value>,

Source§

fn sub<S>(&'a mut self, rhs: &'a S)
where S: SparseMatrix<'a, Value = Self::Value>,

Source§

fn mvp<V>(&'a self, rhs: &V) -> V
where V: Vector<'a, Value = Self::Value>,

Source§

fn inner_prod<V>(&'a self, lhs: &V, rhs: &V) -> Self::Value
where V: Vector<'a, Value = Self::Value>,

Source§

fn transpose(&'a self) -> Self

Source§

fn prod<M>(&'a self, rhs: &'a M) -> Result<Self, SparseMatError>
where M: ColumnIter<'a, Index = Self::Index, Value = Self::Value>,

Source§

fn is_symmetric(&'a self) -> bool

Source§

fn set(&mut self, i: usize, j: usize, val: Self::Value)

Source§

fn add_to(&mut self, i: usize, j: usize, val: Self::Value)

Source§

fn density(&self) -> f64

Source§

fn sparsity(&self) -> f64

Source§

fn is_sorted_row(&'a self, i: usize) -> bool

Source§

fn is_sorted(&'a self) -> bool

Source§

fn get_row(&'a self, i: usize) -> SparseVec<Self::Value, Self::Index>

Source§

fn to_string_row(&'a self, i: usize) -> String

Source§

fn to_string(&'a self) -> String

Source§

fn to_pbm(&'a self, filename: String)

Source§

impl<T, I> Sub for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

type Output = SparseMatIndexList<T, I>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T, I> SubAssign for SparseMatIndexList<T, I>
where T: ValueType, I: IndexType,

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more

Auto Trait Implementations§

§

impl<T, I> Freeze for SparseMatIndexList<T, I>

§

impl<T, I> RefUnwindSafe for SparseMatIndexList<T, I>

§

impl<T, I> Send for SparseMatIndexList<T, I>
where I: Send, T: Send,

§

impl<T, I> Sync for SparseMatIndexList<T, I>
where I: Sync, T: Sync,

§

impl<T, I> Unpin for SparseMatIndexList<T, I>
where I: Unpin, T: Unpin,

§

impl<T, I> UnwindSafe for SparseMatIndexList<T, I>
where I: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.