[][src]Trait na::Normed

pub trait Normed {
    type Norm: SimdRealField;
    fn norm(&self) -> Self::Norm;
fn norm_squared(&self) -> Self::Norm;
fn scale_mut(&mut self, n: Self::Norm);
fn unscale_mut(&mut self, n: Self::Norm); }

Trait implemented by entities scan be be normalized and put in an Unit struct.

Associated Types

type Norm: SimdRealField

The type of the norm.

Loading content...

Required methods

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

Computes the norm.

fn norm_squared(&self) -> Self::Norm

Computes the squared norm.

fn scale_mut(&mut self, n: Self::Norm)

Multiply self by n.

fn unscale_mut(&mut self, n: Self::Norm)

Divides self by n.

Loading content...

Implementors

impl<N> Normed for Complex<N> where
    N: SimdRealField
[src]

type Norm = <N as SimdComplexField>::SimdRealField

impl<N> Normed for Quaternion<N> where
    N: SimdRealField
[src]

impl<N, R, C> Normed for Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer> where
    C: Dim,
    N: SimdComplexField,
    R: Dim,
    DefaultAllocator: Allocator<N, R, C>, 
[src]

type Norm = <N as SimdComplexField>::SimdRealField

Loading content...