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

#include <NestedFadUnitTests.hpp>

Inherits TestFixture.

Public Types

typedef FadFadType::value_type FadType
 

Public Member Functions

 FadFadOpsUnitTest ()
 
 FadFadOpsUnitTest (int numComponents1, int numComponents2, 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)
 
template<typename ScalarT >
ScalarT composite1_fad (const ScalarT &a, const ScalarT &b)
 
void testComposite1 ()
 
void testPlusLR ()
 
void testMinusLR ()
 
void testTimesLR ()
 
void testDivideLR ()
 
void testPowConstB ()
 

Protected Attributes

FadFadType a_dfad
 
FadFadType b_dfad
 
FadFadType c_dfad
 
FAD::Fad< FadTypea_fad
 
FAD::Fad< FadTypeb_fad
 
FAD::Fad< FadTypec_fad
 
Sacado::Random< ScalarType > urand
 
int n1
 
int n2
 
ScalarType tol_a
 
ScalarType tol_r
 

Private Member Functions

 CPPUNIT_TEST_SUITE (FadFadOpsUnitTest)
 
 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 FadFadType, class ScalarType>
class FadFadOpsUnitTest< FadFadType, ScalarType >

Definition at line 142 of file NestedFadUnitTests.hpp.

Member Typedef Documentation

template<class FadFadType , class ScalarType >
typedef FadFadType::value_type FadFadOpsUnitTest< FadFadType, ScalarType >::FadType

Definition at line 199 of file NestedFadUnitTests.hpp.

Constructor & Destructor Documentation

template<class FadFadType , class ScalarType >
FadFadOpsUnitTest< FadFadType, ScalarType >::FadFadOpsUnitTest ( )

Definition at line 426 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
FadFadOpsUnitTest< FadFadType, ScalarType >::FadFadOpsUnitTest ( int  numComponents1,
int  numComponents2,
ScalarType  absolute_tolerance,
ScalarType  relative_tolerance 
)

Definition at line 431 of file NestedFadUnitTests.hpp.

Member Function Documentation

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

Definition at line 441 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::tearDown ( )

Definition at line 487 of file NestedFadUnitTests.hpp.

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

Definition at line 491 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testMin ( )

Definition at line 556 of file NestedFadUnitTests.hpp.

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

Definition at line 253 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
template<typename ScalarT >
ScalarT FadFadOpsUnitTest< FadFadType, ScalarType >::composite1_fad ( const ScalarT &  a,
const ScalarT &  b 
)
inline

Definition at line 267 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testComposite1 ( )
inline

Definition at line 280 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testPlusLR ( )
inline

Definition at line 286 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testMinusLR ( )
inline

Definition at line 296 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testTimesLR ( )
inline

Definition at line 306 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testDivideLR ( )
inline

Definition at line 316 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
void FadFadOpsUnitTest< FadFadType, ScalarType >::testPowConstB ( )
inline

Definition at line 327 of file NestedFadUnitTests.hpp.

Member Data Documentation

template<class FadFadType , class ScalarType >
FadFadType FadFadOpsUnitTest< FadFadType, ScalarType >::a_dfad
protected

Definition at line 405 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
FadFadType FadFadOpsUnitTest< FadFadType, ScalarType >::b_dfad
protected

Definition at line 405 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
FadFadType FadFadOpsUnitTest< FadFadType, ScalarType >::c_dfad
protected

Definition at line 405 of file NestedFadUnitTests.hpp.

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

Definition at line 408 of file NestedFadUnitTests.hpp.

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

Definition at line 408 of file NestedFadUnitTests.hpp.

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

Definition at line 408 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
Sacado::Random<ScalarType> FadFadOpsUnitTest< FadFadType, ScalarType >::urand
protected

Definition at line 411 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
int FadFadOpsUnitTest< FadFadType, ScalarType >::n1
protected

Definition at line 414 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
int FadFadOpsUnitTest< FadFadType, ScalarType >::n2
protected

Definition at line 414 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
ScalarType FadFadOpsUnitTest< FadFadType, ScalarType >::tol_a
protected

Definition at line 417 of file NestedFadUnitTests.hpp.

template<class FadFadType , class ScalarType >
ScalarType FadFadOpsUnitTest< FadFadType, ScalarType >::tol_r
protected

Definition at line 417 of file NestedFadUnitTests.hpp.


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