Enum wee_matrix::Norm [] [src]

pub enum Norm {
    L1,
    L2,
    L2Sqrd,
    Inf,
    NegInf,
    P(f64),
}

Valid vector norm types

Variants

L1 (absolute value) norm

L2 (Euclidean) norm

L2 norm, squared (to avoid potentially expensive square root operations)

Ininity (maximum) norm

Negative infinity (minimum) norm

General p-norm with specified coefficient

Trait Implementations

impl Debug for Norm
[src]

[src]

Formats the value using the given formatter.

impl Clone for Norm
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Norm
[src]