Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros
FadUnitTests2.hpp File Reference
#include "Sacado_No_Kokkos.hpp"
#include "Sacado_Random.hpp"
#include <cppunit/extensions/HelperMacros.h>
Include dependency graph for FadUnitTests2.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FadOpsUnitTest2< FadType, ScalarType >
 
class  RealFadOpsUnitTest2< FadType, ScalarType >
 

Macros

#define COMPARE_VALUES(a, b)   CPPUNIT_ASSERT( std::abs(a-b) < this->tol_a + this->tol_r*std::abs(a) );
 
#define COMPARE_FADS(a, b)
 

Macro Definition Documentation

#define COMPARE_VALUES (   a,
 
)    CPPUNIT_ASSERT( std::abs(a-b) < this->tol_a + this->tol_r*std::abs(a) );

Definition at line 40 of file FadUnitTests2.hpp.

#define COMPARE_FADS (   a,
 
)
Value:
CPPUNIT_ASSERT(a.size() == b.size()); \
CPPUNIT_ASSERT(a.hasFastAccess() == b.hasFastAccess()); \
COMPARE_VALUES(a.val(), b.val()); \
for (int i=0; i<a.size(); i++) { \
COMPARE_VALUES(a.dx(i), b.dx(i)); \
COMPARE_VALUES(a.fastAccessDx(i), b.fastAccessDx(i)); \
} \
;
#define COMPARE_VALUES(a, b)

Definition at line 43 of file FadUnitTests2.hpp.