Metrics.hpp File Reference

Definitions of distance metrics. More...

#include <cmath>
#include "dense/BLASLAPACKWrapper.hpp"
Include dependency graph for Metrics.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 strumpack
 

Functions

template<typename scalar_t , typename real_t = typename RealType<scalar_t>::value_type>
real_t strumpack::Euclidean_distance_squared (std::size_t d, const scalar_t *x, const scalar_t *y)
 
template<typename scalar_t , typename real_t = typename RealType<scalar_t>::value_type>
real_t strumpack::Euclidean_distance (std::size_t d, const scalar_t *x, const scalar_t *y)
 
template<typename scalar_t , typename real_t = typename RealType<scalar_t>::value_type>
real_t strumpack::norm1_distance (std::size_t d, const scalar_t *x, const scalar_t *y)
 

Detailed Description

Definitions of distance metrics.