Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions | Variables
Stokhos_KokkosViewUQPCEUnitTest.hpp File Reference
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestHelpers.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
#include "Stokhos_Sacado_Kokkos_UQ_PCE.hpp"
#include "Stokhos_LegendreBasis.hpp"
#include "Stokhos_CompletePolynomialBasis.hpp"
#include "Stokhos_Sparse3Tensor.hpp"
Include dependency graph for Stokhos_KokkosViewUQPCEUnitTest.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ApplyView< DataType, LayoutType, ExecutionSpace >
 
struct  NoLayout
 
struct  ApplyView< DataType, NoLayout, ExecutionSpace >
 
struct  Test::PCEAtomicFunctor< ViewType >
 

Namespaces

 Test
 

Macros

#define VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, LAYOUT)
 
#define VIEW_UQ_PCE_TESTS_STORAGE(STORAGE)
 
#define VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE(ORDINAL, SCALAR, DEVICE)
 
#define VIEW_UQ_PCE_TESTS_DEVICE(DEVICE)   VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE( int, double, DEVICE )
 

Functions

template<typename kokkos_cijk_type , typename ordinal_type >
kokkos_cijk_type build_cijk (ordinal_type stoch_dim, ordinal_type poly_ord)
 
template<typename scalar , typename ordinal >
scalar generate_pce_coefficient (const ordinal nFEM, const ordinal nStoch, const ordinal iColFEM, const ordinal iStoch)
 
template<typename ViewType >
bool checkPCEView (const ViewType &v, Teuchos::FancyOStream &out)
 
template<typename ViewType >
bool checkConstantPCEView (const ViewType &v, const typename ViewType::value_type &v_expected, Teuchos::FancyOStream &out)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, Size, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_NonContiguous, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_ConstantScalar, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_ConstantPCE, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_ConstantPCE2, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL (Kokkos_View_PCE, DeepCopy_Subview_Range, Storage)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_HostArray, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeepCopy_DeviceArray, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, Unmanaged, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, DeviceAtomic, Storage, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_PCE, AssignData, Storage, Layout)
 

Variables

const int global_num_rows = 11
 
const int global_num_cols = 9
 

Macro Definition Documentation

#define VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT (   STORAGE,
  LAYOUT 
)
Value:
Kokkos_View_PCE, Size, STORAGE, LAYOUT ) \
Kokkos_View_PCE, DeepCopy, STORAGE, LAYOUT ) \
Kokkos_View_PCE, DeepCopy_NonContiguous, STORAGE, LAYOUT ) \
Kokkos_View_PCE, DeepCopy_ConstantScalar, STORAGE, LAYOUT ) \
Kokkos_View_PCE, DeepCopy_ConstantPCE, STORAGE, LAYOUT ) \
Kokkos_View_PCE, DeepCopy_ConstantPCE2, STORAGE, LAYOUT ) \
Kokkos_View_PCE, Unmanaged, STORAGE, LAYOUT ) \
Kokkos_View_PCE, AssignData, STORAGE, LAYOUT )
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix, MatVec, double, Node) TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix

Definition at line 604 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

#define VIEW_UQ_PCE_TESTS_STORAGE (   STORAGE)
Value:
using Kokkos::LayoutLeft; \
using Kokkos::LayoutRight; \
VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, LayoutRight) \
TEUCHOS_UNIT_TEST_TEMPLATE_1_INSTANT( \
Kokkos_View_PCE, DeepCopy_Subview_Range, STORAGE )
#define VIEW_UQ_PCE_TESTS_STORAGE_LAYOUT(STORAGE, LAYOUT)

Definition at line 636 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

#define VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE (   ORDINAL,
  SCALAR,
  DEVICE 
)
#define VIEW_UQ_PCE_TESTS_DEVICE (   DEVICE)    VIEW_UQ_PCE_TESTS_ORDINAL_SCALAR_DEVICE( int, double, DEVICE )

Definition at line 649 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

Function Documentation

template<typename kokkos_cijk_type , typename ordinal_type >
kokkos_cijk_type build_cijk ( ordinal_type  stoch_dim,
ordinal_type  poly_ord 
)

Definition at line 27 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

template<typename scalar , typename ordinal >
scalar generate_pce_coefficient ( const ordinal  nFEM,
const ordinal  nStoch,
const ordinal  iColFEM,
const ordinal  iStoch 
)
inline

Definition at line 59 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

template<typename ViewType >
bool checkPCEView ( const ViewType &  v,
Teuchos::FancyOStream out 
)

Definition at line 72 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

template<typename ViewType >
bool checkConstantPCEView ( const ViewType &  v,
const typename ViewType::value_type &  v_expected,
Teuchos::FancyOStream out 
)

Definition at line 127 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
Size  ,
Storage  ,
Layout   
)

Definition at line 172 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy  ,
Storage  ,
Layout   
)

Definition at line 193 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy_NonContiguous  ,
Storage  ,
Layout   
)

Definition at line 234 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy_ConstantScalar  ,
Storage  ,
Layout   
)

Definition at line 269 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy_ConstantPCE  ,
Storage  ,
Layout   
)

Definition at line 294 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy_ConstantPCE2  ,
Storage  ,
Layout   
)

Definition at line 319 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_1_DECL ( Kokkos_View_PCE  ,
DeepCopy_Subview_Range  ,
Storage   
)

Definition at line 346 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy_HostArray  ,
Storage  ,
Layout   
)

Definition at line 398 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeepCopy_DeviceArray  ,
Storage  ,
Layout   
)

Definition at line 438 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
Unmanaged  ,
Storage  ,
Layout   
)

Definition at line 471 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
DeviceAtomic  ,
Storage  ,
Layout   
)

Definition at line 545 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_PCE  ,
AssignData  ,
Storage  ,
Layout   
)

Definition at line 569 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

Variable Documentation

const int global_num_rows = 11

Definition at line 169 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.

const int global_num_cols = 9

Definition at line 170 of file Stokhos_KokkosViewUQPCEUnitTest.hpp.