Sacado Package Browser (Single Doxygen Collection) Version of the Day
Classes | Defines
FadUnitTests2.hpp File Reference
#include "Sacado.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.


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


#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)

Define Documentation

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

Definition at line 42 of file FadUnitTests2.hpp.

#define COMPARE_FADS (   a,
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)); \
 }              \

Definition at line 45 of file FadUnitTests2.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines