Trait rulinalg::norm::MatrixMetric
source · [−]pub trait MatrixMetric<'a, 'b, T, M1: 'a + BaseMatrix<T>, M2: 'b + BaseMatrix<T>> {
fn metric(&self, m1: &'a M1, m2: &'b M2) -> T;
}
Expand description
Trait for matrix metrics.
Required Methods
Implementors
impl<'a, 'b, U, T, M1, M2> MatrixMetric<'a, 'b, T, M1, M2> for Uwhere
U: MatrixNorm<T, Matrix<T>>,
M1: 'a + BaseMatrix<T>,
M2: 'b + BaseMatrix<T>,
&'a M1: Sub<&'b M2, Output = Matrix<T>>,
The induced matrix metric
Given a norm N
, the induced matrix metric M
computes
the metric distance, d
, between two matrices m1
and m2
as follows:
d = M(m1, m2) = N(m1 - m2)