Sacado Package Browser (Single Doxygen Collection)  Version of the Day
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
TaylorOpsUnitTest< TaylorType > Class Template Reference

#include <TayUnitTests.hpp>

Inheritance diagram for TaylorOpsUnitTest< TaylorType >:
Inheritance graph
[legend]

Public Member Functions

 TaylorOpsUnitTest ()
 
 TaylorOpsUnitTest (int degree, double absolute_tolerance, double relative_tolerance)
 
 ~TaylorOpsUnitTest ()
 
void setUp ()
 
void tearDown ()
 
 BINARY_OP_TEST (testAddition,+)
 
 BINARY_OP_TEST (testSubtraction, -)
 
 BINARY_OP_TEST (testMultiplication, *)
 
 BINARY_OP_TEST (testDivision,/)
 
 RELOP_OP_TEST (testEquals,==)
 
 RELOP_OP_TEST (testNotEquals, !=)
 
 RELOP_OP_TEST (testLessThanOrEquals,<=)
 
 RELOP_OP_TEST (testGreaterThanOrEquals, >=)
 
 RELOP_OP_TEST (testLessThan,<)
 
 RELOP_OP_TEST (testGreaterThan, >)
 
 BINARY_FUNC_TEST (testPow, pow)
 
 BINARY_FUNC_TEST (testMax, max)
 
 BINARY_FUNC_TEST (testMin, min)
 
 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 (testFAbs, fabs)
 
 UNARY_ASSIGNOP_TEST (testPlusEquals,+=)
 
 UNARY_ASSIGNOP_TEST (testMinusEquals, -=)
 
 UNARY_ASSIGNOP_TEST (testTimesEquals, *=)
 
 UNARY_ASSIGNOP_TEST (testDivideEquals,/=)
 
template<typename ScalarT >
ScalarT composite1 (const ScalarT &a, const ScalarT &b)
 
void testComposite1 ()
 
void testDiff1 ()
 
void testDiff3 ()
 
void print_poly (double *x)
 
void print_diff (const TaylorType &x_dtay, double *x_adolc)
 

Protected Attributes

TaylorType a_dtay
 
TaylorType b_dtay
 
TaylorType c_dtay
 
double ** X
 
double ** Y
 
Sacado::Random< double > urand
 
int d
 
double tol_a
 
double tol_r
 

Private Member Functions

 CPPUNIT_TEST_SUITE (TaylorOpsUnitTest)
 
 CPPUNIT_BINARY_OP_TEST (testAddition)
 
 CPPUNIT_BINARY_OP_TEST (testSubtraction)
 
 CPPUNIT_BINARY_OP_TEST (testMultiplication)
 
 CPPUNIT_BINARY_OP_TEST (testDivision)
 
 CPPUNIT_RELOP_OP_TEST (testEquals)
 
 CPPUNIT_RELOP_OP_TEST (testNotEquals)
 
 CPPUNIT_RELOP_OP_TEST (testLessThanOrEquals)
 
 CPPUNIT_RELOP_OP_TEST (testGreaterThanOrEquals)
 
 CPPUNIT_RELOP_OP_TEST (testLessThan)
 
 CPPUNIT_RELOP_OP_TEST (testGreaterThan)
 
 CPPUNIT_BINARY_FUNC_TEST (testPow)
 
 CPPUNIT_BINARY_FUNC_TEST (testMax)
 
 CPPUNIT_BINARY_FUNC_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 (testFAbs)
 
 CPPUNIT_UNARY_ASSIGNOP_TEST (testPlusEquals)
 
 CPPUNIT_UNARY_ASSIGNOP_TEST (testMinusEquals)
 
 CPPUNIT_UNARY_ASSIGNOP_TEST (testTimesEquals)
 
 CPPUNIT_UNARY_ASSIGNOP_TEST (testDivideEquals)
 
 CPPUNIT_TEST (testComposite1)
 
 CPPUNIT_TEST (testDiff1)
 
 CPPUNIT_TEST (testDiff3)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

