Xpetra utility class containing IO routines to read/write vectors, matrices etc... More...
#include <Xpetra_IO.hpp>
Static Public Member Functions | |
static RCP< MultiVector > | ReadMultiVector (const std::string &fileName, const RCP< const Map > &map) |
static RCP< const Map > | ReadMap (const std::string &fileName, Xpetra::UnderlyingLib lib, const RCP< const Teuchos::Comm< int > > &comm) |
static const Epetra_Map & | Map2EpetraMap (const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &map) |
Helper utility to pull out the underlying Epetra objects from an Xpetra object. More... | |
static const RCP< const Tpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > | Map2TpetraMap (const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &map) |
Helper utility to pull out the underlying Tpetra objects from an Xpetra object. More... | |
static void | Write (const std::string &fileName, const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &M) |
Read/Write methods. More... | |
static void | Write (const std::string &fileName, const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &vec) |
Save vector to file in Matrix Market format. More... | |
static void | Write (const std::string &fileName, const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op) |
Save matrix to file in Matrix Market format. More... | |
static Teuchos::RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | Read (const std::string &fileName, Xpetra::UnderlyingLib lib, const RCP< const Teuchos::Comm< int > > &comm, bool binary=false) |
Read matrix from file in Matrix Market or binary format. More... | |
static Teuchos::RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > | Read (const std::string &filename, const RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > rowMap, RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > colMap=Teuchos::null, const RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > domainMap=Teuchos::null, const RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > rangeMap=Teuchos::null, const bool callFillComplete=true, const bool binary=false, const bool tolerant=false, const bool debug=false) |
Read matrix from file in Matrix Market or binary format. More... | |
Xpetra utility class containing IO routines to read/write vectors, matrices etc...
Xpetra utility class containing IO routines to read/write vectors, matrices.
Specialization for LO=GO=int
TODO: do we need specialization for SC=double and std::complex<>??? TODO: need specialization for <int, long long>
Definition at line 133 of file Xpetra_IO.hpp.
|
inlinestatic |
Helper utility to pull out the underlying Epetra objects from an Xpetra object.
Definition at line 156 of file Xpetra_IO.hpp.
|
inlinestatic |
Helper utility to pull out the underlying Tpetra objects from an Xpetra object.
Definition at line 185 of file Xpetra_IO.hpp.
|
inlinestatic |
|
inlinestatic |
Save vector to file in Matrix Market format.
Definition at line 224 of file Xpetra_IO.hpp.
|
inlinestatic |
Save matrix to file in Matrix Market format.
Definition at line 255 of file Xpetra_IO.hpp.
|
inlinestatic |
Read matrix from file in Matrix Market or binary format.
Definition at line 290 of file Xpetra_IO.hpp.
|
inlinestatic |
Read matrix from file in Matrix Market or binary format.
If only rowMap is specified, then it is used for the domainMap and rangeMap, as well.
Definition at line 392 of file Xpetra_IO.hpp.
|
inlinestatic |
Definition at line 507 of file Xpetra_IO.hpp.
|
inlinestatic |
Definition at line 534 of file Xpetra_IO.hpp.