APFEL 4.8.0
A PDF evolution library in C++
Loading...
Searching...
No Matches
operator_test.cc
//
// APFEL++ 2017
//
// Author: Valerio Bertone: valerio.bertone@cern.ch
//
#include <apfel/apfelxx.h>
// Test expression (the LO Pqq splitting function)
class p0qq: public apfel::Expression
{
public:
p0qq(): Expression() {}
double Regular(double const& x) const
{
return - 2 * apfel::CF * ( 1 + x );
}
double Singular(double const& x) const
{
return 4 * apfel::CF / ( 1 - x );
}
double Local(double const& x) const
{
return 4 * apfel::CF * log( 1 - x ) + 3 * apfel::CF;
}
};
int main()
{
// Grid
const apfel::Grid g{{apfel::SubGrid{80, 1e-5, 3}, apfel::SubGrid{50, 1e-1, 5}, apfel::SubGrid{40, 8e-1, 5}}};
// Expression
const p0qq p;
// Construct the operator
const apfel::Operator op{g, p};
t.stop();
// Print operator
std::cout << op << std::endl;;
return 0;
}
The Expression class encapsulates in a proper form a given analytic expression in such a way that it ...
Definition expression.h:17
virtual double Local(double const &) const
Virtual local term.
Definition expression.h:55
Expression(double const &eta=1)
The "Expression" constructor.
virtual double Singular(double const &) const
Virtual singular term.
Definition expression.h:49
virtual double Regular(double const &) const
Virtual regular term.
Definition expression.h:43
The Grid class defines ab object that is essentially a collection of "SubGrid" objects plus other glo...
Definition grid.h:22
The Operator class defines the basic object "Operator" which is essentially the convolution on the gr...
Definition operator.h:22
Class for the x-space interpolation SubGrids.
Definition subgrid.h:23
The Timer class computes the time elapsed between start and stop.
Definition timer.h:20
void stop(bool const &ForceDisplay=false)
This function stops the timer and reports the elapsed time in seconds since the last time the timer w...
Definition timer.h:36
const double CF
Definition constants.h:148