46 #ifndef XPETRA_VECTORFACTORY_HPP
47 #define XPETRA_VECTORFACTORY_HPP
52 #ifdef HAVE_XPETRA_TPETRA
53 # include "Xpetra_TpetraVector.hpp"
55 #ifdef HAVE_XPETRA_EPETRA
60 #include "Xpetra_BlockedMap.hpp"
61 #include <Xpetra_BlockedVector.hpp>
67 template <
class Scalar,
73 #undef XPETRA_VECTORFACTORY_SHORT
92 #ifdef HAVE_XPETRA_TPETRA
102 #define XPETRA_VECTORFACTORY_SHORT
105 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
117 #undef XPETRA_VECTORFACTORY_SHORT
135 #ifdef HAVE_XPETRA_TPETRA
152 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
162 #undef XPETRA_VECTORFACTORY_SHORT
179 #ifdef HAVE_XPETRA_TPETRA
193 #define XPETRA_VECTORFACTORY_SHORT
196 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
210 #undef XPETRA_VECTORFACTORY_SHORT
227 #ifdef HAVE_XPETRA_TPETRA
242 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
256 #undef XPETRA_VECTORFACTORY_SHORT
273 #ifdef HAVE_XPETRA_TPETRA
288 #define XPETRA_VECTORFACTORY_SHORT
static RCP< Vector > Build(const Teuchos::RCP< const Map > &map, bool zeroOut=true)
VectorFactory()
Private constructor. This is a static class.
VectorFactory()
Private constructor. This is a static class.
VectorFactory()
Private constructor. This is a static class.
#define XPETRA_FACTORY_ERROR_IF_EPETRA(lib)
static RCP< Vector > Build(const Teuchos::RCP< const Map > &map, bool zeroOut=true)
static RCP< Vector > Build(const Teuchos::RCP< const Map > &map, bool zeroOut=true)
VectorFactory()
Private constructor. This is a static class.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
static RCP< Vector > Build(const Teuchos::RCP< const Map > &map, bool zeroOut=true)
#define XPETRA_FACTORY_END
static RCP< Vector > Build(const Teuchos::RCP< const Map > &map, bool zeroOut=true)
Constructor specifying the number of non-zeros for all rows.
VectorFactory()
Private constructor. This is a static class.
#define XPETRA_MONITOR(funcName)