[−][src]Module norman::special::implementation
Implementations of the NormEucl
and DistanceEucl
trait
for several types.
Below you find a detailed description of how these traits are implemented on different types.
Types with an absolute value
If a types implements Norm<Abs>
or Distance<Abs>
then norm_eucl
and distance_eucl
calculate the abs-norm or the abs-distance respectively.
Vector types
For types that represent onedimensional vectors (i.e. arrays, Vec
and the Array1
type of ndarray
) norm_eucl
and distance_eucl
calculate the euclidean norm or distance respectively.
Higher-dimensional ndarrays do not implement the euclidean traits, since they may represent e.g. matrices and for a matrix, simply calculating the square root of the squared sum of the components is no standard norm in any way.