[−][src]Struct norman::desc::PNorm
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]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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]
S: Data<Elem = T>,
D: Dimension,
T: Norm<Abs, Output = R>,
R: Float + From<f32>,
type Output = <T as Norm<Abs>>::Output
The resulting type of the norm function. Read more
fn norm(&self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
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]
S: Data<Elem = T>,
D: Dimension,
T: Distance<Abs, Output = R>,
R: Float + From<f32>,
type Output = <T as Distance<Abs>>::Output
The resulting type of the distance function. Read more
fn distance(&self, other: &Self, desc: PNorm) -> Self::Output
[src]
impl Clone for PNorm
[src]
impl Default for PNorm
[src]
impl Copy for PNorm
[src]
impl Eq for PNorm
[src]
impl PartialEq<PNorm> for PNorm
[src]
impl Debug for PNorm
[src]
impl Hash for PNorm
[src]
Auto Trait Implementations
impl Sync for PNorm
impl Unpin for PNorm
impl Send for PNorm
impl UnwindSafe for PNorm
impl RefUnwindSafe for PNorm
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,