Skip to main content

OperationNorm

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)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

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