42 #ifndef TPETRA_CONFIGDEFS_HPP 43 #define TPETRA_CONFIGDEFS_HPP 45 #include "TpetraCore_config.h" 46 #include "Kokkos_DefaultNode.hpp" 58 #ifdef HAVE_TPETRA_THROW_EFFICIENCY_WARNINGS 59 #define TPETRA_THROWS_EFFICIENCY_WARNINGS 1 61 #define TPETRA_THROWS_EFFICIENCY_WARNINGS 0 64 #ifdef HAVE_TPETRA_PRINT_EFFICIENCY_WARNINGS 65 #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 1 67 #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 0 70 #ifdef HAVE_TPETRA_THROW_ABUSE_WARNINGS 71 #define TPETRA_THROWS_ABUSE_WARNINGS 1 73 #define TPETRA_THROWS_ABUSE_WARNINGS 0 76 #ifdef HAVE_TPETRA_PRINT_ABUSE_WARNINGS 77 #define TPETRA_PRINTS_ABUSE_WARNINGS 1 79 #define TPETRA_PRINTS_ABUSE_WARNINGS 0 87 #include "Teuchos_Array.hpp" 88 #include "Teuchos_RCP.hpp" 89 #include "Teuchos_Tuple.hpp" 91 #include "Teuchos_OrdinalTraits.hpp" 92 #include "Teuchos_ScalarTraits.hpp" 93 #include "Teuchos_TypeNameTraits.hpp" 94 #include "Teuchos_NullIteratorTraits.hpp" 95 #include "Teuchos_SerializationTraits.hpp" 97 #include "Teuchos_CommHelpers.hpp" 99 #include "Teuchos_ParameterList.hpp" 149 namespace DefaultTypes {
157 #if defined(HAVE_TPETRA_INST_INT_INT) 158 typedef int global_ordinal_type;
159 #elif defined(HAVE_TPETRA_INST_INT_LONG_LONG) 160 typedef long long global_ordinal_type;
161 #elif defined(HAVE_TPETRA_INST_INT_LONG) 162 typedef long global_ordinal_type;
163 #elif defined(HAVE_TPETRA_INST_INT_UNSIGNED_LONG) 164 typedef unsigned long global_ordinal_type;
165 #elif defined(HAVE_TPETRA_INST_INT_UNSIGNED) 166 typedef unsigned global_ordinal_type;
168 # error "Tpetra: No global ordinal types in the set {int, long long, long, unsigned long, unsigned} have been enabled." 170 typedef KokkosClassic::DefaultNode::DefaultNodeType
node_type;
176 enum EPrivateComputeViewConstructor {
177 COMPUTE_VIEW_CONSTRUCTOR
180 enum EPrivateHostViewConstructor {
181 HOST_VIEW_CONSTRUCTOR
200 template<
class Arg1,
class Arg2>
201 class project1st :
public std::binary_function<Arg1, Arg2, Arg1> {
203 typedef Arg1 first_argument_type;
204 typedef Arg2 second_argument_type;
205 typedef Arg1 result_type;
206 Arg1 operator () (
const Arg1& x,
const Arg2& )
const {
226 template<
class Arg1,
class Arg2>
227 class project2nd :
public std::binary_function<Arg1, Arg2, Arg2> {
229 typedef Arg1 first_argument_type;
230 typedef Arg2 second_argument_type;
231 typedef Arg2 result_type;
232 Arg2 operator () (
const Arg1& ,
const Arg2& y)
const {
266 namespace MatrixMatrix {
279 #if defined(HAVE_TPETRACORE_KOKKOSCORE) && defined(HAVE_TPETRACORE_TEUCHOSKOKKOSCOMPAT) && defined(TPETRA_ENABLE_KOKKOS_DISTOBJECT) 280 #define TPETRA_USE_KOKKOS_DISTOBJECT 1 282 #define TPETRA_USE_KOKKOS_DISTOBJECT 0 285 #include <Kokkos_Complex.hpp> 291 template<
typename Ordinal>
292 class SerializationTraits<Ordinal, ::Kokkos::complex<float> >
293 :
public DirectSerializationTraits<Ordinal, ::Kokkos::complex<float> >
296 template<
typename Ordinal>
297 class SerializationTraits<Ordinal, ::Kokkos::complex<double> >
298 :
public DirectSerializationTraits<Ordinal, ::Kokkos::complex<double> >
302 #endif // TPETRA_CONFIGDEFS_HPP
Namespace Tpetra contains the class and methods constituting the Tpetra library.
KokkosClassic::DefaultNode::DefaultNodeType node_type
Default value of Node template parameter.
LookupStatus
Return status of Map remote index lookup (getRemoteIndexList()).
Namespace for Tpetra example classes and methods.
int local_ordinal_type
Default value of LocalOrdinal template parameter.
Teuchos_Ordinal Array_size_type
Size type for Teuchos Array objects.
Implementation details of Tpetra.
size_t global_size_t
Global size_t object.
Declaration of Tpetra::CombineMode enum, and a function for setting a Tpetra::CombineMode parameter i...
ESweepDirection
Sweep direction for Gauss-Seidel or Successive Over-Relaxation (SOR).
double scalar_type
Default value of Scalar template parameter.
Binary function that returns its second argument.
LocalGlobal
Enum for local versus global allocation of Map entries.
Binary function that returns its first argument.