Trait MatrixOp

Source
pub trait MatrixOp {
    // Required methods
    fn nrows(&self) -> usize;
    fn ncols(&self) -> usize;
    fn is_square(&self) -> bool;
    fn gemv(
        &self,
        alpha: f64,
        x: &DVector<f64>,
        beta: f64,
        y: &mut DVector<f64>,
    );
    fn is_empty(&self) -> bool;
}

Required Methods§

Source

fn nrows(&self) -> usize

Source

fn ncols(&self) -> usize

Source

fn is_square(&self) -> bool

Source

fn gemv(&self, alpha: f64, x: &DVector<f64>, beta: f64, y: &mut DVector<f64>)

Source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

Source§

impl MatrixOp for CscMatrix<f64>

Source§

fn nrows(&self) -> usize

Source§

fn ncols(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

fn is_square(&self) -> bool

Source§

fn gemv(&self, alpha: f64, x: &DVector<f64>, beta: f64, y: &mut DVector<f64>)

Source§

impl MatrixOp for CsrMatrix<f64>

Source§

fn nrows(&self) -> usize

Source§

fn ncols(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

fn is_square(&self) -> bool

Source§

fn gemv(&self, alpha: f64, x: &DVector<f64>, beta: f64, y: &mut DVector<f64>)

Source§

impl MatrixOp for DMatrix<f64>

Source§

fn nrows(&self) -> usize

Source§

fn ncols(&self) -> usize

Source§

fn is_square(&self) -> bool

Source§

fn gemv(&self, alpha: f64, x: &DVector<f64>, beta: f64, y: &mut DVector<f64>)

Source§

fn is_empty(&self) -> bool

Implementors§