cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::metrics::L2Metric< T > Class Template Reference

#include <vector_metrics.hpp>

Inheritance diagram for toolbox::metrics::L2Metric< T >:

Public Types

using element_type = T
 
- Public Types inherited from toolbox::metrics::base_metric_t< L2Metric< T >, T >
using element_type = T
 
using result_type = T
 

Public Member Functions

constexpr T distance_impl (const T *a, const T *b, std::size_t size) const
 
constexpr T squared_distance_impl (const T *a, const T *b, std::size_t size) const
 
template<typename U >
constexpr auto operator() (const toolbox::types::point_t< U > &a, const toolbox::types::point_t< U > &b) const
 
- Public Member Functions inherited from toolbox::metrics::base_metric_t< L2Metric< T >, T >
constexpr T distance (const T *a, const T *b, std::size_t size) const
 
constexpr T distance (const Container &a, const Container &b) const
 
constexpr T squared_distance (const T *a, const T *b, std::size_t size) const
 
constexpr T squared_distance (const Container &a, const Container &b) const
 

Member Typedef Documentation

◆ element_type

template<typename T >
using toolbox::metrics::L2Metric< T >::element_type = T

Member Function Documentation

◆ distance_impl()

template<typename T >
constexpr T toolbox::metrics::L2Metric< T >::distance_impl ( const T *  a,
const T *  b,
std::size_t  size 
) const
inlineconstexpr

◆ operator()()

template<typename T >
template<typename U >
constexpr auto toolbox::metrics::L2Metric< T >::operator() ( const toolbox::types::point_t< U > &  a,
const toolbox::types::point_t< U > &  b 
) const
inlineconstexpr

◆ squared_distance_impl()

template<typename T >
constexpr T toolbox::metrics::L2Metric< T >::squared_distance_impl ( const T *  a,
const T *  b,
std::size_t  size 
) const
inlineconstexpr

The documentation for this class was generated from the following files: