45 #ifndef AMESOS2_MATRIXTRAITS_HPP 46 #define AMESOS2_MATRIXTRAITS_HPP 48 #include "Amesos2_config.h" 50 #include <Tpetra_CrsMatrix.hpp> 52 #ifdef HAVE_AMESOS2_EPETRA 53 # include <Tpetra_DefaultPlatform.hpp> 54 # include <Epetra_RowMatrix.h> 55 # include <Epetra_CrsMatrix.h> 57 # include <Epetra_VbrMatrix.h> 66 template <
class Matrix>
67 struct MatrixTraits {};
73 template <
typename Scalar,
74 typename LocalOrdinal,
75 typename GlobalOrdinal,
78 Tpetra::RowMatrix<Scalar,
82 typedef Scalar scalar_t;
83 typedef LocalOrdinal local_ordinal_t;
84 typedef GlobalOrdinal global_ordinal_t;
87 typedef row_access major_access;
90 template <
typename Scalar,
91 typename LocalOrdinal,
92 typename GlobalOrdinal,
94 typename LocalMatOps >
96 Tpetra::CrsMatrix<Scalar,
101 typedef Scalar scalar_t;
102 typedef LocalOrdinal local_ordinal_t;
103 typedef GlobalOrdinal global_ordinal_t;
106 typedef row_access major_access;
109 #ifdef HAVE_AMESOS2_EPETRA 112 struct MatrixTraits<Epetra_RowMatrix> {
113 typedef double scalar_t;
114 typedef int local_ordinal_t;
115 typedef int global_ordinal_t;
116 typedef Tpetra::DefaultPlatform::DefaultPlatformType::NodeType node_t;
118 typedef row_access major_access;
122 struct MatrixTraits<Epetra_CrsMatrix> {
123 typedef double scalar_t;
124 typedef int local_ordinal_t;
125 typedef int global_ordinal_t;
126 typedef Tpetra::DefaultPlatform::DefaultPlatformType::NodeType node_t;
128 typedef row_access major_access;
142 struct MatrixTraits<Epetra_VbrMatrix> {
143 typedef double scalar_t;
144 typedef int local_ordinal_t;
145 typedef int global_ordinal_t;
146 typedef Tpetra::DefaultPlatform::DefaultPlatformType::NodeType node_t;
148 typedef row_access major_access;
155 #endif // AMESOS2_MATRIXTRAITS_HPP Utility functions for Amesos2.
Definition: Amesos2_AbstractConcreteMatrixAdapter.hpp:48