Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
FadOpsUnitTest< FadType, ScalarType > Class Template Reference

#include <FadUnitTests.hpp>

Inherits TestFixture.

Public Member Functions

 FadOpsUnitTest ()
 
 FadOpsUnitTest (int numComponents, ScalarType absolute_tolerance, ScalarType relative_tolerance)
 
void setUp ()
 
void tearDown ()
 
 BINARY_OP_TEST (testAddition,+)
 
 BINARY_OP_TEST (testSubtraction,-)
 
 BINARY_OP_TEST (testMultiplication,*)
 
 BINARY_OP_TEST (testDivision,/)
 
 RELOP_TEST (testEquals,==)
 
 RELOP_TEST (testNotEquals,!=)
 
 RELOP_TEST (testLessThanOrEquals,<=)
 
 RELOP_TEST (testGreaterThanOrEquals, >=)
 
 RELOP_TEST (testLessThan,<)
 
 RELOP_TEST (testGreaterThan, >)
 
 BINARY_FUNC_TEST (testPow, pow)
 
 UNARY_OP_TEST (testUnaryPlus,+)
 
 UNARY_OP_TEST (testUnaryMinus,-)
 
 UNARY_FUNC_TEST (testExp, exp)
 
 UNARY_FUNC_TEST (testLog, log)
 
 UNARY_FUNC_TEST (testLog10, log10)
 
 UNARY_FUNC_TEST (testSqrt, sqrt)
 
 UNARY_FUNC_TEST (testCos, cos)
 
 UNARY_FUNC_TEST (testSin, sin)
 
 UNARY_FUNC_TEST (testTan, tan)
 
 UNARY_FUNC_TEST (testACos, acos)
 
 UNARY_FUNC_TEST (testASin, asin)
 
 UNARY_FUNC_TEST (testATan, atan)
 
 UNARY_FUNC_TEST (testCosh, cosh)
 
 UNARY_FUNC_TEST (testSinh, sinh)
 
 UNARY_FUNC_TEST (testTanh, tanh)
 
 UNARY_FUNC_TEST (testAbs, abs)
 
 UNARY_FUNC_TEST (testFAbs, fabs)
 
 UNARY_ASSIGNOP_TEST (testPlusEquals,+=)
 
 UNARY_ASSIGNOP_TEST (testMinusEquals,-=)
 
 UNARY_ASSIGNOP_TEST (testTimesEquals,*=)
 
 UNARY_ASSIGNOP_TEST (testDivideEquals,/=)
 
void testMax ()
 
void testMin ()
 
template<typename ScalarT >
ScalarT composite1 (const ScalarT &a, const ScalarT &b)
 
void testComposite1 ()
 
void testPlusLR ()
 
void testMinusLR ()
 
void testTimesLR ()
 
void testDivideLR ()
 
void testPowConstB ()
 

Protected Attributes

FadType a_dfad
 
FadType b_dfad
 
FadType c_dfad
 
FAD::Fad< ScalarType > a_fad
 
FAD::Fad< ScalarType > b_fad
 
FAD::Fad< ScalarType > c_fad
 
Sacado::Random< ScalarType > urand
 
int n
 
ScalarType tol_a
 
ScalarType tol_r
 

Private Member Functions

 CPPUNIT_TEST_SUITE (FadOpsUnitTest)
 
 CPPUNIT_TEST (testAddition)
 
 CPPUNIT_TEST (testSubtraction)
 
 CPPUNIT_TEST (testMultiplication)
 
 CPPUNIT_TEST (testDivision)
 
 CPPUNIT_TEST (testEquals)
 
 CPPUNIT_TEST (testNotEquals)
 
 CPPUNIT_TEST (testLessThanOrEquals)
 
 CPPUNIT_TEST (testGreaterThanOrEquals)
 
 CPPUNIT_TEST (testLessThan)
 
 CPPUNIT_TEST (testGreaterThan)
 
 CPPUNIT_TEST (testPow)
 
 CPPUNIT_TEST (testMax)
 
 CPPUNIT_TEST (testMin)
 
 CPPUNIT_TEST (testUnaryPlus)
 
 CPPUNIT_TEST (testUnaryMinus)
 
 CPPUNIT_TEST (testExp)
 
 CPPUNIT_TEST (testLog)
 
 CPPUNIT_TEST (testLog10)
 
 CPPUNIT_TEST (testSqrt)
 
 CPPUNIT_TEST (testCos)
 
 CPPUNIT_TEST (testSin)
 
 CPPUNIT_TEST (testTan)
 
 CPPUNIT_TEST (testACos)
 
 CPPUNIT_TEST (testASin)
 
 CPPUNIT_TEST (testATan)
 
 CPPUNIT_TEST (testCosh)
 
 CPPUNIT_TEST (testSinh)
 
 CPPUNIT_TEST (testTanh)
 
 CPPUNIT_TEST (testAbs)
 
 CPPUNIT_TEST (testFAbs)
 
 CPPUNIT_TEST (testPlusEquals)
 
 CPPUNIT_TEST (testMinusEquals)
 
 CPPUNIT_TEST (testTimesEquals)
 
 CPPUNIT_TEST (testDivideEquals)
 
 CPPUNIT_TEST (testComposite1)
 
 CPPUNIT_TEST (testPlusLR)
 
 CPPUNIT_TEST (testMinusLR)
 
 CPPUNIT_TEST (testTimesLR)
 
 CPPUNIT_TEST (testDivideLR)
 
 CPPUNIT_TEST (testPowConstB)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

