Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
Stokhos_SacadoUQPCEUnitTest.cpp File Reference
#include "Teuchos_UnitTestHarness.hpp"
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestRepository.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Stokhos.hpp"
#include "Stokhos_Sacado_Kokkos_UQ_PCE.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
Include dependency graph for Stokhos_SacadoUQPCEUnitTest.cpp:

Go to the source code of this file.

Classes

struct  SacadoPCEUnitTest::UnitTestSetup< PCEType >
 

Namespaces

namespace  Stokhos
 Top-level namespace for Stokhos classes and functions.
 
namespace  SacadoPCEUnitTest
 

Macros

#define UNARY_UNIT_TEST(OP)
 
#define BINARY_UNIT_TEST(OP, EXPOP)
 
#define OPASSIGN_UNIT_TEST(OP, EXPOP)
 

Typedefs

typedef Kokkos::DefaultHostExecutionSpace execution_space
 
typedef Stokhos::DynamicStorage< int, double, execution_spacestorage_type
 
typedef Sacado::UQ::PCE< storage_typepce_type
 

Functions

template<class PCEType , class OrdinalType , class ValueType >
bool Stokhos::comparePCEs (const PCEType &a1, const std::string &a1_name, const Stokhos::OrthogPolyApprox< OrdinalType, ValueType > &a2, const std::string &a2_name, const ValueType &rel_tol, const ValueType &abs_tol, Teuchos::FancyOStream &out)
 
 SacadoPCEUnitTest::TEUCHOS_UNIT_TEST (Stokhos_PCE, UMinus)
 
 SacadoPCEUnitTest::TEUCHOS_UNIT_TEST (Stokhos_PCE, initializer_list_copy)
 
 SacadoPCEUnitTest::TEUCHOS_UNIT_TEST (Stokhos_PCE, initializer_list_assign)
 
 SacadoPCEUnitTest::TEUCHOS_UNIT_TEST (Stokhos_PCE, range_based_for)
 

Macro Definition Documentation

◆ UNARY_UNIT_TEST

#define UNARY_UNIT_TEST (   OP)
Value:
TEUCHOS_UNIT_TEST( Stokhos_PCE, OP##_const) { \
UTS setup; \
UTS::pce_type u = OP(setup.cx); \
UTS::opa_type u_opa(setup.basis); \
setup.exp->OP(u_opa, setup.cx_opa); \
success = Stokhos::comparePCEs(u, "u", u_opa, "u_opa", \
setup.rtol, setup.atol, out); \
} \
TEUCHOS_UNIT_TEST( Stokhos_PCE, OP##_resize) { \
UTS setup; \
UTS::pce_type u; \
u = OP(setup.cx); \
UTS::opa_type u_opa(setup.basis); \
setup.exp->OP(u_opa, setup.cx_opa); \
success = Stokhos::comparePCEs(u, "u", u_opa, "u_opa", \
setup.rtol, setup.atol, out); \
}
TEUCHOS_UNIT_TEST(tAdaptivityManager, test_interface)
UnitTestSetup< Kokkos::Cuda > setup
bool comparePCEs(const PCEType &a1, const std::string &a1_name, const Stokhos::OrthogPolyApprox< OrdinalType, ValueType > &a2, const std::string &a2_name, const ValueType &rel_tol, const ValueType &abs_tol, Teuchos::FancyOStream &out)

Definition at line 215 of file Stokhos_SacadoUQPCEUnitTest.cpp.

◆ BINARY_UNIT_TEST

#define BINARY_UNIT_TEST (   OP,
  EXPOP 
)

Definition at line 252 of file Stokhos_SacadoUQPCEUnitTest.cpp.

◆ OPASSIGN_UNIT_TEST

#define OPASSIGN_UNIT_TEST (   OP,
  EXPOP 
)

Definition at line 344 of file Stokhos_SacadoUQPCEUnitTest.cpp.

Typedef Documentation

◆ execution_space

typedef Kokkos::DefaultHostExecutionSpace execution_space

Definition at line 52 of file Stokhos_SacadoUQPCEUnitTest.cpp.

◆ storage_type

Definition at line 53 of file Stokhos_SacadoUQPCEUnitTest.cpp.

◆ pce_type

Definition at line 54 of file Stokhos_SacadoUQPCEUnitTest.cpp.