pub trait Norm {
type Output;
// Required methods
fn norm_l1(&self) -> Self::Output;
fn norm_l2(&self) -> Self::Output;
fn norm_max(&self) -> Self::Output;
// Provided method
fn norm(&self) -> Self::Output { ... }
}Expand description
Define norm as a metric linear space (not as a matrix)
For operator norms, see opnorm module
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".