Trait ndarray_linalg::opnorm::OperationNorm

source ·
pub trait OperationNorm {
    type Output: Scalar;

    // Required method
    fn opnorm(&self, t: NormType) -> Result<Self::Output>;

    // Provided methods
    fn opnorm_one(&self) -> Result<Self::Output> { ... }
    fn opnorm_inf(&self) -> Result<Self::Output> { ... }
    fn opnorm_fro(&self) -> Result<Self::Output> { ... }
}
Expand description

Operator norm using *lange LAPACK routines

Wikipedia article on operator norm

Required Associated Types§

source

type Output: Scalar

the value of norm

Required Methods§

source

fn opnorm(&self, t: NormType) -> Result<Self::Output>

Provided Methods§

source

fn opnorm_one(&self) -> Result<Self::Output>

the one norm of a matrix (maximum column sum)

source

fn opnorm_inf(&self) -> Result<Self::Output>

the infinity norm of a matrix (maximum row sum)

source

fn opnorm_fro(&self) -> Result<Self::Output>

the Frobenius norm of a matrix (square root of sum of squares)

Implementations on Foreign Types§

source§

impl<A, S> OperationNorm for ArrayBase<S, Ix2>
where A: Scalar + Lapack, S: Data<Elem = A>,

source§

type Output = <A as Scalar>::Real

source§

fn opnorm(&self, t: NormType) -> Result<Self::Output>

Implementors§

source§

impl<A> OperationNorm for Tridiagonal<A>
where A: Scalar + Lapack,

source§

type Output = <A as Scalar>::Real