32 #ifndef STRUMPACK_METRICS_HPP
33 #define STRUMPACK_METRICS_HPP
36 #include "dense/BLASLAPACKWrapper.hpp"
50 template<
typename scalar_t,
51 typename real_t=
typename RealType<scalar_t>::value_type>
53 (std::size_t d,
const scalar_t* x,
const scalar_t* y) {
55 for (std::size_t i=0; i<d; i++) {
71 template<
typename scalar_t,
72 typename real_t=
typename RealType<scalar_t>::value_type>
74 (std::size_t d,
const scalar_t* x,
const scalar_t* y) {
88 template<
typename scalar_t,
89 typename real_t=
typename RealType<scalar_t>::value_type>
91 (std::size_t d,
const scalar_t* x,
const scalar_t* y) {
93 for (std::size_t i=0; i<d; i++)
94 k += std::abs(x[i]-y[i]);
100 #endif // STRUMPACK_METRICS_HPP