pub trait Norm {
type Output;
// Required methods
fn l1_norm(&self) -> Self::Output;
fn l2_norm(&self) -> Self::Output;
}Expand description
The Norm trait serves as a unified interface for various normalization routnines. At the moment, the trait provides L1 and L2 techniques.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".