Alexandria  2.25.0
SDC-CH common library for the Euclid project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
Euclid::MathUtils::InterpolationImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type > Struct Template Reference

Static Public Member Functions

static double interpolate (const T x, const std::vector< T > &knots, const std::vector< double > &values, bool extrapolate)
 
template<typename... Rest>
static double interpolate (const T x, const std::vector< T > &knots, const std::vector< std::unique_ptr< InterpN< Rest...>>> &interpolators, bool extrapolate, const Rest...rest)
 
static void checkOrder (const std::vector< T > &knots)
 

Detailed Description

template<typename T>
struct Euclid::MathUtils::InterpolationImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >

Trait for continuous types

Definition at line 18 of file GridInterpolation.icpp.

Member Function Documentation

template<typename T >
static void Euclid::MathUtils::InterpolationImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::checkOrder ( const std::vector< T > &  knots)
inlinestatic

Definition at line 51 of file GridInterpolation.icpp.

References std::vector< T >::begin(), std::vector< T >::end(), and std::is_sorted().

Here is the call graph for this function:

template<typename T >
static double Euclid::MathUtils::InterpolationImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::interpolate ( const T  x,
const std::vector< T > &  knots,
const std::vector< double > &  values,
bool  extrapolate 
)
inlinestatic

Definition at line 19 of file GridInterpolation.icpp.

References Euclid::MathUtils::simple_interpolation().

Here is the call graph for this function:

template<typename T >
template<typename... Rest>
static double Euclid::MathUtils::InterpolationImpl< T, typename std::enable_if< std::is_floating_point< T >::value >::type >::interpolate ( const T  x,
const std::vector< T > &  knots,
const std::vector< std::unique_ptr< InterpN< Rest...>>> &  interpolators,
bool  extrapolate,
const Rest...  rest 
)
inlinestatic

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