PARTONS  
PARtonic Tomography Of Nucleon Software
Static Public Member Functions | List of all members
PARTONS::CompareUtils Class Reference

Set of utility tools to perform comparisons. More...

Static Public Member Functions

static ComparisonData compareDouble (const std::string &variableName, const double lhs, const double rhs, const NumA::Tolerances &tolerances, const std::string &parentObjectInfo)
 Compare two double precision numbers. More...
 
static ComparisonData compareComplex (const std::string &variableName, const std::complex< double > lhs, const std::complex< double > rhs, const NumA::Tolerances &tolerances, const std::string &parentObjectInfo)
 Compare two complex double precision numbers. More...
 

Detailed Description

Set of utility tools to perform comparisons.

This class defines a set of useful tools to perform systematic comparisons between module results.

Member Function Documentation

◆ compareComplex()

ComparisonData PARTONS::CompareUtils::compareComplex ( const std::string &  variableName,
const std::complex< double >  lhs,
const std::complex< double >  rhs,
const NumA::Tolerances &  tolerances,
const std::string &  parentObjectInfo 
)
static

Compare two complex double precision numbers.

Parameters
variableNameName of variable.
lhsLeft-hand-size value.
rhsRight-hand-side value.
tolerancesTolerance assumed in the comparison.
parentObjectInfoInformation on object being compared.
Returns
Result of the comparison encapsulated in ComparisonData object.

◆ compareDouble()

ComparisonData PARTONS::CompareUtils::compareDouble ( const std::string &  variableName,
const double  lhs,
const double  rhs,
const NumA::Tolerances &  tolerances,
const std::string &  parentObjectInfo 
)
static

Compare two double precision numbers.

Parameters
variableNameName of variable.
lhsLeft-hand-size value.
rhsRight-hand-side value.
tolerancesTolerance assumed in the comparison.
parentObjectInfoInformation on object being compared.
Returns
Result of the comparison encapsulated in ComparisonData object.

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