Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions | Variables
Stokhos_KokkosViewFadMPVectorUnitTest.hpp File Reference
#include "Teuchos_TestingHelpers.hpp"
#include "Teuchos_UnitTestHelpers.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
#include "Kokkos_View_Fad_Fwd.hpp"
#include "Stokhos_Sacado_Kokkos_MP_Vector.hpp"
#include "Stokhos_Ensemble_Sizes.hpp"
#include "Sacado.hpp"
#include "Sacado_Fad_MP_Vector.hpp"
#include "Kokkos_Core.hpp"
Include dependency graph for Stokhos_KokkosViewFadMPVectorUnitTest.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 >
 

Macros

#define VIEW_FAD_MP_VECTOR_TESTS_SCALAR_LAYOUT(SCALAR, LAYOUT)
 
#define VIEW_FAD_MP_VECTOR_TESTS_SCALAR(SCALAR)
 
#define VIEW_FAD_MP_VECTOR_TESTS_DEVICE(DEVICE)
 

Functions

template<typename scalar , typename ordinal >
scalar generate_vector_coefficient (const ordinal nFEM, const ordinal nStoch, const ordinal iColFEM, const ordinal iStoch)
 
template<typename ViewType >
bool checkVectorView (const ViewType &v, Teuchos::FancyOStream &out)
 
template<typename ViewType >
bool checkConstantFadVectorView (const ViewType &view, const typename ViewType::value_type &v, Teuchos::FancyOStream &out)
 
template<typename ViewType >
bool checkConstantFadVectorView2 (const ViewType &view, const typename ViewType::value_type &v, Teuchos::FancyOStream &out)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_Fad_MP, Size, Scalar, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_Fad_MP, DeepCopy_ConstantScalar, Scalar, Layout)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL (Kokkos_View_Fad_MP, Rank6, Scalar, Layout)
 

Variables

const int global_num_rows = 11
 
const int global_ensemble_size = STOKHOS_DEFAULT_ENSEMBLE_SIZE
 
const int global_fad_size = 5
 

Macro Definition Documentation

#define VIEW_FAD_MP_VECTOR_TESTS_SCALAR_LAYOUT (   SCALAR,
  LAYOUT 
)
Value:
Kokkos_View_Fad_MP, Size, SCALAR, LAYOUT ) \
Kokkos_View_Fad_MP, DeepCopy_ConstantScalar, SCALAR, LAYOUT ) \
Kokkos_View_Fad_MP, Rank6, SCALAR, LAYOUT )
TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix, MatVec, double, Node) TEUCHOS_UNIT_TEST_TEMPLATE_2_INSTANT(Tpetra_CrsMatrix

Definition at line 236 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

#define VIEW_FAD_MP_VECTOR_TESTS_SCALAR (   SCALAR)
Value:
using Kokkos::LayoutLeft; \
using Kokkos::LayoutRight; \
#define VIEW_FAD_MP_VECTOR_TESTS_SCALAR_LAYOUT(SCALAR, LAYOUT)

Definition at line 244 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

#define VIEW_FAD_MP_VECTOR_TESTS_DEVICE (   DEVICE)
Value:
typedef Sacado::MP::Vector< SFS > MP_SFS; \
typedef Sacado::Fad::DFad< MP_SFS > Fad_MP_SFS; \
Statically allocated storage class.
#define VIEW_FAD_MP_VECTOR_TESTS_SCALAR(SCALAR)

Definition at line 251 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

Function Documentation

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

Definition at line 32 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

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

Definition at line 45 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

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

Definition at line 101 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

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

Definition at line 133 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_Fad_MP  ,
Size  ,
Scalar  ,
Layout   
)

Definition at line 189 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_Fad_MP  ,
DeepCopy_ConstantScalar  ,
Scalar  ,
Layout   
)

Definition at line 202 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_2_DECL ( Kokkos_View_Fad_MP  ,
Rank6  ,
Scalar  ,
Layout   
)

Definition at line 220 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

Variable Documentation

const int global_num_rows = 11

Definition at line 185 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

const int global_ensemble_size = STOKHOS_DEFAULT_ENSEMBLE_SIZE

Definition at line 186 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.

const int global_fad_size = 5

Definition at line 187 of file Stokhos_KokkosViewFadMPVectorUnitTest.hpp.