42 #ifndef TPETRA_CONFIGDEFS_HPP 43 #define TPETRA_CONFIGDEFS_HPP 47 #endif // ifndef __cplusplus 53 #endif // ifdef PACKAGE 57 #endif // ifdef PACKAGE_NAME 59 #ifdef PACKAGE_BUGREPORT 60 #undef PACKAGE_BUGREPORT 61 #endif // ifdef PACKAGE_BUGREPORT 65 #endif // ifdef PACKAGE_STRING 67 #ifdef PACKAGE_TARNAME 68 #undef PACKAGE_TARNAME 69 #endif // ifdef PACKAGE_TARNAME 71 #ifdef PACKAGE_VERSION 72 #undef PACKAGE_VERSION 73 #endif // ifdef PACKAGE_VERSION 77 #endif // ifdef VERSION 81 #include <Tpetra_config.h> 83 #include <Kokkos_ConfigDefs.hpp> 95 #ifdef HAVE_TPETRA_THROW_EFFICIENCY_WARNINGS 96 #define TPETRA_THROWS_EFFICIENCY_WARNINGS 1 98 #define TPETRA_THROWS_EFFICIENCY_WARNINGS 0 101 #ifdef HAVE_TPETRA_PRINT_EFFICIENCY_WARNINGS 102 #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 1 104 #define TPETRA_PRINTS_EFFICIENCY_WARNINGS 0 107 #ifdef HAVE_TPETRA_THROW_ABUSE_WARNINGS 108 #define TPETRA_THROWS_ABUSE_WARNINGS 1 110 #define TPETRA_THROWS_ABUSE_WARNINGS 0 113 #ifdef HAVE_TPETRA_PRINT_ABUSE_WARNINGS 114 #define TPETRA_PRINTS_ABUSE_WARNINGS 1 116 #define TPETRA_PRINTS_ABUSE_WARNINGS 0 120 #include <functional> 124 #include <Teuchos_ArrayView.hpp> 125 #include <Teuchos_ArrayRCP.hpp> 128 #include <Teuchos_Tuple.hpp> 133 #include <Teuchos_NullIteratorTraits.hpp> 136 #include <Teuchos_Comm.hpp> 137 #include <Teuchos_CommHelpers.hpp> 196 enum EPrivateComputeViewConstructor {
197 COMPUTE_VIEW_CONSTRUCTOR
200 enum EPrivateHostViewConstructor {
201 HOST_VIEW_CONSTRUCTOR
216 using Teuchos::outArg;
217 using Teuchos::tuple;
220 using Teuchos::rcpFromRef;
221 using Teuchos::rcp_const_cast;
222 using Teuchos::av_reinterpret_cast;
223 using Teuchos::arcp_reinterpret_cast;
228 using Teuchos::parameterList;
229 using Teuchos::sublist;
248 template<
class Arg1,
class Arg2>
249 class project1st :
public std::binary_function<Arg1, Arg2, Arg1> {
251 typedef Arg1 first_argument_type;
252 typedef Arg2 second_argument_type;
253 typedef Arg1 result_type;
254 Arg1 operator () (
const Arg1& x,
const Arg2& )
const {
274 template<
class Arg1,
class Arg2>
275 class project2nd :
public std::binary_function<Arg1, Arg2, Arg2> {
277 typedef Arg1 first_argument_type;
278 typedef Arg2 second_argument_type;
279 typedef Arg2 result_type;
280 Arg2 operator () (
const Arg1& ,
const Arg2& y)
const {
287 template <
class Arg1,
class Arg2>
288 class TEUCHOS_DEPRECATED
firstArg : std::binary_function<Arg1,Arg2,Arg1> {
290 typedef Arg1 first_argument_type;
291 typedef Arg2 second_argument_type;
292 typedef Arg1 result_type;
293 inline Arg1 operator()(
const Arg1 &arg1,
const Arg2 &arg2) {
return arg1;}
298 template <
class Arg1,
class Arg2>
299 class TEUCHOS_DEPRECATED
secondArg : std::binary_function<Arg1,Arg2,Arg2> {
301 typedef Arg1 first_argument_type;
302 typedef Arg2 second_argument_type;
303 typedef Arg2 result_type;
304 inline Arg2 operator()(
const Arg1 &arg1,
const Arg2 &arg2) {
return arg2;}
344 #endif // TPETRA_CONFIGDEFS_HPP
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Namespace for Tpetra example classes and methods.
Teuchos_Ordinal Array_size_type
Size type for Teuchos Array objects.
size_t global_size_t
Global size_t object.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
ESweepDirection
Sweep direction for Gauss-Seidel or Successive Over-Relaxation (SOR).
CombineMode
Tpetra::Combine Mode enumerable type.
Distributed sparse matrix-matrix multiply and add.
DEPRECATED; please use project2nd instead.
Binary function that returns its second argument.
DEPRECATED; please use project1st instead.
Binary function that returns its first argument.
std::string typeName(const T &t)