cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::metrics::base_metric_t< Derived, ElementType > Class Template Reference

#include <base_metric.hpp>

Inheritance diagram for toolbox::metrics::base_metric_t< Derived, ElementType >:

Public Types

using element_type = ElementType
 
using result_type = ElementType
 

Public Member Functions

constexpr ElementType distance (const ElementType *a, const ElementType *b, std::size_t size) const
 
constexpr ElementType squared_distance (const ElementType *a, const ElementType *b, std::size_t size) const
 
template<typename Container >
constexpr ElementType distance (const Container &a, const Container &b) const
 
template<typename Container >
constexpr ElementType squared_distance (const Container &a, const Container &b) const
 

Member Typedef Documentation

◆ element_type

template<typename Derived , typename ElementType >
using toolbox::metrics::base_metric_t< Derived, ElementType >::element_type = ElementType

◆ result_type

template<typename Derived , typename ElementType >
using toolbox::metrics::base_metric_t< Derived, ElementType >::result_type = ElementType

Member Function Documentation

◆ distance() [1/2]

template<typename Derived , typename ElementType >
template<typename Container >
constexpr ElementType toolbox::metrics::base_metric_t< Derived, ElementType >::distance ( const Container &  a,
const Container &  b 
) const
inlineconstexpr

◆ distance() [2/2]

template<typename Derived , typename ElementType >
constexpr ElementType toolbox::metrics::base_metric_t< Derived, ElementType >::distance ( const ElementType *  a,
const ElementType *  b,
std::size_t  size 
) const
inlineconstexpr

◆ squared_distance() [1/2]

template<typename Derived , typename ElementType >
template<typename Container >
constexpr ElementType toolbox::metrics::base_metric_t< Derived, ElementType >::squared_distance ( const Container &  a,
const Container &  b 
) const
inlineconstexpr

◆ squared_distance() [2/2]

template<typename Derived , typename ElementType >
constexpr ElementType toolbox::metrics::base_metric_t< Derived, ElementType >::squared_distance ( const ElementType *  a,
const ElementType *  b,
std::size_t  size 
) const
inlineconstexpr

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