[][src]Trait rulinalg::norm::MatrixMetric

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.

Loading content...

Implementors

impl<'a, 'b, U, T, M1, M2> MatrixMetric<'a, 'b, T, M1, M2> for U where
    U: MatrixNorm<T, Matrix<T>>,
    M1: 'a + BaseMatrix<T>,
    M2: 'b + BaseMatrix<T>,
    &'a M1: Sub<&'b M2, Output = Matrix<T>>, 
[src]

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)

Loading content...