Skip to main content

SparseViewShape

Trait SparseViewShape 

Source
pub trait SparseViewShape {
    // Required methods
    fn nrows(&self) -> usize;
    fn ncols(&self) -> usize;
}
Expand description

Extension trait providing generic dimension access for any SparseView.

Required Methods§

Source

fn nrows(&self) -> usize

Number of rows.

Source

fn ncols(&self) -> usize

Number of columns.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<'a, T: 'a, Format, Arch> SparseViewShape for SparseView<'a, T, Format, Arch>
where Format: SparseFormat, Arch: SimdArch, Format::Storage<'a, T>: SparseShape,