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: usize
col: usize
nnz: usize
col_ptr: Vec<usize>
row_ics: Vec<usize>
data: Vec<f64>
Implementations
impl SPMatrix
[src]
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 LinearAlgebra for SPMatrix
[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
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<'a, 'b> Mul<&'b Vec<f64, Global>> for &'a SPMatrix
[src]
impl<'a, 'b> Mul<&'b Vec<f64, Global>> for &'a SPMatrix
[src]Reference version of matrix multiplication with vector
Auto Trait Implementations
impl RefUnwindSafe for SPMatrix
impl Send for SPMatrix
impl Sync for SPMatrix
impl Unpin for SPMatrix
impl UnwindSafe for SPMatrix
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,