C++
C#
VB
JScript
All

# dist

Copyright (C) 2005 IENT-RWTH Aachen

template<class G1,class G2> inline typename abs_function<PROMOTE2(typename Vector<G1>::value_type, typename Vector<G2>::value_type)>::result_type dist(const Vector<G1> &A, const Vector<G2> &B)
template<class G1,class G2> inline typename abs_function<PROMOTE2(typename Matrix<G1>::value_type, typename Matrix<G2>::value_type)>::result_type dist(const Matrix<G1> &A, const Matrix<G2> &B)

Sum of the absolute differences