template<class FadType, class ScalarType>
class FadOpsUnitTest< FadType, ScalarType >

Definition at line 134 of file FadUnitTests.hpp.

Constructor & Destructor Documentation

template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::FadOpsUnitTest ( )

Definition at line 379 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::FadOpsUnitTest ( int  numComponents,
ScalarType  absolute_tolerance,
ScalarType  relative_tolerance 
)

Definition at line 384 of file FadUnitTests.hpp.

Member Function Documentation

template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST_SUITE ( FadOpsUnitTest< FadType, ScalarType >  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testAddition  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testSubtraction  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testMultiplication  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testDivision  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testNotEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testLessThanOrEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testGreaterThanOrEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testLessThan  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testGreaterThan  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testPow  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testMax  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testMin  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testUnaryPlus  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testUnaryMinus  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testExp  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testLog  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testLog10  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testSqrt  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testCos  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testSin  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testTan  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testACos  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testASin  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testATan  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testCosh  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testSinh  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testTanh  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testAbs  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testFAbs  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testPlusEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testMinusEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testTimesEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testDivideEquals  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testComposite1  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testPlusLR  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testMinusLR  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testTimesLR  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testDivideLR  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST ( testPowConstB  )
private
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::CPPUNIT_TEST_SUITE_END ( )
private
template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::setUp ( )

Definition at line 392 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::tearDown ( )

Definition at line 416 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::BINARY_OP_TEST ( testAddition  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::BINARY_OP_TEST ( testSubtraction  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::BINARY_OP_TEST ( testMultiplication  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::BINARY_OP_TEST ( testDivision  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::RELOP_TEST ( testEquals  )
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::RELOP_TEST ( testNotEquals  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::RELOP_TEST ( testLessThanOrEquals  ,
<=   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::RELOP_TEST ( testGreaterThanOrEquals  ,
>=   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::RELOP_TEST ( testLessThan  )
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::RELOP_TEST ( testGreaterThan  )
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::BINARY_FUNC_TEST ( testPow  ,
pow   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_OP_TEST ( testUnaryPlus  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_OP_TEST ( testUnaryMinus  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testExp  ,
exp   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testLog  ,
log   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testLog10  ,
log10   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testSqrt  ,
sqrt   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testCos  ,
cos   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testSin  ,
sin   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testTan  ,
tan   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testACos  ,
acos   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testASin  ,
asin   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testATan  ,
atan   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testCosh  ,
cosh   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testSinh  ,
sinh   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testTanh  ,
tanh   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testAbs  ,
abs   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_FUNC_TEST ( testFAbs  ,
fabs   
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_ASSIGNOP_TEST ( testPlusEquals  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_ASSIGNOP_TEST ( testMinusEquals  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_ASSIGNOP_TEST ( testTimesEquals  ,
 
)
template<class FadType , class ScalarType >
FadOpsUnitTest< FadType, ScalarType >::UNARY_ASSIGNOP_TEST ( testDivideEquals  ,
 
)
template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testMax ( )

Definition at line 420 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testMin ( )

Definition at line 483 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
template<typename ScalarT >
ScalarT FadOpsUnitTest< FadType, ScalarType >::composite1 ( const ScalarT &  a,
const ScalarT &  b 
)
inline

Definition at line 242 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testComposite1 ( )
inline

Definition at line 255 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testPlusLR ( )
inline

Definition at line 261 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testMinusLR ( )
inline

Definition at line 271 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testTimesLR ( )
inline

Definition at line 281 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testDivideLR ( )
inline

Definition at line 291 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
void FadOpsUnitTest< FadType, ScalarType >::testPowConstB ( )
inline

Definition at line 302 of file FadUnitTests.hpp.

Member Data Documentation

template<class FadType , class ScalarType >
FadType FadOpsUnitTest< FadType, ScalarType >::a_dfad
protected

Definition at line 361 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FadType FadOpsUnitTest< FadType, ScalarType >::b_dfad
protected

Definition at line 361 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FadType FadOpsUnitTest< FadType, ScalarType >::c_dfad
protected

Definition at line 361 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FAD::Fad<ScalarType> FadOpsUnitTest< FadType, ScalarType >::a_fad
protected

Definition at line 364 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FAD::Fad<ScalarType> FadOpsUnitTest< FadType, ScalarType >::b_fad
protected

Definition at line 364 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
FAD::Fad<ScalarType> FadOpsUnitTest< FadType, ScalarType >::c_fad
protected

Definition at line 364 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
Sacado::Random<ScalarType> FadOpsUnitTest< FadType, ScalarType >::urand
protected

Definition at line 367 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
int FadOpsUnitTest< FadType, ScalarType >::n
protected

Definition at line 370 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
ScalarType FadOpsUnitTest< FadType, ScalarType >::tol_a
protected

Definition at line 373 of file FadUnitTests.hpp.

template<class FadType , class ScalarType >
ScalarType FadOpsUnitTest< FadType, ScalarType >::tol_r
protected

Definition at line 373 of file FadUnitTests.hpp.


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