Struct opensrdk_linear_algebra::matrix::ss::SparseMatrix
source · pub struct SparseMatrix<T = f64>where
T: Number,{
pub rows: usize,
pub cols: usize,
pub elems: HashMap<(usize, usize), T>,
/* private fields */
}
Fields§
§rows: usize
§cols: usize
§elems: HashMap<(usize, usize), T>
Implementations§
Trait Implementations§
source§impl<T> Clone for SparseMatrix<T>where
T: Number + Clone,
impl<T> Clone for SparseMatrix<T>where T: Number + Clone,
source§fn clone(&self) -> SparseMatrix<T>
fn clone(&self) -> SparseMatrix<T>
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> Default for SparseMatrix<T>where
T: Number + Default,
impl<T> Default for SparseMatrix<T>where T: Number + Default,
source§fn default() -> SparseMatrix<T>
fn default() -> SparseMatrix<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for SparseMatrix<T>where
T: Number + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SparseMatrix<T>where T: Number + Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Mul<&SparseMatrix<T>> for &SparseMatrix<T>where
T: Number,
impl<T> Mul<&SparseMatrix<T>> for &SparseMatrix<T>where T: Number,
§type Output = SparseMatrix<T>
type Output = SparseMatrix<T>
The resulting type after applying the
*
operator.source§impl<T> Mul<&SparseMatrix<T>> for SparseMatrix<T>where
T: Number,
impl<T> Mul<&SparseMatrix<T>> for SparseMatrix<T>where T: Number,
§type Output = SparseMatrix<T>
type Output = SparseMatrix<T>
The resulting type after applying the
*
operator.source§impl<T> Mul<SparseMatrix<T>> for &SparseMatrix<T>where
T: Number,
impl<T> Mul<SparseMatrix<T>> for &SparseMatrix<T>where T: Number,
§type Output = SparseMatrix<T>
type Output = SparseMatrix<T>
The resulting type after applying the
*
operator.source§impl<T> Mul<SparseMatrix<T>> for SparseMatrix<T>where
T: Number,
impl<T> Mul<SparseMatrix<T>> for SparseMatrix<T>where T: Number,
§type Output = SparseMatrix<T>
type Output = SparseMatrix<T>
The resulting type after applying the
*
operator.source§impl<T> PartialEq<SparseMatrix<T>> for SparseMatrix<T>where
T: Number + PartialEq,
impl<T> PartialEq<SparseMatrix<T>> for SparseMatrix<T>where T: Number + PartialEq,
source§fn eq(&self, other: &SparseMatrix<T>) -> bool
fn eq(&self, other: &SparseMatrix<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.