Skip to main content

NormInfinity

Trait NormInfinity 

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

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

Required Methods§

Source

fn norm_infinity(&self) -> f64

Compute maxᵢ |xᵢ| as f64.

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 NormInfinity for Vec<f64>

Source§

impl NormInfinity for Col<f64>

Available on crate feature faer only.
Source§

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

Available on crate feature nalgebra only.
Source§

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

Available on crate feature ndarray only.

Implementors§