thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ACDCGenerator::ACDCFncTraits< FncPtr > Struct Template Reference

ACDCFncTraits defines the interface to functions to be sampled by ACDCGen. More...

#include <ACDCTraits.h>

Inheritance diagram for ACDCGenerator::ACDCFncTraits< FncPtr >:

Static Public Member Functions

static double value (const FncPtr &f, const DVector &x)
 Call a function to be sampled by ACDCGen.
 

Detailed Description

template<typename FncPtr>
struct ACDCGenerator::ACDCFncTraits< FncPtr >

ACDCFncTraits defines the interface to functions to be sampled by ACDCGen.

It only defines one function which defines how the functions are called. If the default implementation is not suitable, ACDCFncTraits may be specialized for a function class implementing a function with the same signature.

Definition at line 28 of file ACDCTraits.h.

Member Function Documentation

◆ value()

template<typename FncPtr >
static double ACDCGenerator::ACDCFncTraits< FncPtr >::value ( const FncPtr &  f,
const DVector x 
)
inlinestatic

Call a function to be sampled by ACDCGen.

Returns
(*f)(x).

Definition at line 34 of file ACDCTraits.h.


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