![]() |
Project
|
#include <MultivariatePolynomialHelper.h>
Inherits o2::gpu::MultivariatePolynomialParametersHelper.
Inherited by o2::gpu::MultivariatePolynomial< Dim, Degree, InteractionOnly >.
Public Member Functions | |
GPUd () static const expr float evalPol(GPUgeneric() const float par[] | |
GPUd () static const expr uint32_t getDim() | |
GPUd () static const expr uint32_t getDegree() | |
GPUd () static const expr bool isInteractionOnly() | |
![]() | |
GPUd () static const expr uint32_t getNParametersAllTerms(const uint32_t degree | |
GPUd () static const expr uint32_t getNParametersInteractionOnly(const uint32_t degree | |
GPUd () static const expr uint32_t getNParameters(const uint32_t degree | |
Public Attributes | |
const float | x [] { return par[0] + loopDegrees<1>(par, x) |
![]() | |
const uint32_t | dim { return (degree == 0) ? binomialCoeff(dim - 1, 0) : binomialCoeff(dim - 1 + degree, degree) + getNParametersAllTerms(degree - 1, dim) |
Helper struct for evaluating a multidimensional polynomial using compile time evaluated formula Compile time method to extract the formula is obtained from run time method (check combination_with_repetiton() and evalPol()) by performing all loops during compile time and replacing the array to keep track of the dimensions for given term (pos[FMaxdegree + 1]) to a simple uint32_t called Pos where each digit represents the dimension for a given term e.g. pos = 2234 -> x[2]*x[2]*x[3]*x[4]
Definition at line 93 of file MultivariatePolynomialHelper.h.
|
inline |
Definition at line 115 of file MultivariatePolynomialHelper.h.
o2::gpu::MultivariatePolynomialHelper< Dim, Degree, InteractionOnly >::GPUd | ( | ) | const |
evaluates the polynomial for given parameters and coordinates
par | parameters of the polynomials |
x | input coordinates |
|
inline |
Definition at line 112 of file MultivariatePolynomialHelper.h.
|
inline |
Definition at line 109 of file MultivariatePolynomialHelper.h.
const float o2::gpu::MultivariatePolynomialHelper< Dim, Degree, InteractionOnly >::x { return par[0] + loopDegrees<1>(par, x) |
Definition at line 106 of file MultivariatePolynomialHelper.h.