[][src]Struct peroxide::structure::sparse::SPMatrix

pub struct SPMatrix {
    pub row: usize,
    pub col: usize,
    pub nnz: usize,
    pub col_ptr: Vec<usize>,
    pub row_ics: Vec<usize>,
    pub data: Vec<f64>,
}

Fields

row: usizecol: usizennz: usizecol_ptr: Vec<usize>row_ics: Vec<usize>data: Vec<f64>

Implementations

impl SPMatrix[src]

pub fn new(row: usize, col: usize, nnz: usize) -> Self[src]

pub fn from_dense(m: &Matrix) -> Self[src]

pub fn to_dense(&self) -> Matrix[src]

pub fn col_ptr(&self) -> &Vec<usize>[src]

pub fn row_ics(&self) -> &Vec<usize>[src]

pub fn data(&self) -> &Vec<f64>[src]

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

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

Trait Implementations

impl Clone for SPMatrix[src]

impl Debug for SPMatrix[src]

impl Into<Matrix> for SPMatrix[src]

impl Into<SPMatrix> for Matrix[src]

impl LinearAlgebra for SPMatrix[src]

Linear algebra for sparse matrix

Caution : In every ops in this trait, there is converting process to dense matrix

impl LinearOp<Vec<f64, Global>, Vec<f64, Global>> for SPMatrix[src]

impl<'a, 'b> Mul<&'b Vec<f64, Global>> for &'a SPMatrix[src]

Reference version of matrix multiplication with vector

type Output = Vec<f64>

The resulting type after applying the * operator.

impl Mul<Redox<Vec<f64, Global>>> for SPMatrix[src]

Matrix multiplication with Redox

type Output = Redox<Vec<f64>>

The resulting type after applying the * operator.

impl Mul<Redox<Vec<f64, Global>>> for &SPMatrix[src]

type Output = Redox<Vec<f64>>

The resulting type after applying the * operator.

impl Mul<Vec<f64, Global>> for SPMatrix[src]

Matrix multiplication with vector

type Output = Vec<f64>

The resulting type after applying the * operator.

Auto Trait Implementations

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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,