Trait rulinalg::norm::MatrixMetric
[−]
[src]
pub trait MatrixMetric<'a, 'b, T, M1: 'a + BaseMatrix<T>, M2: 'b + BaseMatrix<T>> { fn metric(&self, m1: &'a M1, m2: &'b M2) -> T; }
Trait for matrix metrics.
Required Methods
fn metric(&self, m1: &'a M1, m2: &'b M2) -> T
Computes the metric distance between two matrices.
Implementors
impl<'a, 'b, U, T, M1, M2> MatrixMetric<'a, 'b, T, M1, M2> for U where U: MatrixNorm<T, M1>,
M1: 'a + BaseMatrix<T>,
M2: 'b + BaseMatrix<T>,
&'a M1: Sub<&'b M2, Output=M1>