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

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]

fn clone(&self) -> SPMatrix[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for SPMatrix[src]

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

Formats the value using the given formatter. Read more

impl Into<Matrix> for SPMatrix[src]

fn into(self) -> Matrix[src]

Performs the conversion.

impl Into<SPMatrix> for Matrix[src]

fn into(self) -> SPMatrix[src]

Performs the conversion.

impl LinearAlgebra for SPMatrix[src]

Linear algebra for sparse matrix

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

fn back_subs(&self, _b: &Vec<f64>) -> Vec<f64>[src]

fn forward_subs(&self, _b: &Vec<f64>) -> Vec<f64>[src]

fn lu(&self) -> PQLU[src]

fn waz(&self, _d_form: Form) -> Option<WAZD>[src]

fn qr(&self) -> QR[src]

fn det(&self) -> f64[src]

fn block(&self) -> (Matrix, Matrix, Matrix, Matrix)[src]

fn inv(&self) -> Matrix[src]

fn pseudo_inv(&self) -> Matrix[src]

fn rref(&self) -> Matrix[src]

fn solve(&self, _b: &Vec<f64>, _sk: SolveKind) -> Vec<f64>[src]

fn solve_mat(&self, _m: &Matrix, _sk: SolveKind) -> Matrix[src]

fn svd(&self) -> SVD[src]

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

fn apply(&self, rhs: &Vec<f64>) -> Vec<f64>[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.

fn mul(self, rhs: &'b Vec<f64>) -> Self::Output[src]

Performs the * operation. Read more

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.

fn mul(self, rhs: Redox<Vec<f64>>) -> Self::Output[src]

Performs the * operation. Read more

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

type Output = Redox<Vec<f64>>

The resulting type after applying the * operator.

fn mul(self, rhs: Redox<Vec<f64>>) -> Self::Output[src]

Performs the * operation. Read more

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

Matrix multiplication with vector

type Output = Vec<f64>

The resulting type after applying the * operator.

fn mul(self, rhs: Vec<f64>) -> Self::Output[src]

Performs the * operation. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

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.

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

Performs the conversion.

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.

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

Performs the conversion.

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

pub fn vzip(self) -> V