46 #ifndef XPETRA_MULTIVECTORFACTORY_DECL_HPP
47 #define XPETRA_MULTIVECTORFACTORY_DECL_HPP
52 #ifdef HAVE_XPETRA_TPETRA
56 #ifdef HAVE_XPETRA_EPETRA
68 template<
class Scalar,
82 static Teuchos::RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>>
86 static Teuchos::RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>>
88 const Teuchos::ArrayView<
const Teuchos::ArrayView<const Scalar>>& ArrayOfPtrs,
95 #if defined(HAVE_XPETRA_EPETRA)
97 #if !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)
119 static RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>>
123 static Teuchos::RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>>
125 const Teuchos::ArrayView<
const Teuchos::ArrayView<const Scalar>>& ArrayOfPtrs,
147 static RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>>
151 static Teuchos::RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>>
153 const Teuchos::ArrayView<
const Teuchos::ArrayView<const Scalar>>& ArrayOfPtrs,
159 #if !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)
177 static RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> >
180 bool zeroOut =
true);
183 static Teuchos::RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> >
185 const Teuchos::ArrayView<
const Teuchos::ArrayView< const Scalar > > &ArrayOfPtrs,
207 static RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> >
210 bool zeroOut =
true);
213 static Teuchos::RCP<MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> >
215 const Teuchos::ArrayView<
const Teuchos::ArrayView< const Scalar > > &ArrayOfPtrs,
221 #endif // END !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES)
223 #endif // END !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES)
225 #endif // END HAVE_XPETRA_EPETRA
230 #define XPETRA_MULTIVECTORFACTORY_SHORT
static Teuchos::RCP< MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &map, size_t NumVectors, bool zeroOut=true)
Constructor specifying the number of non-zeros for all rows.
MultiVectorFactory()
Private constructor. This is a static class.