Loading...
Searching...
No Matches
PLMD::switchContainers::leptonSwitch Class Reference

Classes

class  funcAndDeriv
 Lepton expression. More...
 

Public Member Functions

 leptonSwitch (const leptonSwitch &other)
 
 leptonSwitch (double D0, double DMAX, double R0, const std::string &func)
 
double calculate (const double distance, double &dfunc) const
 
double calculateSqr (const double distance2, double &dfunc) const
 
std::string description () const
 
const DatagetData () const
 
void removeStretch ()
 
void setupStretch ()
 

Private Attributes

Data data
 
std::vector< funcAndDerivexpressions {}
 
std::string lepton_func
 Function for lepton.
 
bool leptonx2 =false
 Set to true if lepton only uses x2.
 

Constructor & Destructor Documentation

◆ leptonSwitch() [1/2]

PLMD::switchContainers::leptonSwitch::leptonSwitch ( double D0,
double DMAX,
double R0,
const std::string & func )
inline

◆ leptonSwitch() [2/2]

PLMD::switchContainers::leptonSwitch::leptonSwitch ( const leptonSwitch & other)
inline

Member Function Documentation

◆ calculate()

double PLMD::switchContainers::leptonSwitch::calculate ( const double distance,
double & dfunc ) const
inline

◆ calculateSqr()

double PLMD::switchContainers::leptonSwitch::calculateSqr ( const double distance2,
double & dfunc ) const
inline

◆ description()

std::string PLMD::switchContainers::leptonSwitch::description ( ) const
inline

◆ getData()

const Data & PLMD::switchContainers::leptonSwitch::getData ( ) const
inline

◆ removeStretch()

void PLMD::switchContainers::leptonSwitch::removeStretch ( )
inline

◆ setupStretch()

void PLMD::switchContainers::leptonSwitch::setupStretch ( )
inline

Member Data Documentation

◆ data

Data PLMD::switchContainers::leptonSwitch::data
private

◆ expressions

std::vector<funcAndDeriv> PLMD::switchContainers::leptonSwitch::expressions {}
private
Warning
Since lepton::CompiledExpression is mutable, a vector is necessary for multithreading!

◆ lepton_func

std::string PLMD::switchContainers::leptonSwitch::lepton_func
private

Function for lepton.

◆ leptonx2

bool PLMD::switchContainers::leptonSwitch::leptonx2 =false
private

Set to true if lepton only uses x2.


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