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§
fn nrows(&self) -> usize
fn ncols(&self) -> usize
fn col_ptr(&self) -> &[usize]
fn row_idx(&self) -> &[usize]
fn values(&self) -> &[S]
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<S: KrystScalar> CscMatRef<S> for CscMatrix<S>
Available on crate feature
backend-faer only.