#include "Sacado_No_Kokkos.hpp"
#include "Sacado_Random.hpp"
#include <cppunit/extensions/HelperMacros.h>
Go to the source code of this file.
◆ COMPARE_VALUES
#define COMPARE_VALUES |
( |
|
a, |
|
|
|
b |
|
) |
| CPPUNIT_ASSERT( std::abs(a-b) < this->tol_a + this->tol_r*std::abs(a) ); |
◆ COMPARE_FADS
#define COMPARE_FADS |
( |
|
a, |
|
|
|
b |
|
) |
| |
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 43 of file FadUnitTests2.hpp.