Trait rulinalg::Metric
[−]
[src]
pub trait Metric<T> { fn norm(&self) -> T; }
Trait for linear algebra metrics.
Currently only implements basic euclidean norm.
Required Methods
fn norm(&self) -> T
Computes the euclidean norm.
Implementors
impl<T: Float> Metric<T> for Matrix<T>
impl<'a, T: Float> Metric<T> for MatrixSlice<'a, T>
impl<'a, T: Float> Metric<T> for MatrixSliceMut<'a, T>
impl<T: Float> Metric<T> for Vector<T>