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

#include <LogicalSparseUnitTests.hpp>

Inherits TestFixture.

Public Member Functions

 LogicalSparseOpsUnitTest ()
 
 LogicalSparseOpsUnitTest (int numComponents, double absolute_tolerance, double relative_tolerance)
 
void setUp ()
 
void tearDown ()
 
void compareFads (const DFadType &x_dfad, const LSType &x_ls)
 
void compareDoubles (double a, double b)
 
void compareBools (bool a, bool b)
 
void compareDx (double a, bool b)
 
 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 ()
 

Protected Attributes

DFadType a_dfad
 
DFadType b_dfad
 
DFadType c_dfad
 
LSType a_ls
 
LSType b_ls
 
LSType c_ls
 
Sacado::Random< double > urand
 
int n
 
double tol_a
 
double tol_r
 

Private Member Functions

 CPPUNIT_TEST_SUITE (LogicalSparseOpsUnitTest)
 
 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_SUITE_END ()
 

Detailed Description

Definition at line 120 of file LogicalSparseUnitTests.hpp.

Constructor & Destructor Documentation

◆ LogicalSparseOpsUnitTest() [1/2]

LogicalSparseOpsUnitTest::LogicalSparseOpsUnitTest ( )

Definition at line 36 of file LogicalSparseUnitTests.cpp.

◆ LogicalSparseOpsUnitTest() [2/2]

LogicalSparseOpsUnitTest::LogicalSparseOpsUnitTest ( int  numComponents,
double  absolute_tolerance,
double  relative_tolerance 
)

Definition at line 39 of file LogicalSparseUnitTests.cpp.

Member Function Documentation

◆ CPPUNIT_TEST_SUITE()

LogicalSparseOpsUnitTest::CPPUNIT_TEST_SUITE ( LogicalSparseOpsUnitTest  )
private

◆ CPPUNIT_TEST() [1/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testAddition  )
private

◆ CPPUNIT_TEST() [2/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testSubtraction  )
private

◆ CPPUNIT_TEST() [3/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testMultiplication  )
private

◆ CPPUNIT_TEST() [4/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testDivision  )
private

◆ CPPUNIT_TEST() [5/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testEquals  )
private

◆ CPPUNIT_TEST() [6/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testNotEquals  )
private

◆ CPPUNIT_TEST() [7/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testLessThanOrEquals  )
private

◆ CPPUNIT_TEST() [8/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testGreaterThanOrEquals  )
private

◆ CPPUNIT_TEST() [9/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testLessThan  )
private

◆ CPPUNIT_TEST() [10/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testGreaterThan  )
private

◆ CPPUNIT_TEST() [11/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testPow  )
private

◆ CPPUNIT_TEST() [12/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testMax  )
private

◆ CPPUNIT_TEST() [13/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testMin  )
private

◆ CPPUNIT_TEST() [14/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testUnaryPlus  )
private

◆ CPPUNIT_TEST() [15/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testUnaryMinus  )
private

◆ CPPUNIT_TEST() [16/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testExp  )
private

◆ CPPUNIT_TEST() [17/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testLog  )
private

◆ CPPUNIT_TEST() [18/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testLog10  )
private

◆ CPPUNIT_TEST() [19/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testSqrt  )
private

◆ CPPUNIT_TEST() [20/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testCos  )
private

◆ CPPUNIT_TEST() [21/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testSin  )
private

◆ CPPUNIT_TEST() [22/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testTan  )
private

◆ CPPUNIT_TEST() [23/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testACos  )
private

◆ CPPUNIT_TEST() [24/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testASin  )
private

◆ CPPUNIT_TEST() [25/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testATan  )
private

◆ CPPUNIT_TEST() [26/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testCosh  )
private

◆ CPPUNIT_TEST() [27/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testSinh  )
private

◆ CPPUNIT_TEST() [28/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testTanh  )
private

◆ CPPUNIT_TEST() [29/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testAbs  )
private

◆ CPPUNIT_TEST() [30/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testFAbs  )
private

◆ CPPUNIT_TEST() [31/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testPlusEquals  )
private

◆ CPPUNIT_TEST() [32/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testMinusEquals  )
private

◆ CPPUNIT_TEST() [33/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testTimesEquals  )
private

◆ CPPUNIT_TEST() [34/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testDivideEquals  )
private

◆ CPPUNIT_TEST() [35/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testComposite1  )
private

