#include "Sacado_No_Kokkos.hpp"
#include "Sacado_Fad_LAPACK.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 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 FadLAPACKUnitTests.hpp.
◆ COMPARE_FAD_VECTORS
#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 FadLAPACKUnitTests.hpp.