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)); \
}
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 | ) |
|
◆ VECTOR_UNIT_TESTS
| #define VECTOR_UNIT_TESTS |
( |
|
VEC | ) |
|
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
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)