ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Efficient evaluation of polynomial functions. More...
#include <array>
#include <iterator>
#include <type_traits>
#include <utility>
Go to the source code of this file.
Namespaces | |
namespace | dfe |
Functions | |
template<typename T , typename Container > | |
constexpr T | dfe::polynomial_val (const T &x, const Container &coeffs) |
template<typename T , typename Container > | |
constexpr std::pair< T, T > | dfe::polynomial_valder (const T &x, const Container &coeffs) |
template<typename T , typename Container > | |
constexpr T | dfe::polynomial_der (const T &x, const Container &coeffs) |
template<typename T , typename U > | |
constexpr auto | dfe::polynomial_val (const T &x, std::initializer_list< U > coeffs) |
Evaluate a polynomial with an order fixed at compile time. | |
template<typename T , typename U > | |
constexpr auto | dfe::polynomial_der (const T &x, std::initializer_list< U > coeffs) |
Evaluate the derivative of a polynomial with an order fixed at compile time. | |
template<typename T , typename U > | |
constexpr auto | dfe::polynomial_valder (const T &x, std::initializer_list< U > coeffs) |
Evaluate the derivative of a polynomial with an order fixed at compile time. | |