Trait matrix::Matrix
[−]
[src]
pub trait Matrix: Into<Conventional<Self::Element>> + Size { type Element: Element; fn nonzeros(&self) -> usize; fn zero<S: Size>(_: S) -> Self; }
A matrix.
Associated Types
Required Methods
fn nonzeros(&self) -> usize
Count nonzero elements.
fn zero<S: Size>(_: S) -> Self
Create a zero matrix.