Trait peroxide::prelude::simpler::SimpleNorm

source ·
pub trait SimpleNorm: Normed {
    // Required methods
    fn norm(&self) -> Self::Scalar;
    fn normalize(&self) -> Self;
}
Expand description

Simple Norm

Required Methods§

source

fn norm(&self) -> Self::Scalar

source

fn normalize(&self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SimpleNorm for Vec<f64>

Simple L2 norm

source§

fn norm(&self) -> Self::Scalar

source§

fn normalize(&self) -> Self

Implementors§

source§

impl SimpleNorm for Matrix

Simple Frobenius norm