Enum russell_lab::EnumVectorNorm[][src]

pub enum EnumVectorNorm {
    One,
    Euc,
    Max,
}
Expand description

Options to compute vector norm

Variants

One

1-norm (taxicab or sum of abs values)

‖u‖_1 := sum_i |uᵢ|

Euc

Euclidean-norm

‖u‖_2 = sqrt(Σ_i uᵢ⋅uᵢ)

Max

max-norm (inf-norm)

‖u‖_max = max_i ( |uᵢ| ) == ‖u‖_∞

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.