Struct lnkit::prelude::LpNorm [−][src]
pub struct LpNorm(pub i32);
Lp norm.
Trait Implementations
impl<T> Norm<T> for LpNorm where
T: SimdComplexField,
[src]
impl<T> Norm<T> for LpNorm where
T: SimdComplexField,
[src]pub fn norm<R, C, S>(
&self,
m: &Matrix<T, R, C, S>
) -> <T as SimdComplexField>::SimdRealField where
C: Dim,
S: Storage<T, R, C>,
R: Dim,
[src]
&self,
m: &Matrix<T, R, C, S>
) -> <T as SimdComplexField>::SimdRealField where
C: Dim,
S: Storage<T, R, C>,
R: Dim,
pub fn metric_distance<R1, C1, S1, R2, C2, S2>(
&self,
m1: &Matrix<T, R1, C1, S1>,
m2: &Matrix<T, R2, C2, S2>
) -> <T as SimdComplexField>::SimdRealField where
R1: Dim,
R2: Dim,
S1: Storage<T, R1, C1>,
S2: Storage<T, R2, C2>,
C2: Dim,
C1: Dim,
ShapeConstraint: SameNumberOfRows<R1, R2>,
ShapeConstraint: SameNumberOfColumns<C1, C2>,
[src]
&self,
m1: &Matrix<T, R1, C1, S1>,
m2: &Matrix<T, R2, C2, S2>
) -> <T as SimdComplexField>::SimdRealField where
R1: Dim,
R2: Dim,
S1: Storage<T, R1, C1>,
S2: Storage<T, R2, C2>,
C2: Dim,
C1: Dim,
ShapeConstraint: SameNumberOfRows<R1, R2>,
ShapeConstraint: SameNumberOfColumns<C1, C2>,
Auto Trait Implementations
impl RefUnwindSafe for LpNorm
impl RefUnwindSafe for LpNorm
impl UnwindSafe for LpNorm
impl UnwindSafe for LpNorm
Blanket Implementations
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> FromBits<T> for T
impl<T> FromBits<T> for T
pub fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
pub fn into_bits(self) -> U
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,