APFEL 4.8.0
A PDF evolution library in C++
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Friends | List of all members
apfel::Operator Class Reference

The Operator class defines the basic object "Operator" which is essentially the convolution on the grid bewteen an Expression object (e.g. a splitting function) and the interpolant functions. More...

#include <operator.h>

Public Member Functions

 Operator ()=delete
 
 Operator (Operator const &)=default
 
 Operator (Grid const &gr, Expression const &expr, double const &eps=1e-5, bool const &gpd=false)
 The Operator constructor.
 
virtual ~Operator ()
 The Operator virtual destructor.
 
void BuildOperatorDGLAP ()
 Function that builds a DGLAP-like operator.
 
void BuildOperatorGPD ()
 Function that builds a GPD-like operator.
 
Distribution Evaluate (double const &x) const
 Function that interpolates the operator over the first index return a Distribution object.
 
Grid const & GetGrid () const
 Function that returns the Grid object associated to the operator.
 
Expression const & GetExpression () const
 Function that returns the Expression object associated to the operator.
 
double const & GetIntegrationAccuracy () const
 Function that returns the integration accuracy.
 
bool const & IsGPD () const
 Function that returns the GPD switch.
 
std::vector< matrix< double > > GetOperator () const
 Function that returns the operator.
 
void Print () const
 Print the Operator object.
 
Binary operators
Distribution operator*= (Distribution const &d) const
 this *= Distribution
 
Operatoroperator*= (Operator const &o)
 this *= Operator
 
Operatoroperator= (Operator const &o)
 this = Operator
 
Operatoroperator*= (double const &s)
 this *= Scalar
 
Operatoroperator*= (std::function< double(double const &)> f)
 This *= Function.
 
Operatoroperator/= (double const &s)
 this /= Scalar
 
Operatoroperator+= (Operator const &o)
 this += Operator
 
Operatoroperator-= (Operator const &o)
 this -= Operator
 

Protected Attributes

Grid const & _grid
 Grid on which to compute the operator.
 
Expression const & _expr
 Expression to be used.
 
double const _eps
 Integration accuracy.
 
bool const _gpd
 GPD switch.
 
std::vector< matrix< double > > _Operator
 Operator values.
 

Friends

std::ostream & operator<< (std::ostream &os, Operator const &sg)
 Method which prints Operator with cout <<. This only prints the Operator on the first subgrid and is supposed to be used for debugging purposes.
 

Detailed Description

The Operator class defines the basic object "Operator" which is essentially the convolution on the grid bewteen an Expression object (e.g. a splitting function) and the interpolant functions.

Examples
distribution_test.cc, massiveCF_test.cc, operator_test.cc, principal_value_test.cc, and set_test.cc.

Constructor & Destructor Documentation

◆ Operator() [1/3]

apfel::Operator::Operator ( )
delete

◆ Operator() [2/3]

apfel::Operator::Operator ( Operator const & )
default

◆ Operator() [3/3]

apfel::Operator::Operator ( Grid const & gr,
Expression const & expr,
double const & eps = 1e-5,
bool const & gpd = false )

The Operator constructor.

Parameters
grthe Grid object
exprthe expression to be transformed
epsrelative accuracy of the numerical integrations (default: 10-5)
gpdwhether the operator had to computed for a GPD-like expression (default: false)

◆ ~Operator()

virtual apfel::Operator::~Operator ( )
inlinevirtual

The Operator virtual destructor.

Member Function Documentation

◆ BuildOperatorDGLAP()

void apfel::Operator::BuildOperatorDGLAP ( )

Function that builds a DGLAP-like operator.

◆ BuildOperatorGPD()

void apfel::Operator::BuildOperatorGPD ( )

Function that builds a GPD-like operator.

◆ Evaluate()

Distribution apfel::Operator::Evaluate ( double const & x) const

Function that interpolates the operator over the first index return a Distribution object.

Parameters
xthe value in x to be interpolated

◆ GetExpression()

Expression const & apfel::Operator::GetExpression ( ) const
inline

Function that returns the Expression object associated to the operator.

◆ GetGrid()

Grid const & apfel::Operator::GetGrid ( ) const
inline

Function that returns the Grid object associated to the operator.

◆ GetIntegrationAccuracy()

double const & apfel::Operator::GetIntegrationAccuracy ( ) const
inline

Function that returns the integration accuracy.

◆ GetOperator()

std::vector< matrix< double > > apfel::Operator::GetOperator ( ) const
inline

Function that returns the operator.

◆ IsGPD()

bool const & apfel::Operator::IsGPD ( ) const
inline

Function that returns the GPD switch.

◆ operator*=() [1/4]

Distribution apfel::Operator::operator*= ( Distribution const & d) const

this *= Distribution

◆ operator*=() [2/4]

Operator & apfel::Operator::operator*= ( double const & s)

this *= Scalar

◆ operator*=() [3/4]

Operator & apfel::Operator::operator*= ( Operator const & o)

this *= Operator

◆ operator*=() [4/4]

Operator & apfel::Operator::operator*= ( std::function< double(double const &)> f)

This *= Function.

◆ operator+=()

Operator & apfel::Operator::operator+= ( Operator const & o)

this += Operator

◆ operator-=()

Operator & apfel::Operator::operator-= ( Operator const & o)

this -= Operator

◆ operator/=()

Operator & apfel::Operator::operator/= ( double const & s)

this /= Scalar

◆ operator=()

Operator & apfel::Operator::operator= ( Operator const & o)

this = Operator

◆ Print()

void apfel::Operator::Print ( ) const
inline

Print the Operator object.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
Operator const & sg )
friend

Method which prints Operator with cout <<. This only prints the Operator on the first subgrid and is supposed to be used for debugging purposes.

Member Data Documentation

◆ _eps

double const apfel::Operator::_eps
protected

Integration accuracy.

◆ _expr

Expression const& apfel::Operator::_expr
protected

Expression to be used.

◆ _gpd

bool const apfel::Operator::_gpd
protected

GPD switch.

◆ _grid

Grid const& apfel::Operator::_grid
protected

Grid on which to compute the operator.

◆ _Operator

std::vector<matrix<double> > apfel::Operator::_Operator
protected

Operator values.


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