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
66 template <
class Scalar,
71 #undef XPETRA_VECTORFACTORY_SHORT
89 #ifdef HAVE_XPETRA_TPETRA
99 #define XPETRA_VECTORFACTORY_SHORT
102 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
114 #undef XPETRA_VECTORFACTORY_SHORT
132 #ifdef HAVE_XPETRA_TPETRA
149 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
159 #undef XPETRA_VECTORFACTORY_SHORT
176 #ifdef HAVE_XPETRA_TPETRA
190 #define XPETRA_VECTORFACTORY_SHORT
193 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
207 #undef XPETRA_VECTORFACTORY_SHORT
224 #ifdef HAVE_XPETRA_TPETRA
239 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
253 #undef XPETRA_VECTORFACTORY_SHORT
270 #ifdef HAVE_XPETRA_TPETRA
285 #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)