Trait ndarray_linalg::vector::Norm
[−]
[src]
pub trait Norm { type Output; fn norm_l1(&self) -> Self::Output; fn norm_l2(&self) -> Self::Output; fn norm_max(&self) -> Self::Output; fn norm(&self) -> Self::Output { ... } }
Norms of ndarray
Associated Types
type Output
Required Methods
fn norm_l1(&self) -> Self::Output
L-1 norm
fn norm_l2(&self) -> Self::Output
L-2 norm
fn norm_max(&self) -> Self::Output
maximum norm
Provided Methods
Implementors
impl<A, S, D, T> Norm for ArrayBase<S, D> where A: LinalgScalar + NormedField<Output=T>,
T: Float + Sum,
S: Data<Elem=A>,
D: Dimension