Trait matrix::Matrix

source ·
pub trait Matrix: Into<Conventional<Self::Element>> + Size {
    type Element: Element;

    fn nonzeros(&self) -> usize;
    fn zero<S: Size>(_: S) -> Self;
}
Expand description

A matrix.

Required Associated Types§

The element type.

Required Methods§

Count nonzero elements.

Create a zero matrix.

Implementors§