[][src]Struct opensrdk_linear_algebra::matrix::sp::SparseMatrix

pub struct SparseMatrix<T = f64> where
    T: Number
{ pub rows: usize, pub cols: usize, pub elems: HashMap<(usize, usize), T>, // some fields omitted }

Fields

rows: usizecols: usizeelems: HashMap<(usize, usize), T>

Implementations

impl<T> SparseMatrix<T> where
    T: Number
[src]

pub fn new(rows: usize, cols: usize) -> Self[src]

pub fn from(rows: usize, cols: usize, elems: HashMap<(usize, usize), T>) -> Self[src]

pub fn t(&self) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for SparseMatrix<T> where
    T: Number
[src]

impl<T: Debug> Debug for SparseMatrix<T> where
    T: Number
[src]

impl<T: Default> Default for SparseMatrix<T> where
    T: Number
[src]

impl<T> Index<(usize, usize)> for SparseMatrix<T> where
    T: Number
[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<(usize, usize)> for SparseMatrix<T> where
    T: Number
[src]

impl<T, '_> Mul<&'_ Matrix<T>> for SparseMatrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T, '_, '_> Mul<&'_ Matrix<T>> for &'_ SparseMatrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T, '_> Mul<&'_ SparseMatrix<T>> for SparseMatrix<T> where
    T: Number
[src]

type Output = SparseMatrix<T>

The resulting type after applying the * operator.

impl<T, '_, '_> Mul<&'_ SparseMatrix<T>> for &'_ SparseMatrix<T> where
    T: Number
[src]

type Output = SparseMatrix<T>

The resulting type after applying the * operator.

impl<T, '_> Mul<&'_ SparseMatrix<T>> for Matrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T, '_, '_> Mul<&'_ SparseMatrix<T>> for &'_ Matrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T> Mul<Matrix<T>> for SparseMatrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T, '_> Mul<Matrix<T>> for &'_ SparseMatrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T> Mul<SparseMatrix<T>> for SparseMatrix<T> where
    T: Number
[src]

type Output = SparseMatrix<T>

The resulting type after applying the * operator.

impl<T, '_> Mul<SparseMatrix<T>> for &'_ SparseMatrix<T> where
    T: Number
[src]

type Output = SparseMatrix<T>

The resulting type after applying the * operator.

impl<T> Mul<SparseMatrix<T>> for Matrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

impl<T, '_> Mul<SparseMatrix<T>> for &'_ Matrix<T> where
    T: Number
[src]

type Output = Matrix<T>

The resulting type after applying the * operator.

Auto Trait Implementations

impl<T> RefUnwindSafe for SparseMatrix<T> where
    T: RefUnwindSafe

impl<T> Send for SparseMatrix<T>

impl<T> Sync for SparseMatrix<T>

impl<T> Unpin for SparseMatrix<T> where
    T: Unpin

impl<T> UnwindSafe for SparseMatrix<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.