#include <CacheTaylorUnitTests.hpp>
Public Member Functions | |
| CacheTaylorOpsUnitTest () | |
| CacheTaylorOpsUnitTest (unsigned int degree, double absolute_tolerance, double relative_tolerance) | |
| ~CacheTaylorOpsUnitTest () | |
| void | setUp () |
| void | tearDown () |
| void | comparePolys (const TaylorType &x_dtay, double *x_adolc) |
| void | compareDoubles (double a, double b) |
| 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 | 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 | urand |
| unsigned int | d |
| double | tol_a |
| double | tol_r |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (CacheTaylorOpsUnitTest) | |
| 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_SUITE_END () | |
Definition at line 280 of file CacheTaylorUnitTests.hpp.
| CacheTaylorOpsUnitTest::CacheTaylorOpsUnitTest | ( | ) |
Definition at line 36 of file CacheTaylorUnitTests.cpp.
| CacheTaylorOpsUnitTest::CacheTaylorOpsUnitTest | ( | unsigned int | degree, | |
| double | absolute_tolerance, | |||
| double | relative_tolerance | |||
| ) |
Definition at line 47 of file CacheTaylorUnitTests.cpp.
| CacheTaylorOpsUnitTest::~CacheTaylorOpsUnitTest | ( | ) |
Definition at line 63 of file CacheTaylorUnitTests.cpp.
| CacheTaylorOpsUnitTest::CPPUNIT_TEST_SUITE | ( | CacheTaylorOpsUnitTest | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_OP_TEST | ( | testAddition | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_OP_TEST | ( | testSubtraction | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_OP_TEST | ( | testMultiplication | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_OP_TEST | ( | testDivision | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_RELOP_OP_TEST | ( | testEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_RELOP_OP_TEST | ( | testNotEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_RELOP_OP_TEST | ( | testLessThanOrEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_RELOP_OP_TEST | ( | testGreaterThanOrEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_RELOP_OP_TEST | ( | testLessThan | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_RELOP_OP_TEST | ( | testGreaterThan | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_FUNC_TEST | ( | testPow | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_FUNC_TEST | ( | testMax | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_BINARY_FUNC_TEST | ( | testMin | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testUnaryPlus | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testUnaryMinus | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testExp | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testLog | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testLog10 | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testSqrt | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testCos | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testSin | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testTan | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testACos | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testASin | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testATan | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testCosh | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testSinh | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testTanh | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testFAbs | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_UNARY_ASSIGNOP_TEST | ( | testPlusEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_UNARY_ASSIGNOP_TEST | ( | testMinusEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_UNARY_ASSIGNOP_TEST | ( | testTimesEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_UNARY_ASSIGNOP_TEST | ( | testDivideEquals | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST | ( | testComposite1 | ) | [private] |
| CacheTaylorOpsUnitTest::CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
| void CacheTaylorOpsUnitTest::setUp | ( | ) |
Definition at line 73 of file CacheTaylorUnitTests.cpp.
| void CacheTaylorOpsUnitTest::tearDown | ( | ) |
Definition at line 92 of file CacheTaylorUnitTests.cpp.
| void CacheTaylorOpsUnitTest::comparePolys | ( | const TaylorType & | x_dtay, | |
| double * | x_adolc | |||
| ) |
Definition at line 94 of file CacheTaylorUnitTests.cpp.
| void CacheTaylorOpsUnitTest::compareDoubles | ( | double | a, | |
| double | b | |||
| ) |
Definition at line 114 of file CacheTaylorUnitTests.cpp.
| CacheTaylorOpsUnitTest::BINARY_OP_TEST | ( | testAddition | , | |
| + | ||||
| ) |
| CacheTaylorOpsUnitTest::BINARY_OP_TEST | ( | testSubtraction | , | |
| - | ||||
| ) |
| CacheTaylorOpsUnitTest::BINARY_OP_TEST | ( | testMultiplication | , | |
| * | ||||
| ) |
| CacheTaylorOpsUnitTest::BINARY_OP_TEST | ( | testDivision | , | |
| / | ||||
| ) |
| CacheTaylorOpsUnitTest::RELOP_OP_TEST | ( | testEquals | ) |
| CacheTaylorOpsUnitTest::RELOP_OP_TEST | ( | testNotEquals | , | |
| ! | ||||
| ) |
| CacheTaylorOpsUnitTest::RELOP_OP_TEST | ( | testLessThanOrEquals | , | |
| <= | ||||
| ) |
| CacheTaylorOpsUnitTest::RELOP_OP_TEST | ( | testGreaterThanOrEquals | , | |
| >= | ||||
| ) |
| CacheTaylorOpsUnitTest::RELOP_OP_TEST | ( | testLessThan | ) |
| CacheTaylorOpsUnitTest::RELOP_OP_TEST | ( | testGreaterThan | ) |
| CacheTaylorOpsUnitTest::BINARY_FUNC_TEST | ( | testPow | , | |
| pow | ||||
| ) |
| CacheTaylorOpsUnitTest::BINARY_FUNC_TEST | ( | testMax | , | |
| max | ||||
| ) |
| CacheTaylorOpsUnitTest::BINARY_FUNC_TEST | ( | testMin | , | |
| min | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_OP_TEST | ( | testUnaryPlus | , | |
| + | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_OP_TEST | ( | testUnaryMinus | , | |
| - | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testExp | , | |
| exp | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testLog | , | |
| log | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testLog10 | , | |
| log10 | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testSqrt | , | |
| sqrt | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testCos | , | |
| cos | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testSin | , | |
| sin | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testTan | , | |
| tan | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testACos | , | |
| acos | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testASin | , | |
| asin | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testATan | , | |
| atan | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testCosh | , | |
| cosh | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testSinh | , | |
| sinh | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testTanh | , | |
| tanh | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_FUNC_TEST | ( | testFAbs | , | |
| fabs | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_ASSIGNOP_TEST | ( | testPlusEquals | , | |
| + | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_ASSIGNOP_TEST | ( | testMinusEquals | , | |
| - | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_ASSIGNOP_TEST | ( | testTimesEquals | , | |
| * | ||||
| ) |
| CacheTaylorOpsUnitTest::UNARY_ASSIGNOP_TEST | ( | testDivideEquals | , | |
| / | ||||
| ) |
| ScalarT CacheTaylorOpsUnitTest::composite1 | ( | const ScalarT & | a, | |
| const ScalarT & | b | |||
| ) | [inline] |
Definition at line 387 of file CacheTaylorUnitTests.hpp.
| void CacheTaylorOpsUnitTest::testComposite1 | ( | ) | [inline] |
Definition at line 400 of file CacheTaylorUnitTests.hpp.
| void CacheTaylorOpsUnitTest::print_poly | ( | double * | x | ) |
Definition at line 119 of file CacheTaylorUnitTests.cpp.
| void CacheTaylorOpsUnitTest::print_diff | ( | const TaylorType & | x_dtay, | |
| double * | x_adolc | |||
| ) |
Definition at line 132 of file CacheTaylorUnitTests.cpp.
TaylorType CacheTaylorOpsUnitTest::a_dtay [protected] |
Definition at line 420 of file CacheTaylorUnitTests.hpp.
TaylorType CacheTaylorOpsUnitTest::b_dtay [protected] |
Definition at line 420 of file CacheTaylorUnitTests.hpp.
TaylorType CacheTaylorOpsUnitTest::c_dtay [protected] |
Definition at line 420 of file CacheTaylorUnitTests.hpp.
double** CacheTaylorOpsUnitTest::X [protected] |
Definition at line 423 of file CacheTaylorUnitTests.hpp.
double ** CacheTaylorOpsUnitTest::Y [protected] |
Definition at line 423 of file CacheTaylorUnitTests.hpp.
Sacado::Random CacheTaylorOpsUnitTest::urand [protected] |
Definition at line 426 of file CacheTaylorUnitTests.hpp.
unsigned int CacheTaylorOpsUnitTest::d [protected] |
Definition at line 429 of file CacheTaylorUnitTests.hpp.
double CacheTaylorOpsUnitTest::tol_a [protected] |
Definition at line 432 of file CacheTaylorUnitTests.hpp.
double CacheTaylorOpsUnitTest::tol_r [protected] |
Definition at line 432 of file CacheTaylorUnitTests.hpp.
1.4.7