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.
Returns NaN if any component is NaN, and zero for an empty input.
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_all only.
impl<F, R, C, S> NormInfinity<F> for Matrix<F, R, C, S>
Available on crate feature
nalgebra_all only.fn norm_infinity(&self) -> F
Source§impl<F, S, D> NormInfinity<F> for ArrayBase<S, D>
Available on crate feature ndarray_all only.
impl<F, S, D> NormInfinity<F> for ArrayBase<S, D>
Available on crate feature
ndarray_all only.fn norm_infinity(&self) -> F
Source§impl<F: Scalar> NormInfinity<F> for Col<F>
Available on crate feature faer_all only.
impl<F: Scalar> NormInfinity<F> for Col<F>
Available on crate feature
faer_all only.