[][src]Struct norman::desc::PNorm

pub struct PNorm { /* fields omitted */ }

A norm descriptor that represents an integral-valued p-norm.

Create one with new.

Methods

impl PNorm[src]

pub fn new(p: u32) -> Self[src]

Creates a descriptor of the p-norm.

Panics

If p is zero.

pub fn eucl() -> Self[src]

Creates a descriptor of the euclidean norm, i.e. the 2-norm.

pub fn p1() -> Self[src]

Creates a descriptor of the 1-norm.

Trait Implementations

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 0][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 1][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 2][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 3][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 4][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 5][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 6][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 7][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 8][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 9][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 10][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 11][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 12][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 13][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 14][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 15][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 16][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 17][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 18][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 19][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 20][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 21][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 22][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 23][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 24][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 25][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 26][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 27][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 28][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 29][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 30][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 31][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for [T; 32][src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for Vec<T>[src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Norm<Abs, Output = R>, R: Float + From<f32>> Norm<PNorm> for VecDeque<T>[src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<S, D, T, R> Norm<PNorm> for ArrayBase<S, D> where
    S: Data<Elem = T>,
    D: Dimension,
    T: Norm<Abs, Output = R>,
    R: Float + From<f32>, 
[src]

type Output = <T as Norm<Abs>>::Output

The resulting type of the norm function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 0][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 1][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 2][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 3][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 4][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 5][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 6][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 7][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 8][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 9][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 10][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 11][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 12][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 13][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 14][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 15][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 16][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 17][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 18][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 19][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 20][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 21][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 22][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 23][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 24][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 25][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 26][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 27][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 28][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 29][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 30][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 31][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for [T; 32][src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for Vec<T>[src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<T: Distance<Abs, Output = R>, R: Float + From<f32>> Distance<PNorm> for VecDeque<T>[src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl<S, D, T, R> Distance<PNorm> for ArrayBase<S, D> where
    S: Data<Elem = T>,
    D: Dimension,
    T: Distance<Abs, Output = R>,
    R: Float + From<f32>, 
[src]

type Output = <T as Distance<Abs>>::Output

The resulting type of the distance function. Read more

impl Eq for PNorm[src]

impl Default for PNorm[src]

impl Clone for PNorm[src]

impl PartialEq<PNorm> for PNorm[src]

impl Copy for PNorm[src]

impl Hash for PNorm[src]

impl Debug for PNorm[src]

Auto Trait Implementations

impl Unpin for PNorm

impl Sync for PNorm

impl Send for PNorm

impl UnwindSafe for PNorm

impl RefUnwindSafe for PNorm

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]