Enum russell_lab::EnumVectorNorm [−][src]
pub enum EnumVectorNorm {
One,
Euc,
Max,
}Expand description
Options to compute vector norm
Variants
1-norm (taxicab or sum of abs values)
‖u‖_1 := sum_i |uᵢ|
Euclidean-norm
‖u‖_2 = sqrt(Σ_i uᵢ⋅uᵢ)
max-norm (inf-norm)
‖u‖_max = max_i ( |uᵢ| ) == ‖u‖_∞