AmpGen 2.1
Loading...
Searching...
No Matches
AmpGen::Spline Class Reference

Detailed Description

Definition at line 48 of file Spline.h.

Public Member Functions

 Spline (const std::string &name, const size_t &nKnots, const double &min, const double &max)
 
 Spline (const Spline &spline, const Expression &x, DebugSymbols *db=nullptr)
 
void resolve (ASTResolver &resolver) const override
 Resolve the dependencies of a tree using an ASTResolver, which keeps track of parameters, dependent sub-trees, etc.
 
std::string to_string (const ASTResolver *resolver=nullptr) const override
 Called to convert the Expression tree into source code.
 
 operator Expression ()
 
complex_t operator() () const override
 Evaluate the expression using the tree, will generally be very slow but ocassionally useful for debugging.
 
Expression operator() (const Expression &x, DebugSymbols *db)
 
Expression eval (DebugSymbols *db=nullptr) const
 

Public Attributes

Array m_points
 
std::string m_name
 
size_t m_nKnots
 
double m_min
 
double m_max
 
Expression m_x
 
Expression m_eval
 
Inheritance diagram for AmpGen::Spline:
AmpGen::IExpression

Constructor & Destructor Documentation

◆ Spline() [1/2]

AmpGen::Spline::Spline ( const std::string & name,
const size_t & nKnots,
const double & min,
const double & max )

◆ Spline() [2/2]

AmpGen::Spline::Spline ( const Spline & spline,
const Expression & x,
DebugSymbols * db = nullptr )

Member Function Documentation

◆ eval()

Expression AmpGen::Spline::eval ( DebugSymbols * db = nullptr) const

◆ operator Expression()

AmpGen::Spline::operator Expression ( )

◆ operator()() [1/2]

complex_t AmpGen::Spline::operator() ( ) const
overridevirtual

Implements AmpGen::IExpression.

◆ operator()() [2/2]

Expression AmpGen::Spline::operator() ( const Expression & x,
DebugSymbols * db )

◆ resolve()

void AmpGen::Spline::resolve ( ASTResolver & resolver) const
overridevirtual
Parameters
resolverresolver object to use

Implements AmpGen::IExpression.

◆ to_string()

std::string AmpGen::Spline::to_string ( const ASTResolver * resolver = nullptr) const
overridevirtual
Returns
The source code as a string

Implements AmpGen::IExpression.

Member Data Documentation

◆ m_eval

Expression AmpGen::Spline::m_eval

Definition at line 69 of file Spline.h.

◆ m_max

double AmpGen::Spline::m_max

Definition at line 67 of file Spline.h.

◆ m_min

double AmpGen::Spline::m_min

Definition at line 66 of file Spline.h.

◆ m_name

std::string AmpGen::Spline::m_name

Definition at line 64 of file Spline.h.

◆ m_nKnots

size_t AmpGen::Spline::m_nKnots

Definition at line 65 of file Spline.h.

◆ m_points

Array AmpGen::Spline::m_points

Definition at line 63 of file Spline.h.

◆ m_x

Expression AmpGen::Spline::m_x

Definition at line 68 of file Spline.h.


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