pub trait MatrixMetric<'a, 'b, T, M1, M2>where
    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

Computes the metric distance between two matrices.

Implementors

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)