|
Sacado Package Browser (Single Doxygen Collection) Version of the Day
|
#include "Sacado.hpp"#include "Sacado_Fad_BLAS.hpp"#include "Sacado_Random.hpp"#include <cppunit/extensions/HelperMacros.h>

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 COMPARE_VALUES | ( | a, | |
| b | |||
| ) | 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, | |
| b | |||
| ) |
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 | |||
| ) |
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.
1.7.4