◆ CPPUNIT_TEST() [36/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testPlusLR  )
private

◆ CPPUNIT_TEST() [37/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testMinusLR  )
private

◆ CPPUNIT_TEST() [38/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testTimesLR  )
private

◆ CPPUNIT_TEST() [39/39]

LogicalSparseOpsUnitTest::CPPUNIT_TEST ( testDivideLR  )
private

◆ CPPUNIT_TEST_SUITE_END()

LogicalSparseOpsUnitTest::CPPUNIT_TEST_SUITE_END ( )
private

◆ setUp()

void LogicalSparseOpsUnitTest::setUp ( )

Definition at line 47 of file LogicalSparseUnitTests.cpp.

◆ tearDown()

void LogicalSparseOpsUnitTest::tearDown ( )

Definition at line 73 of file LogicalSparseUnitTests.cpp.

◆ compareFads()

void LogicalSparseOpsUnitTest::compareFads ( const DFadType x_dfad,
const LSType x_ls 
)

Definition at line 75 of file LogicalSparseUnitTests.cpp.

◆ compareDoubles()

void LogicalSparseOpsUnitTest::compareDoubles ( double  a,
double  b 
)

Definition at line 97 of file LogicalSparseUnitTests.cpp.

◆ compareBools()

void LogicalSparseOpsUnitTest::compareBools ( bool  a,
bool  b 
)

Definition at line 101 of file LogicalSparseUnitTests.cpp.

◆ compareDx()

void LogicalSparseOpsUnitTest::compareDx ( double  a,
bool  b 
)

Definition at line 105 of file LogicalSparseUnitTests.cpp.

◆ BINARY_OP_TEST() [1/4]

LogicalSparseOpsUnitTest::BINARY_OP_TEST ( testAddition  ,
 
)

◆ BINARY_OP_TEST() [2/4]

LogicalSparseOpsUnitTest::BINARY_OP_TEST ( testSubtraction  ,
 
)

◆ BINARY_OP_TEST() [3/4]

LogicalSparseOpsUnitTest::BINARY_OP_TEST ( testMultiplication  ,
 
)

◆ BINARY_OP_TEST() [4/4]

LogicalSparseOpsUnitTest::BINARY_OP_TEST ( testDivision  ,
 
)

◆ RELOP_TEST() [1/6]

LogicalSparseOpsUnitTest::RELOP_TEST ( testEquals  )

◆ RELOP_TEST() [2/6]

LogicalSparseOpsUnitTest::RELOP_TEST ( testNotEquals  ,
 
)

◆ RELOP_TEST() [3/6]

LogicalSparseOpsUnitTest::RELOP_TEST ( testLessThanOrEquals  ,
<=   
)

◆ RELOP_TEST() [4/6]

LogicalSparseOpsUnitTest::RELOP_TEST ( testGreaterThanOrEquals  ,
>=   
)

◆ RELOP_TEST() [5/6]

LogicalSparseOpsUnitTest::RELOP_TEST ( testLessThan  )

◆ RELOP_TEST() [6/6]

LogicalSparseOpsUnitTest::RELOP_TEST ( testGreaterThan  )

◆ BINARY_FUNC_TEST()

LogicalSparseOpsUnitTest::BINARY_FUNC_TEST ( testPow  ,
pow   
)

◆ UNARY_OP_TEST() [1/2]

LogicalSparseOpsUnitTest::UNARY_OP_TEST ( testUnaryPlus  ,
 
)

◆ UNARY_OP_TEST() [2/2]

LogicalSparseOpsUnitTest::UNARY_OP_TEST ( testUnaryMinus  ,
 
)

◆ UNARY_FUNC_TEST() [1/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testExp  ,
exp   
)

◆ UNARY_FUNC_TEST() [2/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testLog  ,
log   
)

◆ UNARY_FUNC_TEST() [3/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testLog10  ,
log10   
)

◆ UNARY_FUNC_TEST() [4/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testSqrt  ,
sqrt   
)

◆ UNARY_FUNC_TEST() [5/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testCos  ,
cos   
)

◆ UNARY_FUNC_TEST() [6/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testSin  ,
sin   
)

◆ UNARY_FUNC_TEST() [7/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testTan  ,
tan   
)

◆ UNARY_FUNC_TEST() [8/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testACos  ,
acos   
)

◆ UNARY_FUNC_TEST() [9/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testASin  ,
asin   
)

