Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp File Reference
#include "Teuchos_UnitTestHelpers.hpp"
#include "Stokhos_UnitTestHelpers.hpp"
#include "Teuchos_XMLParameterListCoreHelpers.hpp"
#include "Stokhos_Tpetra_UQ_PCE.hpp"
#include "Stokhos_Tpetra_Utilities.hpp"
#include "Stokhos_Tpetra_Utilities_UQ_PCE.hpp"
#include "Tpetra_Core.hpp"
#include "Tpetra_Map.hpp"
#include "Tpetra_MultiVector.hpp"
#include "Tpetra_Vector.hpp"
#include "Tpetra_CrsGraph.hpp"
#include "Tpetra_CrsMatrix.hpp"
#include "Stokhos_Tpetra_CG.hpp"
#include "Stokhos_LegendreBasis.hpp"
#include "Stokhos_CompletePolynomialBasis.hpp"
#include "Stokhos_Sparse3Tensor.hpp"
Include dependency graph for Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_SCALAR_MEAN_BASED_PREC   1
 
#define CRSMATRIX_UQ_PCE_TESTS_SLGN(S, LO, GO, N)
 
#define CRSMATRIX_UQ_PCE_TESTS_N(N)
 

Functions

template<typename scalar , typename ordinal >
scalar generate_vector_coefficient (const ordinal nFEM, const ordinal nStoch, const ordinal iColFEM, const ordinal iStoch)
 
template<typename scalar , typename ordinal >
scalar generate_multi_vector_coefficient (const ordinal nFEM, const ordinal nVec, const ordinal nStoch, const ordinal iColFEM, const ordinal iVec, const ordinal iStoch)
 
template<typename scalar , typename ordinal >
scalar generate_matrix_coefficient (const ordinal nFEM, const ordinal nStoch, const ordinal iRowFEM, const ordinal iColFEM, const ordinal iStoch)
 
template<typename kokkos_cijk_type , typename ordinal_type >
kokkos_cijk_type build_cijk (ordinal_type stoch_dim, ordinal_type poly_ord)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, VectorAdd, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, VectorDot, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, MultiVectorAdd, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, MultiVectorDot, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, MultiVectorDotSub, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, MatrixVectorMultiply, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, MatrixMultiVectorMultiply, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, Flatten, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, SimpleCG, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, SimplePCG_Muelu, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, BelosGMRES, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, BelosGMRES_RILUK, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, BelosCG_Muelu, Storage, LocalOrdinal, GlobalOrdinal, Node)
 
 TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL (Tpetra_CrsMatrix_PCE, Amesos2, Storage, LocalOrdinal, GlobalOrdinal, Node)
 

Variables

const int stoch_dim = 2
 
const int poly_ord = 3
 

Macro Definition Documentation

#define USE_SCALAR_MEAN_BASED_PREC   1

Definition at line 95 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

#define CRSMATRIX_UQ_PCE_TESTS_SLGN (   S,
  LO,
  GO,
 
)
Value:
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, VectorAdd, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, VectorDot, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, MultiVectorAdd, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, MultiVectorDot, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, MultiVectorDotSub, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, MatrixVectorMultiply, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, MatrixMultiVectorMultiply, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, Flatten, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, SimpleCG, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, SimplePCG_Muelu, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, BelosGMRES, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, BelosGMRES_RILUK, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, BelosCG_Muelu, S, LO, GO, N ) \
TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(Tpetra_CrsMatrix_PCE, Amesos2, S, LO, GO, N )
#define TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(TEST_GROUP, TEST_NAME, TYPE1, TYPE2, TYPE3, TYPE4)
BelosGMRES

Definition at line 2260 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

#define CRSMATRIX_UQ_PCE_TESTS_N (   N)
Value:
using default_local_ordinal_type = Tpetra::Map<>::local_ordinal_type; \
using default_global_ordinal_type = Tpetra::Map<>::global_ordinal_type; \
CRSMATRIX_UQ_PCE_TESTS_SLGN(DS, default_local_ordinal_type, default_global_ordinal_type, N)
Kokkos::HostSpace::execution_space type
#define CRSMATRIX_UQ_PCE_TESTS_SLGN(S, LO, GO, N)

Definition at line 2276 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.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 99 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

template<typename scalar , typename ordinal >
scalar generate_multi_vector_coefficient ( const ordinal  nFEM,
const ordinal  nVec,
const ordinal  nStoch,
const ordinal  iColFEM,
const ordinal  iVec,
const ordinal  iStoch 
)
inline

Definition at line 112 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

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

Definition at line 128 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

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

Definition at line 144 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
VectorAdd  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 185 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
VectorDot  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 272 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
MultiVectorAdd  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 361 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
MultiVectorDot  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 457 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
MultiVectorDotSub  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 557 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
MatrixVectorMultiply  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 665 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
MatrixMultiVectorMultiply  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 811 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
Flatten  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 965 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
SimpleCG  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 1121 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
SimplePCG_Muelu  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 1485 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
BelosGMRES  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 1654 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
BelosGMRES_RILUK  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 1836 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
BelosCG_Muelu  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 2061 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL ( Tpetra_CrsMatrix_PCE  ,
Amesos2  ,
Storage  ,
LocalOrdinal  ,
GlobalOrdinal  ,
Node   
)

Definition at line 2254 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

Variable Documentation

const int stoch_dim = 2

Definition at line 179 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.

const int poly_ord = 3

Definition at line 180 of file Stokhos_TpetraCrsMatrixUQPCEUnitTest.hpp.