ndarray_linalg::opnorm

Trait 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