Metric

Trait Metric 

Source
pub trait Metric<T> {
    // Required method
    fn norm(&self) -> T;
}
Expand description

Trait for linear algebra metrics.

Currently only implements basic euclidean norm.

Required Methods§

Source

fn norm(&self) -> T

Computes the euclidean norm.

Implementors§

Source§

impl<'a, T> Metric<T> for MatrixSlice<'a, T>
where T: Float,

Source§

impl<'a, T> Metric<T> for MatrixSliceMut<'a, T>
where T: Float,

Source§

impl<T> Metric<T> for Matrix<T>
where T: Float,

Source§

impl<T> Metric<T> for Vector<T>
where T: Float,