template<class TaylorType>
class TaylorOpsUnitTest< TaylorType >

Definition at line 291 of file TayUnitTests.hpp.

Constructor & Destructor Documentation

◆ TaylorOpsUnitTest() [1/2]

template<class TaylorType >
TaylorOpsUnitTest< TaylorType >::TaylorOpsUnitTest ( )

Definition at line 458 of file TayUnitTests.hpp.

◆ TaylorOpsUnitTest() [2/2]

template<class TaylorType >
TaylorOpsUnitTest< TaylorType >::TaylorOpsUnitTest ( int  degree,
double  absolute_tolerance,
double  relative_tolerance 
)

Definition at line 470 of file TayUnitTests.hpp.

◆ ~TaylorOpsUnitTest()

template<class TaylorType >
TaylorOpsUnitTest< TaylorType >::~TaylorOpsUnitTest ( )

Definition at line 487 of file TayUnitTests.hpp.

Member Function Documentation

◆ CPPUNIT_TEST_SUITE()

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST_SUITE ( TaylorOpsUnitTest< TaylorType )
private

◆ CPPUNIT_BINARY_OP_TEST() [1/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_OP_TEST ( testAddition  )
private

◆ CPPUNIT_BINARY_OP_TEST() [2/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_OP_TEST ( testSubtraction  )
private

◆ CPPUNIT_BINARY_OP_TEST() [3/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_OP_TEST ( testMultiplication  )
private

◆ CPPUNIT_BINARY_OP_TEST() [4/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_OP_TEST ( testDivision  )
private

◆ CPPUNIT_RELOP_OP_TEST() [1/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_RELOP_OP_TEST ( testEquals  )
private

◆ CPPUNIT_RELOP_OP_TEST() [2/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_RELOP_OP_TEST ( testNotEquals  )
private

◆ CPPUNIT_RELOP_OP_TEST() [3/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_RELOP_OP_TEST ( testLessThanOrEquals  )
private

◆ CPPUNIT_RELOP_OP_TEST() [4/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_RELOP_OP_TEST ( testGreaterThanOrEquals  )
private

◆ CPPUNIT_RELOP_OP_TEST() [5/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_RELOP_OP_TEST ( testLessThan  )
private

◆ CPPUNIT_RELOP_OP_TEST() [6/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_RELOP_OP_TEST ( testGreaterThan  )
private

◆ CPPUNIT_BINARY_FUNC_TEST() [1/3]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_FUNC_TEST ( testPow  )
private

◆ CPPUNIT_BINARY_FUNC_TEST() [2/3]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_FUNC_TEST ( testMax  )
private

◆ CPPUNIT_BINARY_FUNC_TEST() [3/3]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_BINARY_FUNC_TEST ( testMin  )
private

◆ CPPUNIT_TEST() [1/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testUnaryPlus  )
private

◆ CPPUNIT_TEST() [2/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testUnaryMinus  )
private

◆ CPPUNIT_TEST() [3/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testExp  )
private

◆ CPPUNIT_TEST() [4/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testLog  )
private

◆ CPPUNIT_TEST() [5/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testLog10  )
private

◆ CPPUNIT_TEST() [6/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testSqrt  )
private

◆ CPPUNIT_TEST() [7/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testCos  )
private

◆ CPPUNIT_TEST() [8/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testSin  )
private

◆ CPPUNIT_TEST() [9/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testTan  )
private

◆ CPPUNIT_TEST() [10/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testACos  )
private

◆ CPPUNIT_TEST() [11/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testASin  )
private

◆ CPPUNIT_TEST() [12/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testATan  )
private

◆ CPPUNIT_TEST() [13/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testCosh  )
private

◆ CPPUNIT_TEST() [14/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testSinh  )
private

◆ CPPUNIT_TEST() [15/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testTanh  )
private

◆ CPPUNIT_TEST() [16/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testFAbs  )
private

◆ CPPUNIT_UNARY_ASSIGNOP_TEST() [1/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_UNARY_ASSIGNOP_TEST ( testPlusEquals  )
private

◆ CPPUNIT_UNARY_ASSIGNOP_TEST() [2/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_UNARY_ASSIGNOP_TEST ( testMinusEquals  )
private

◆ CPPUNIT_UNARY_ASSIGNOP_TEST() [3/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_UNARY_ASSIGNOP_TEST ( testTimesEquals  )
private

◆ CPPUNIT_UNARY_ASSIGNOP_TEST() [4/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_UNARY_ASSIGNOP_TEST ( testDivideEquals  )
private

◆ CPPUNIT_TEST() [17/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testComposite1  )
private

◆ CPPUNIT_TEST() [18/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testDiff1  )
private

◆ CPPUNIT_TEST() [19/19]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST ( testDiff3  )
private

◆ CPPUNIT_TEST_SUITE_END()

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::CPPUNIT_TEST_SUITE_END ( )
private

◆ setUp()

template<class TaylorType >
void TaylorOpsUnitTest< TaylorType >::setUp ( )

Definition at line 498 of file TayUnitTests.hpp.

◆ tearDown()

template<class TaylorType >
void TaylorOpsUnitTest< TaylorType >::tearDown ( )

Definition at line 518 of file TayUnitTests.hpp.

◆ BINARY_OP_TEST() [1/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_OP_TEST ( testAddition  ,
 
)

◆ BINARY_OP_TEST() [2/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_OP_TEST ( testSubtraction  ,
 
)

◆ BINARY_OP_TEST() [3/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_OP_TEST ( testMultiplication  ,
 
)

◆ BINARY_OP_TEST() [4/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_OP_TEST ( testDivision  ,
 
)

◆ RELOP_OP_TEST() [1/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::RELOP_OP_TEST ( testEquals  )

◆ RELOP_OP_TEST() [2/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::RELOP_OP_TEST ( testNotEquals  ,
 
)

◆ RELOP_OP_TEST() [3/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::RELOP_OP_TEST ( testLessThanOrEquals  ,
<=   
)

◆ RELOP_OP_TEST() [4/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::RELOP_OP_TEST ( testGreaterThanOrEquals  ,
>=   
)

◆ RELOP_OP_TEST() [5/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::RELOP_OP_TEST ( testLessThan  )

◆ RELOP_OP_TEST() [6/6]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::RELOP_OP_TEST ( testGreaterThan  )

◆ BINARY_FUNC_TEST() [1/3]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_FUNC_TEST ( testPow  ,
pow   
)

◆ BINARY_FUNC_TEST() [2/3]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_FUNC_TEST ( testMax  ,
max   
)

◆ BINARY_FUNC_TEST() [3/3]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::BINARY_FUNC_TEST ( testMin  ,
min   
)

◆ UNARY_OP_TEST() [1/2]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_OP_TEST ( testUnaryPlus  ,
 
)

◆ UNARY_OP_TEST() [2/2]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_OP_TEST ( testUnaryMinus  ,
 
)

◆ UNARY_FUNC_TEST() [1/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testExp  ,
exp   
)

◆ UNARY_FUNC_TEST() [2/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testLog  ,
log   
)

◆ UNARY_FUNC_TEST() [3/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testLog10  ,
log10   
)

◆ UNARY_FUNC_TEST() [4/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testSqrt  ,
sqrt   
)

◆ UNARY_FUNC_TEST() [5/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testCos  ,
cos   
)

◆ UNARY_FUNC_TEST() [6/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testSin  ,
sin   
)

◆ UNARY_FUNC_TEST() [7/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testTan  ,
tan   
)

◆ UNARY_FUNC_TEST() [8/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testACos  ,
acos   
)

◆ UNARY_FUNC_TEST() [9/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testASin  ,
asin   
)

◆ UNARY_FUNC_TEST() [10/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testATan  ,
atan   
)

◆ UNARY_FUNC_TEST() [11/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testCosh  ,
cosh   
)

◆ UNARY_FUNC_TEST() [12/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testSinh  ,
sinh   
)

◆ UNARY_FUNC_TEST() [13/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testTanh  ,
tanh   
)

◆ UNARY_FUNC_TEST() [14/14]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_FUNC_TEST ( testFAbs  ,
fabs   
)

◆ UNARY_ASSIGNOP_TEST() [1/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_ASSIGNOP_TEST ( testPlusEquals  ,
 
)

◆ UNARY_ASSIGNOP_TEST() [2/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_ASSIGNOP_TEST ( testMinusEquals  ,
 
)

◆ UNARY_ASSIGNOP_TEST() [3/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_ASSIGNOP_TEST ( testTimesEquals  ,
 
)

◆ UNARY_ASSIGNOP_TEST() [4/4]

template<class TaylorType>
TaylorOpsUnitTest< TaylorType >::UNARY_ASSIGNOP_TEST ( testDivideEquals  ,
 
)

◆ composite1()

template<class TaylorType>
template<typename ScalarT >
ScalarT TaylorOpsUnitTest< TaylorType >::composite1 ( const ScalarT &  a,
const ScalarT &  b 
)
inline

Definition at line 394 of file TayUnitTests.hpp.

◆ testComposite1()

template<class TaylorType>
void TaylorOpsUnitTest< TaylorType >::testComposite1 ( )
inline

Definition at line 407 of file TayUnitTests.hpp.

◆ testDiff1()

template<class TaylorType>
void TaylorOpsUnitTest< TaylorType >::testDiff1 ( )
inline

Definition at line 420 of file TayUnitTests.hpp.

◆ testDiff3()

template<class TaylorType>
void TaylorOpsUnitTest< TaylorType >::testDiff3 ( )
inline

Definition at line 428 of file TayUnitTests.hpp.

◆ print_poly()

template<class TaylorType >
void TaylorOpsUnitTest< TaylorType >::print_poly ( double *  x)

Definition at line 521 of file TayUnitTests.hpp.

◆ print_diff()

template<class TaylorType>
void TaylorOpsUnitTest< TaylorType >::print_diff ( const TaylorType x_dtay,
double *  x_adolc 
)

Definition at line 535 of file TayUnitTests.hpp.

Member Data Documentation

◆ a_dtay

template<class TaylorType>
TaylorType TaylorOpsUnitTest< TaylorType >::a_dtay
protected

Definition at line 441 of file TayUnitTests.hpp.

◆ b_dtay

template<class TaylorType>
TaylorType TaylorOpsUnitTest< TaylorType >::b_dtay
protected

Definition at line 441 of file TayUnitTests.hpp.

◆ c_dtay

template<class TaylorType>
TaylorType TaylorOpsUnitTest< TaylorType >::c_dtay
protected

Definition at line 441 of file TayUnitTests.hpp.

◆ X

template<class TaylorType>
double** TaylorOpsUnitTest< TaylorType >::X
protected

Definition at line 444 of file TayUnitTests.hpp.

◆ Y

template<class TaylorType>
double ** TaylorOpsUnitTest< TaylorType >::Y
protected

Definition at line 444 of file TayUnitTests.hpp.

◆ urand

template<class TaylorType>
Sacado::Random<double> TaylorOpsUnitTest< TaylorType >::urand
protected

Definition at line 447 of file TayUnitTests.hpp.

◆ d

template<class TaylorType>
int TaylorOpsUnitTest< TaylorType >::d
protected

Definition at line 450 of file TayUnitTests.hpp.

◆ tol_a

template<class TaylorType>
double TaylorOpsUnitTest< TaylorType >::tol_a
protected

Definition at line 453 of file TayUnitTests.hpp.

◆ tol_r

template<class TaylorType>
double TaylorOpsUnitTest< TaylorType >::tol_r
protected

Definition at line 453 of file TayUnitTests.hpp.


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