#include "Teuchos_UnitTestHarness.hpp"
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestRepository.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Stokhos_Sacado_Kokkos_MP_Vector.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
#include <Kokkos_Core.hpp>
Go to the source code of this file.
◆ UNARY_UNIT_TEST
#define UNARY_UNIT_TEST |
( |
|
VEC, |
|
|
|
OP, |
|
|
|
OPNAME |
|
) |
| |
Value: for (
int i=0; i<
setup.sz; i++) \
v.fastAccessCoeff(i) = OP(
setup.x.fastAccessCoeff(i)); \
} \
TEUCHOS_UNIT_TEST( VEC,
OPNAME##_const) { \
for (int i=0; i<v.size(); i++) \
v.fastAccessCoeff(i) = OP(
setup.cx.fastAccessCoeff(0)); \
} \
TEUCHOS_UNIT_TEST( VEC,
OPNAME##_resize) { \
for (
int i=0; i<
setup.sz; i++) \
v.fastAccessCoeff(i) = OP(
setup.x.fastAccessCoeff(i)); \
}
bool compareVecs(const VectorType1 &a1, const std::string &a1_name, const VectorType2 &a2, const std::string &a2_name, const ValueType &rel_tol, const ValueType &abs_tol, Teuchos::FancyOStream &out)
UnitTestSetup< int, double > setup
Sacado::MP::Vector< storage_type > vec_type
Definition at line 91 of file Stokhos_SacadoMPVectorUnitTest.cpp.
◆ BINARY_UNIT_TEST
#define BINARY_UNIT_TEST |
( |
|
VEC, |
|
|
|
OP, |
|
|
|
OPNAME |
|
) |
| |
◆ BINARYFUNC_UNIT_TEST
#define BINARYFUNC_UNIT_TEST |
( |
|
VEC, |
|
|
|
OP, |
|
|
|
SOP, |
|
|
|
OPNAME |
|
) |
| |
◆ OPASSIGN_UNIT_TEST
#define OPASSIGN_UNIT_TEST |
( |
|
VEC, |
|
|
|
OP, |
|
|
|
OPNAME |
|
) |
| |
◆ SAXPY_UNIT_TEST
#define SAXPY_UNIT_TEST |
( |
|
VEC | ) |
|
◆ TERNARY_UNIT_TEST
#define TERNARY_UNIT_TEST |
( |
|
VEC | ) |
|
Value: u = u >= 0 ? -u : u; \
}
bool compareVecs(const VectorType1 &a1, const std::string &a1_name, const VectorType2 &a2, const std::string &a2_name, const ValueType &rel_tol, const ValueType &abs_tol, Teuchos::FancyOStream &out)
UnitTestSetup< int, double > setup
KOKKOS_INLINE_FUNCTION PCE< Storage > sin(const PCE< Storage > &a)
Sacado::MP::Vector< storage_type > vec_type
Definition at line 400 of file Stokhos_SacadoMPVectorUnitTest.cpp.
◆ VECTOR_UNIT_TESTS
#define VECTOR_UNIT_TESTS |
( |
|
VEC | ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |