Trait peroxide::traits::math::Normed

source ·
pub trait Normed: Vector {
    type UnsignedScalar;

    // Required methods
    fn norm(&self, kind: Norm) -> Self::UnsignedScalar;
    fn normalize(&self, kind: Norm) -> Self
       where Self: Sized;
}
Expand description

Normed Vector

Required Associated Types§

Required Methods§

source

fn norm(&self, kind: Norm) -> Self::UnsignedScalar

source

fn normalize(&self, kind: Norm) -> Self
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Normed for f64

source§

type UnsignedScalar = f64

source§

fn norm(&self, _kind: Norm) -> Self::Scalar

source§

fn normalize(&self, _kind: Norm) -> Self
where Self: Sized,

source§

impl Normed for Vec<f64>

source§

type UnsignedScalar = f64

source§

fn norm(&self, kind: Norm) -> f64

source§

fn normalize(&self, kind: Norm) -> Self
where Self: Sized,

source§

impl Normed for Vec<Complex<f64>>

source§

type UnsignedScalar = f64

source§

fn norm(&self, kind: Norm) -> Self::UnsignedScalar

source§

fn normalize(&self, _kind: Norm) -> Self
where Self: Sized,

source§

impl Normed for Complex<f64>

source§

type UnsignedScalar = f64

source§

fn norm(&self, kind: Norm) -> Self::UnsignedScalar

source§

fn normalize(&self, kind: Norm) -> Self
where Self: Sized,

Implementors§