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;
apfel::Timer
t;
// Construct the operator
const
apfel::Operator
op{g, p};
t.
stop
();
// Print operator
std::cout << op << std::endl;;
return
0;
}
apfelxx.h
apfel::Expression
The Expression class encapsulates in a proper form a given analytic expression in such a way that it ...
Definition
expression.h:17
apfel::Expression::Local
virtual double Local(double const &) const
Virtual local term.
Definition
expression.h:55
apfel::Expression::Expression
Expression(double const &eta=1)
The "Expression" constructor.
apfel::Expression::Singular
virtual double Singular(double const &) const
Virtual singular term.
Definition
expression.h:49
apfel::Expression::Regular
virtual double Regular(double const &) const
Virtual regular term.
Definition
expression.h:43
apfel::Grid
The Grid class defines ab object that is essentially a collection of "SubGrid" objects plus other glo...
Definition
grid.h:22
apfel::Operator
The Operator class defines the basic object "Operator" which is essentially the convolution on the gr...
Definition
operator.h:22
apfel::SubGrid
Class for the x-space interpolation SubGrids.
Definition
subgrid.h:23
apfel::Timer
The Timer class computes the time elapsed between start and stop.
Definition
timer.h:20
apfel::Timer::stop
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
apfel::CF
const double CF
Definition
constants.h:148
Generated on Sat Aug 3 2024 08:43:09 for APFEL by
1.11.0