Trait matrix::Matrix
[−]
[src]
pub trait Matrix: Into<Conventional<Self::Element>> + Size { type Element: Element; fn nonzeros(&self) -> usize; fn transpose(&self) -> Self; fn zero<S: Size>(S) -> Self; }
A matrix.
Associated Types
Required Methods
fn nonzeros(&self) -> usize
Count the number of nonzero elements.
fn transpose(&self) -> Self
Transpose the matrix.
fn zero<S: Size>(S) -> Self
Create a zero matrix.
Implementors
impl<T: Element> Matrix for Banded<T>
impl<T: Element> Matrix for Compressed<T>
impl<T: Element> Matrix for Conventional<T>
impl<T: Element> Matrix for Diagonal<T>
impl<T: Element> Matrix for Packed<T>