◆ UNARY_FUNC_TEST() [10/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testATan  ,
atan   
)

◆ UNARY_FUNC_TEST() [11/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testCosh  ,
cosh   
)

◆ UNARY_FUNC_TEST() [12/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testSinh  ,
sinh   
)

◆ UNARY_FUNC_TEST() [13/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testTanh  ,
tanh   
)

◆ UNARY_FUNC_TEST() [14/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testAbs  ,
abs   
)

◆ UNARY_FUNC_TEST() [15/15]

LogicalSparseOpsUnitTest::UNARY_FUNC_TEST ( testFAbs  ,
fabs   
)

◆ UNARY_ASSIGNOP_TEST() [1/4]

LogicalSparseOpsUnitTest::UNARY_ASSIGNOP_TEST ( testPlusEquals  ,
 
)

◆ UNARY_ASSIGNOP_TEST() [2/4]

LogicalSparseOpsUnitTest::UNARY_ASSIGNOP_TEST ( testMinusEquals  ,
 
)

◆ UNARY_ASSIGNOP_TEST() [3/4]

LogicalSparseOpsUnitTest::UNARY_ASSIGNOP_TEST ( testTimesEquals  ,
 
)

◆ UNARY_ASSIGNOP_TEST() [4/4]

LogicalSparseOpsUnitTest::UNARY_ASSIGNOP_TEST ( testDivideEquals  ,
 
)

◆ testMax()

void LogicalSparseOpsUnitTest::testMax ( )

Definition at line 109 of file LogicalSparseUnitTests.cpp.

◆ testMin()

void LogicalSparseOpsUnitTest::testMin ( )

Definition at line 206 of file LogicalSparseUnitTests.cpp.

◆ composite1()

template<typename ScalarT >
ScalarT LogicalSparseOpsUnitTest::composite1 ( const ScalarT &  a,
const ScalarT &  b 
)
inline

Definition at line 238 of file LogicalSparseUnitTests.hpp.

◆ testComposite1()

void LogicalSparseOpsUnitTest::testComposite1 ( )
inline

Definition at line 251 of file LogicalSparseUnitTests.hpp.

◆ testPlusLR()

void LogicalSparseOpsUnitTest::testPlusLR ( )
inline

Definition at line 257 of file LogicalSparseUnitTests.hpp.

◆ testMinusLR()

void LogicalSparseOpsUnitTest::testMinusLR ( )
inline

Definition at line 267 of file LogicalSparseUnitTests.hpp.

◆ testTimesLR()

void LogicalSparseOpsUnitTest::testTimesLR ( )
inline

Definition at line 277 of file LogicalSparseUnitTests.hpp.

◆ testDivideLR()

void LogicalSparseOpsUnitTest::testDivideLR ( )
inline

Definition at line 287 of file LogicalSparseUnitTests.hpp.

Member Data Documentation

◆ a_dfad

DFadType LogicalSparseOpsUnitTest::a_dfad
protected

Definition at line 300 of file LogicalSparseUnitTests.hpp.

◆ b_dfad

DFadType LogicalSparseOpsUnitTest::b_dfad
protected

Definition at line 300 of file LogicalSparseUnitTests.hpp.

◆ c_dfad

DFadType LogicalSparseOpsUnitTest::c_dfad
protected

Definition at line 300 of file LogicalSparseUnitTests.hpp.

◆ a_ls

LSType LogicalSparseOpsUnitTest::a_ls
protected

Definition at line 303 of file LogicalSparseUnitTests.hpp.

◆ b_ls

LSType LogicalSparseOpsUnitTest::b_ls
protected

Definition at line 303 of file LogicalSparseUnitTests.hpp.

◆ c_ls

LSType LogicalSparseOpsUnitTest::c_ls
protected

Definition at line 303 of file LogicalSparseUnitTests.hpp.

◆ urand

Sacado::Random<double> LogicalSparseOpsUnitTest::urand
protected

Definition at line 306 of file LogicalSparseUnitTests.hpp.

◆ n

int LogicalSparseOpsUnitTest::n
protected

Definition at line 309 of file LogicalSparseUnitTests.hpp.

◆ tol_a

double LogicalSparseOpsUnitTest::tol_a
protected

Definition at line 312 of file LogicalSparseUnitTests.hpp.

◆ tol_r

double LogicalSparseOpsUnitTest::tol_r
protected

Definition at line 312 of file LogicalSparseUnitTests.hpp.


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