Trait SMat

Source
pub trait SMat<T: Float>: Sync {
    // Required methods
    fn nrows(&self) -> usize;
    fn ncols(&self) -> usize;
    fn nnz(&self) -> usize;
    fn svd_opa(&self, x: &[T], y: &mut [T], transposed: bool);
    fn compute_column_means(&self) -> Vec<T>;
}

Required Methods§

Source

fn nrows(&self) -> usize

Source

fn ncols(&self) -> usize

Source

fn nnz(&self) -> usize

Source

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

Source

fn compute_column_means(&self) -> Vec<T>

Implementations on Foreign Types§

Source§

impl<T: Float + Zero + AddAssign + Clone + Sync + Send + MulAssign> SMat<T> for CsrMatrix<T>

Source§

fn svd_opa(&self, x: &[T], y: &mut [T], 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§

fn compute_column_means(&self) -> Vec<T>

Source§

impl<T: Float + Zero + AddAssign + Clone + Sync> SMat<T> for CooMatrix<T>

Source§

fn svd_opa(&self, x: &[T], y: &mut [T], 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§

fn compute_column_means(&self) -> Vec<T>

Source§

impl<T: Float + Zero + AddAssign + Clone + Sync> SMat<T> for CscMatrix<T>

Source§

fn svd_opa(&self, x: &[T], y: &mut [T], 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§

fn compute_column_means(&self) -> Vec<T>

Implementors§

Source§

impl<'a, T: Float + AddAssign + Sync + Send + MulAssign> SMat<T> for MaskedCSRMatrix<'a, T>