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.

Classes

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

Defines

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

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)); \
 }              \
 ;

Definition at line 45 of file FadUnitTests2.hpp.


Generated on Wed May 12 21:39:42 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7