ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Test::float_compare_internal Namespace Reference

Typedefs

using predicate_result = boost::test_tools::predicate_result
 
using ScalarComparison = std::function< predicate_result(double, double)>
 

Functions

ScalarComparison closeOrSmall (double reltol, double small)
 
ScalarComparison closeAbs (double abstol)
 
template<typename Derived1 , typename Derived2 >
predicate_result matrixCompare (const Eigen::DenseBase< Derived1 > &val, const Eigen::DenseBase< Derived2 > &ref, ScalarComparison &&compareImpl)
 
template<typename Container , typename Enable = typename Container::const_iterator>
predicate_result compare (const Container &val, const Container &ref, ScalarComparison &&compareImpl)
 
template<typename T , typename U >
predicate_result compare (const Eigen::DenseBase< T > &val, const Eigen::DenseBase< U > &ref, ScalarComparison &&compareImpl)
 
predicate_result compare (const Transform3D &val, const Transform3D &ref, ScalarComparison &&compareImpl)
 
predicate_result compare (double val, double ref, ScalarComparison &&compareImpl)
 

Typedef Documentation

using Acts::Test::float_compare_internal::predicate_result = typedef boost::test_tools::predicate_result

Definition at line 64 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 64 of file FloatComparisons.hpp

Definition at line 66 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 66 of file FloatComparisons.hpp

Function Documentation

ScalarComparison Acts::Test::float_compare_internal::closeAbs ( double  abstol)

Definition at line 95 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 95 of file FloatComparisons.hpp

References kdfinder::abs().

Referenced by Acts::Test::checkCloseAbs().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ScalarComparison Acts::Test::float_compare_internal::closeOrSmall ( double  reltol,
double  small 
)

Definition at line 68 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 68 of file FloatComparisons.hpp

References kdfinder::abs().

Referenced by Acts::Test::checkCloseOrSmall(), Acts::Test::checkCloseRel(), and Acts::Test::checkSmall().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename Container , typename Enable = typename Container::const_iterator>
predicate_result Acts::Test::float_compare_internal::compare ( const Container &  val,
const Container &  ref,
ScalarComparison &&  compareImpl 
)

Definition at line 164 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 164 of file FloatComparisons.hpp

Referenced by Acts::Test::checkCloseAbs(), Acts::Test::checkCloseOrSmall(), Acts::Test::checkCloseRel(), and Acts::Test::checkSmall().

+ Here is the caller graph for this function:

template<typename T , typename U >
predicate_result Acts::Test::float_compare_internal::compare ( const Eigen::DenseBase< T > &  val,
const Eigen::DenseBase< U > &  ref,
ScalarComparison &&  compareImpl 
)

Definition at line 210 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 210 of file FloatComparisons.hpp

References matrixCompare().

+ Here is the call graph for this function:

predicate_result Acts::Test::float_compare_internal::compare ( const Transform3D &  val,
const Transform3D &  ref,
ScalarComparison &&  compareImpl 
)

Definition at line 217 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 217 of file FloatComparisons.hpp

References matrixCompare().

+ Here is the call graph for this function:

predicate_result Acts::Test::float_compare_internal::compare ( double  val,
double  ref,
ScalarComparison &&  compareImpl 
)

Definition at line 223 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 223 of file FloatComparisons.hpp

template<typename Derived1 , typename Derived2 >
predicate_result Acts::Test::float_compare_internal::matrixCompare ( const Eigen::DenseBase< Derived1 > &  val,
const Eigen::DenseBase< Derived2 > &  ref,
ScalarComparison &&  compareImpl 
)

Definition at line 115 of file FloatComparisons.hpp.

View newest version in sPHENIX GitHub at line 115 of file FloatComparisons.hpp

References col.

Referenced by compare().

+ Here is the caller graph for this function: