Trait rulinalg::norm::VectorMetric
source · [−]Expand description
Trait for vector metrics.
Required Methods
Implementors
impl<U, T> VectorMetric<T> for Uwhere
U: VectorNorm<T>,
T: Copy + Sub<T, Output = T>,
The induced vector metric
Given a norm N
, the induced vector metric M
computes
the metric distance, d
, between two vectors v1
and v2
as follows:
d = M(v1, v2) = N(v1 - v2)