Trait vecmat::traits::NormL2[][src]

pub trait NormL2 {
    type Output;
    fn norm_l2_sqr(self) -> Self::Output;
fn norm_l2(self) -> Self::Output; }

L2 Norm trait.

Associated Types

type Output[src]

Type of the norm.

Loading content...

Required methods

fn norm_l2_sqr(self) -> Self::Output[src]

Square norm of the element.

fn norm_l2(self) -> Self::Output[src]

Norm of the element.

Loading content...

Implementations on Foreign Types

impl NormL2 for u8[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for u16[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for u32[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for u64[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for usize[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for i8[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for i16[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for i32[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for i64[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for isize[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for f32[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

impl NormL2 for f64[src]

type Output = Self

fn norm_l2(self) -> Self[src]

fn norm_l2_sqr(self) -> Self[src]

Loading content...

Implementors

impl<T, const M: usize, const N: usize> NormL2 for Matrix<T, M, N> where
    T: Float
[src]

type Output = T

fn norm_l2_sqr(self) -> T[src]

fn norm_l2(self) -> T[src]

impl<T, const N: usize> NormL2 for Vector<T, N> where
    T: Float
[src]

type Output = T

fn norm_l2_sqr(self) -> T[src]

fn norm_l2(self) -> T[src]

impl<T: Float> NormL2 for Complex<T>[src]

type Output = T

fn norm_l2(self) -> T[src]

fn norm_l2_sqr(self) -> T[src]

impl<T: Float> NormL2 for Quaternion<T>[src]

type Output = T

fn norm_l2(self) -> T[src]

fn norm_l2_sqr(self) -> T[src]

Loading content...