Celeritas  0.5.0-56+6b053cd
Classes | Functions
PolyEvaluator.hh File Reference
#include <cmath>
#include <type_traits>
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
#include "corecel/cont/Array.hh"
#include "corecel/math/Algorithms.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::PolyEvaluator< T, N >
 Functor class to evaluate a polynomial. More...
 

Functions

template<typename T , size_type N>
CELER_FUNCTION celeritas::PolyEvaluator (Array< T, N > const &) -> PolyEvaluator< T, N - 1 >
 
template<typename... Ts, std::enable_if_t< std::is_arithmetic_v< std::common_type_t< Ts... >>, bool > = true>
CELER_FUNCTION celeritas::PolyEvaluator (Ts &&...) -> PolyEvaluator< typename std::common_type_t< Ts... >, sizeof...(Ts) - 1 >