OpenLB 1.7
Loading...
Searching...
No Matches
Classes | Functions
Metric (distance) classes
+ Collaboration diagram for Metric (distance) classes:

Classes

struct  nanoflann::L1_Adaptor< T, DataSource, _DistanceType >
 Manhattan distance functor (generic version, optimized for high-dimensionality data sets). More...
 
struct  nanoflann::L2_Adaptor< T, DataSource, _DistanceType >
 Squared Euclidean distance functor (generic version, optimized for high-dimensionality data sets). More...
 
struct  nanoflann::L2_Simple_Adaptor< T, DataSource, _DistanceType >
 Squared Euclidean (L2) distance functor (suitable for low-dimensionality datasets, like 2D or 3D point clouds) Corresponding distance traits: nanoflann::metric_L2_Simple. More...
 
struct  nanoflann::metric_L1
 Metaprogramming helper traits class for the L1 (Manhattan) metric. More...
 
struct  nanoflann::metric_L2
 Metaprogramming helper traits class for the L2 (Euclidean) metric. More...
 
struct  nanoflann::metric_L2_Simple
 Metaprogramming helper traits class for the L2_simple (Euclidean) metric. More...
 

Functions

template<typename T >
nanoflann::abs (T x)
 
template<>
int nanoflann::abs< int > (int x)
 
template<>
float nanoflann::abs< float > (float x)
 
template<>
double nanoflann::abs< double > (double x)
 
template<>
long double nanoflann::abs< long double > (long double x)
 

Detailed Description

Function Documentation

◆ abs()

template<typename T >
T nanoflann::abs ( T x)
inline

Definition at line 300 of file nanoflann.hpp.

300 {
301 return (x < 0) ? -x : x;
302}
+ Here is the caller graph for this function:

◆ abs< double >()

template<>
double nanoflann::abs< double > ( double x)
inline

Definition at line 309 of file nanoflann.hpp.

309 {
310 return olb::util::fabs(x);
311}
cpu::simd::Pack< T > fabs(cpu::simd::Pack< T > value)
Definition pack.h:106

References olb::util::fabs().

+ Here is the call graph for this function:

◆ abs< float >()

template<>
float nanoflann::abs< float > ( float x)
inline

Definition at line 306 of file nanoflann.hpp.

306 {
307 return olb::util::fabsf(x);
308}
ADf< float, DIM > fabsf(const ADf< float, DIM > &a)
Definition aDiff.h:1007

References olb::util::fabsf().

+ Here is the call graph for this function:

◆ abs< int >()

template<>
int nanoflann::abs< int > ( int x)
inline

Definition at line 303 of file nanoflann.hpp.

303 {
304 return ::abs(x);
305}

◆ abs< long double >()

template<>
long double nanoflann::abs< long double > ( long double x)
inline

Definition at line 312 of file nanoflann.hpp.

312 {
313 return olb::util::fabsl(x);
314}
ADf< long double, DIM > fabsl(const ADf< long double, DIM > &a)
Definition aDiff.h:1013

References olb::util::fabsl().

+ Here is the call graph for this function: