Trait ndarray_linalg::matrix::Matrix
[−]
[src]
pub trait Matrix: Sized { type Scalar; type Vector; type Permutator; fn size(&self) -> (usize, usize); fn layout(&self) -> Result<Layout, StrideError>; fn opnorm_1(&self) -> Self::Scalar; fn opnorm_i(&self) -> Self::Scalar; fn opnorm_f(&self) -> Self::Scalar; fn svd(self) -> Result<(Self, Self::Vector, Self), LinalgError>; fn qr(self) -> Result<(Self, Self), LinalgError>; fn lu(self) -> Result<(Self::Permutator, Self, Self), LinalgError>; fn permutate(&mut self, p: &Self::Permutator); fn permutated(self, p: &Self::Permutator) -> Self { ... } }
Methods for general matrices
Associated Types
Required Methods
fn size(&self) -> (usize, usize)
number of (rows, columns)
fn layout(&self) -> Result<Layout, StrideError>
Layout (C/Fortran) of matrix
fn opnorm_1(&self) -> Self::Scalar
Operator norm for L-1 norm
fn opnorm_i(&self) -> Self::Scalar
Operator norm for L-inf norm
fn opnorm_f(&self) -> Self::Scalar
Frobenius norm
fn svd(self) -> Result<(Self, Self::Vector, Self), LinalgError>
singular-value decomposition (SVD)
fn qr(self) -> Result<(Self, Self), LinalgError>
QR decomposition
fn lu(self) -> Result<(Self::Permutator, Self, Self), LinalgError>
LU decomposition
fn permutate(&mut self, p: &Self::Permutator)
permutate matrix (inplace)
Provided Methods
fn permutated(self, p: &Self::Permutator) -> Self
permutate matrix (outplace)