Skip to main content

MatrixSparsityRef

Trait MatrixSparsityRef 

Source
pub trait MatrixSparsityRef<'a, M: Matrix> {
    // Required methods
    fn nrows(&self) -> IndexType;
    fn ncols(&self) -> IndexType;
    fn is_sparse() -> bool;
    fn indices(&self) -> Vec<(IndexType, IndexType)>;
    fn to_owned(&self) -> M::Sparsity;
    fn split(
        &self,
        algebraic_indices: &<M::V as Vector>::Index,
    ) -> [(M::Sparsity, <M::V as Vector>::Index); 4];
}

Required Methods§

Source

fn nrows(&self) -> IndexType

Source

fn ncols(&self) -> IndexType

Source

fn is_sparse() -> bool

Source

fn indices(&self) -> Vec<(IndexType, IndexType)>

Source

fn to_owned(&self) -> M::Sparsity

Source

fn split( &self, algebraic_indices: &<M::V as Vector>::Index, ) -> [(M::Sparsity, <M::V as Vector>::Index); 4]

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T: FaerScalar> MatrixSparsityRef<'a, FaerSparseMat<T>> for SymbolicSparseColMatRef<'a, IndexType>

Implementors§

Source§

impl<'a, M> MatrixSparsityRef<'a, M> for DenseRef<'a, M>
where M: Matrix<Sparsity = Dense<M>, SparsityRef<'a> = Self>,