KrisLibrary  1.0.0
Classes | Namespaces | Functions
metric.h File Reference

Standard vector/matrix metrics. More...

#include "VectorTemplate.h"
#include "MatrixTemplate.h"

Go to the source code of this file.

Classes

class  Math::NormAccumulator< T >
 

Namespaces

 Math
 Contains all definitions in the Math package.
 

Functions

template<class T >
Math::Norm (const VectorTemplate< T > &x, Real norm)
 
template<class T >
Math::Norm_L1 (const VectorTemplate< T > &x)
 
template<class T >
Math::Norm_L2 (const VectorTemplate< T > &x)
 
template<class T >
Math::Norm_L2_Safe (const VectorTemplate< T > &x)
 Same as above, but robust to over/underflow.
 
template<class T >
Math::Norm_LInf (const VectorTemplate< T > &x)
 
template<class T >
Math::Norm_Mahalanobis (const VectorTemplate< T > &x, const MatrixTemplate< T > &A)
 
template<class T >
Math::Norm_Weighted (const VectorTemplate< T > &x, Real norm, const VectorTemplate< T > &w)
 
template<class T >
Math::Norm_WeightedL1 (const VectorTemplate< T > &x, const VectorTemplate< T > &w)
 
template<class T >
Math::Norm_WeightedL2 (const VectorTemplate< T > &x, const VectorTemplate< T > &w)
 
template<class T >
Math::Norm_WeightedLInf (const VectorTemplate< T > &x, const VectorTemplate< T > &w)
 
template<class T >
Math::Distance (const VectorTemplate< T > &x, const VectorTemplate< T > &y, Real norm)
 
template<class T >
Math::Distance_L1 (const VectorTemplate< T > &x, const VectorTemplate< T > &y)
 
template<class T >
Math::Distance_L2 (const VectorTemplate< T > &x, const VectorTemplate< T > &y)
 
template<class T >
Math::Distance_L2_Safe (const VectorTemplate< T > &x, const VectorTemplate< T > &y)
 Same as above, but robust to over/underflow.
 
template<class T >
Math::Distance_LInf (const VectorTemplate< T > &x, const VectorTemplate< T > &y)
 
template<class T >
Math::Distance_Mahalanobis (const VectorTemplate< T > &x, const VectorTemplate< T > &y, const MatrixTemplate< T > &A)
 
template<class T >
Math::Distance_Weighted (const VectorTemplate< T > &x, const VectorTemplate< T > &y, Real norm, const VectorTemplate< T > &w)
 
template<class T >
Math::Distance_WeightedL1 (const VectorTemplate< T > &x, const VectorTemplate< T > &y, const VectorTemplate< T > &w)
 
template<class T >
Math::Distance_WeightedL2 (const VectorTemplate< T > &x, const VectorTemplate< T > &y, const VectorTemplate< T > &w)
 
template<class T >
Math::Distance_WeightedLInf (const VectorTemplate< T > &x, const VectorTemplate< T > &y, const VectorTemplate< T > &w)
 
template<class T >
Math::Norm_L1 (const MatrixTemplate< T > &A)
 
template<class T >
Math::Norm_LInf (const MatrixTemplate< T > &A)
 
template<class T >
Math::Norm_Frobenius (const MatrixTemplate< T > &A)
 
template<class T >
Math::Norm_Frobenius_Safe (const MatrixTemplate< T > &A)
 Same as above, but robust to over/underflow.
 
template<class T >
Math::Distance_L1 (const MatrixTemplate< T > &A, const MatrixTemplate< T > &B)
 
template<class T >
Math::Distance_LInf (const MatrixTemplate< T > &A, const MatrixTemplate< T > &B)
 
template<class T >
Math::Distance_Frobenius (const MatrixTemplate< T > &A, const MatrixTemplate< T > &B)
 
template<class T >
Math::Distance_Frobenius_Safe (const MatrixTemplate< T > &A, const MatrixTemplate< T > &B)
 Same as above, but robust to over/underflow.
 

Detailed Description

Standard vector/matrix metrics.