ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dfe_poly.hpp File Reference

Efficient evaluation of polynomial functions. More...

#include <array>
#include <iterator>
#include <type_traits>
#include <utility>
+ Include dependency graph for dfe_poly.hpp:

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, Tdfe::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.
 

Detailed Description

Efficient evaluation of polynomial functions.

Author
Moritz Kiehn msmk@.nosp@m.cern.nosp@m..ch
Date
2018-02-26

Definition in file dfe_poly.hpp.