Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::anonymous_namespace{splinetable.cpp}::SplineTableTest< T > Class Template Reference

Inherits gmx::test::anonymous_namespace{splinetable.cpp}::SplineTableTestBase.

Description

template<typename T>
class gmx::test::anonymous_namespace{splinetable.cpp}::SplineTableTest< T >

Test fixture for table comparision with analytical/numerical functions.

Public Member Functions

void setTolerance (real tol)
 Set a new tolerance to be used in table function comparison. More...
 
template<int numFuncInTable = 1, int funcIndex = 0>
void testSplineTableAgainstFunctions (const std::string &desc, const std::function< double(double)> &refFunc, const std::function< double(double)> &refDer, const T &table, const std::pair< real, real > &testRange)
 Assertion predicate formatter for comparing table with function/derivative. More...
 

Additional Inherited Members

- Static Public Attributes inherited from gmx::test::anonymous_namespace{splinetable.cpp}::SplineTableTestBase
static int s_testPoints_ = 100
 Number of points to use. Public so we can set it as option.
 

Member Function Documentation

template<typename T >
void gmx::test::anonymous_namespace{splinetable.cpp}::SplineTableTest< T >::setTolerance ( real  tol)
inline

Set a new tolerance to be used in table function comparison.

Parameters
tolNew tolerance to use
template<class T >
template<int numFuncInTable, int funcIndex>
void gmx::test::anonymous_namespace{splinetable.cpp}::SplineTableTest< T >::testSplineTableAgainstFunctions ( const std::string &  desc,
const std::function< double(double)> &  refFunc,
const std::function< double(double)> &  refDer,
const T &  table,
const std::pair< real, real > &  testRange 
)

Assertion predicate formatter for comparing table with function/derivative.


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