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§
Sourcefn norm_infinity(&self) -> F
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
impl NormInfinity for f64
fn norm_infinity(&self) -> f64
Source§impl<F, R, C, S> NormInfinity<F> for Matrix<F, R, C, S>
Available on crate feature nalgebra only.
impl<F, R, C, S> NormInfinity<F> for Matrix<F, R, C, S>
Available on crate feature
nalgebra only.fn norm_infinity(&self) -> F
Source§impl<F, S, D> NormInfinity<F> for ArrayBase<S, D>
Available on crate feature ndarray only.
impl<F, S, D> NormInfinity<F> for ArrayBase<S, D>
Available on crate feature
ndarray only.fn norm_infinity(&self) -> F
Source§impl<F: Scalar> NormInfinity<F> for Col<F>
Available on crate feature faer only.
impl<F: Scalar> NormInfinity<F> for Col<F>
Available on crate feature
faer only.