Skip to main content

CscMatRef

Trait CscMatRef 

Source
pub trait CscMatRef<S: KrystScalar> {
    // Required methods
    fn nrows(&self) -> usize;
    fn ncols(&self) -> usize;
    fn col_ptr(&self) -> &[usize];
    fn row_idx(&self) -> &[usize];
    fn values(&self) -> &[S];

    // Provided method
    fn t_matvec(&self, x: &[S], y: &mut [S]) { ... }
}
Expand description

Read-only CSC interface.

Required Methods§

Source

fn nrows(&self) -> usize

Source

fn ncols(&self) -> usize

Source

fn col_ptr(&self) -> &[usize]

Source

fn row_idx(&self) -> &[usize]

Source

fn values(&self) -> &[S]

Provided Methods§

Source

fn t_matvec(&self, x: &[S], y: &mut [S])

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S: KrystScalar> CscMatRef<S> for CscMatrix<S>

Available on crate feature backend-faer only.