Skip to main content

NormInfinity

Trait NormInfinity 

Source
pub trait NormInfinity<F = f64> {
    // Required method
    fn norm_infinity(&self) -> F;
}
Expand description

‖x‖_∞ = maxᵢ |xᵢ|. Used by first-order optimality stopping rules (e.g. ‖∇f‖_∞ ≤ tol).

F defaults to f64; see NormSquared for the rationale.

Required Methods§

Source

fn norm_infinity(&self) -> F

Compute maxᵢ |xᵢ| as F.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl NormInfinity for f64

Source§

impl<F, R, C, S> NormInfinity<F> for Matrix<F, R, C, S>
where F: Scalar, R: Dim, C: Dim, S: Storage<F, R, C>,

Available on crate feature nalgebra only.
Source§

fn norm_infinity(&self) -> F

Source§

impl<F, S, D> NormInfinity<F> for ArrayBase<S, D>
where F: Scalar, S: Data<Elem = F>, D: Dimension,

Available on crate feature ndarray only.
Source§

fn norm_infinity(&self) -> F

Source§

impl<F: Scalar> NormInfinity<F> for Col<F>

Available on crate feature faer only.
Source§

fn norm_infinity(&self) -> F

Source§

impl<F: Scalar> NormInfinity<F> for Vec<F>

Source§

fn norm_infinity(&self) -> F

Implementors§