46 #ifndef XPETRA_VECTORFACTORY_HPP 47 #define XPETRA_VECTORFACTORY_HPP 52 #ifdef HAVE_XPETRA_TPETRA 55 #ifdef HAVE_XPETRA_EPETRA 64 template <
class Scalar,
69 #undef XPETRA_VECTORFACTORY_SHORT 79 static RCP<Vector>
Build(
const Teuchos::RCP<const Map> &map,
bool zeroOut=
true) {
82 #ifdef HAVE_XPETRA_TPETRA 92 #define XPETRA_VECTORFACTORY_SHORT 95 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)) 107 #undef XPETRA_VECTORFACTORY_SHORT 116 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
119 #ifdef HAVE_XPETRA_TPETRA 136 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)) 146 #undef XPETRA_VECTORFACTORY_SHORT 155 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
158 #ifdef HAVE_XPETRA_TPETRA 172 #define XPETRA_VECTORFACTORY_SHORT 175 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)) 189 #undef XPETRA_VECTORFACTORY_SHORT 198 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
201 #ifdef HAVE_XPETRA_TPETRA 216 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)) 230 #undef XPETRA_VECTORFACTORY_SHORT 239 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
242 #ifdef HAVE_XPETRA_TPETRA 257 #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.
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)