Sacado Package Browser (Single Doxygen Collection) Version of the Day
Classes | Defines
FadBLASUnitTests.hpp File Reference
#include "Sacado.hpp"
#include "Sacado_Fad_BLAS.hpp"
#include "Sacado_Random.hpp"
#include <cppunit/extensions/HelperMacros.h>
Include dependency graph for FadBLASUnitTests.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FadBLASUnitTests< 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 COMPARE_FAD_VECTORS(X1, X2, n)

Define Documentation

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

Definition at line 43 of file FadBLASUnitTests.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 k=0; k<a.size(); k++) {      \
  COMPARE_VALUES(a.dx(k), b.dx(k));     \
  COMPARE_VALUES(a.fastAccessDx(k), b.fastAccessDx(k)); \
 }              \
 ;

Definition at line 46 of file FadBLASUnitTests.hpp.

#define COMPARE_FAD_VECTORS (   X1,
  X2,
  n 
)
Value:
CPPUNIT_ASSERT(X1.size() == std::size_t(n));  \
  CPPUNIT_ASSERT(X2.size() == std::size_t(n));  \
  for (unsigned int i=0; i<n; i++) {    \
    COMPARE_FADS(X1[i], X2[i]);     \
  }           \
  ;

Definition at line 56 of file FadBLASUnitTests.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines