Xpetra
Version of the Day
|
Factory for any type of Xpetra::MultiVector and its derived classes. More...
#include <Xpetra_MultiVectorFactory_decl.hpp>
Static Public Member Functions | |
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. More... | |
static Teuchos::RCP < MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | Build (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &map, const Teuchos::ArrayView< const Teuchos::ArrayView< const Scalar >> &ArrayOfPtrs, size_t NumVectors) |
Set multi-vector values from array of pointers using Teuchos memory management classes. (copy). More... | |
static Teuchos::RCP < MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | Build (const Teuchos::RCP< const MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node >> &source, Teuchos::DataAccess copyOrView) |
Private Member Functions | |
MultiVectorFactory () | |
Private constructor. This is a static class. More... | |
Factory for any type of Xpetra::MultiVector and its derived classes.
Creates instances of Xpetra::MulitVector
and Xpetra::BlockedMultiVector
, depending on the type of map, i.e. Xpetra::Map
vs. Xpetra::BlockedMap
.
Scalar | |
LocalOrdinal | |
GlobalOrdinal | |
Node |
Xpetra::BlockedMultiVector
, it always returns Xpetra::MultiVector
. Don't forget to cast to Xpetra::BlockedMultiVector
, if you need the blocked layout directly. Definition at line 50 of file Xpetra_MultiVectorFactory_decl.hpp.
|
inlineprivate |
Private constructor. This is a static class.
Definition at line 53 of file Xpetra_MultiVectorFactory_decl.hpp.
|
static |
Constructor specifying the number of non-zeros for all rows.
Definition at line 24 of file Xpetra_MultiVectorFactory_def.hpp.
|
static |
Set multi-vector values from array of pointers using Teuchos memory management classes. (copy).
Definition at line 49 of file Xpetra_MultiVectorFactory_def.hpp.
|
static |
Definition at line 67 of file Xpetra_MultiVectorFactory_def.hpp.