[−][src]Struct peroxide::structure::sparse::SPMatrix
Fields
row: usize
col: usize
nnz: usize
col_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
pub fn back_subs(&self, _b: &Vec<f64>) -> Vec<f64>
[src]
pub fn forward_subs(&self, _b: &Vec<f64>) -> Vec<f64>
[src]
pub fn lu(&self) -> PQLU
[src]
pub fn waz(&self, _d_form: Form) -> Option<WAZD>
[src]
pub fn qr(&self) -> QR
[src]
pub fn det(&self) -> f64
[src]
pub fn block(&self) -> (Matrix, Matrix, Matrix, Matrix)
[src]
pub fn inv(&self) -> Matrix
[src]
pub fn pseudo_inv(&self) -> Matrix
[src]
pub fn rref(&self) -> Matrix
[src]
pub fn solve(&self, _b: &Vec<f64>, _sk: SolveKind) -> Vec<f64>
[src]
pub fn solve_mat(&self, _m: &Matrix, _sk: SolveKind) -> Matrix
[src]
pub fn svd(&self) -> SVD
[src]
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.
pub fn mul(self, rhs: &'b Vec<f64>) -> Self::Output
[src]
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.
pub fn mul(self, rhs: Redox<Vec<f64>>) -> Self::Output
[src]
impl Mul<Redox<Vec<f64, Global>>> for &SPMatrix
[src]
type Output = Redox<Vec<f64>>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Redox<Vec<f64>>) -> Self::Output
[src]
impl Mul<Vec<f64, Global>> for SPMatrix
[src]
Matrix multiplication with vector
Auto Trait Implementations
impl RefUnwindSafe for SPMatrix
[src]
impl Send for SPMatrix
[src]
impl Sync for SPMatrix
[src]
impl Unpin for SPMatrix
[src]
impl UnwindSafe for SPMatrix
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,