Trait SMat

Source
pub trait SMat {
    // Required methods
    fn nrows(&self) -> usize;
    fn ncols(&self) -> usize;
    fn nnz(&self) -> usize;
    fn svd_opa(&self, x: &[f64], y: &mut [f64], transposed: bool);
}
Expand description

Sparse matrix

Required Methods§

Source

fn nrows(&self) -> usize

Source

fn ncols(&self) -> usize

Source

fn nnz(&self) -> usize

Source

fn svd_opa(&self, x: &[f64], y: &mut [f64], transposed: bool)

Implementations on Foreign Types§

Source§

impl SMat for CooMatrix<f64>

Source§

fn svd_opa(&self, x: &[f64], y: &mut [f64], transposed: bool)

takes an n-vector x and returns A*x in y

Source§

fn nrows(&self) -> usize

Source§

fn ncols(&self) -> usize

Source§

fn nnz(&self) -> usize

Source§

impl SMat for CscMatrix<f64>

Source§

fn svd_opa(&self, x: &[f64], y: &mut [f64], transposed: bool)

takes an n-vector x and returns A*x in y

Source§

fn nrows(&self) -> usize

Source§

fn ncols(&self) -> usize

Source§

fn nnz(&self) -> usize

Source§

impl SMat for CsrMatrix<f64>

Source§

fn svd_opa(&self, x: &[f64], y: &mut [f64], transposed: bool)

takes an n-vector x and returns A*x in y

Source§

fn nrows(&self) -> usize

Source§

fn ncols(&self) -> usize

Source§

fn nnz(&self) -> usize

Implementors§