[][src]Trait nalgebra::base::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: SimdComplexField, R: Dim, C: Dim> Normed for MatrixMN<N, R, C> where
    DefaultAllocator: Allocator<N, R, C>, 
[src]

type Norm = N::SimdRealField

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

type Norm = N::SimdRealField

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

type Norm = N::SimdRealField

Loading content...