Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra::IO< Scalar, int, int, EpetraNode > Class Template Reference

#include <Xpetra_IO.hpp>

Public Types

typedef int LocalOrdinal
 
typedef int GlobalOrdinal
 
typedef EpetraNode Node
 

Static Public Member Functions

static RCP
< Xpetra::MultiVector< Scalar,
LocalOrdinal, GlobalOrdinal,
Node > > 
ReadMultiVector (const std::string &fileName, const RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map)
 
static RCP< const Xpetra::Map
< LocalOrdinal, GlobalOrdinal,
Node > > 
ReadMap (const std::string &fileName, Xpetra::UnderlyingLib lib, const RCP< const Teuchos::Comm< int > > &comm)
 
static RCP< const
Xpetra::BlockedCrsMatrix
< Scalar, LocalOrdinal,
GlobalOrdinal, Node > > 
ReadBlockedCrsMatrix (const std::string &fileName, Xpetra::UnderlyingLib lib, const RCP< const Teuchos::Comm< int > > &comm)
 Read matrix to file in Matrix Market format. More...
 
template<class T >
static std::string toString (const T &what)
 Little helper function to convert non-string types to strings. More...
 
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, const bool &writeAllMaps=false)
 Save matrix to file in Matrix Market format. More...
 
static void WriteLocal (const std::string &fileName, const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op)
 Save local parts of matrix to files in Matrix Market format. More...
 
static void WriteBlockedCrsMatrix (const std::string &fileName, const Xpetra::BlockedCrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &Op, const bool &writeAllMaps=false)
 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...
 

Detailed Description

template<class Scalar>
class Xpetra::IO< Scalar, int, int, EpetraNode >

Definition at line 781 of file Xpetra_IO.hpp.

Member Typedef Documentation

template<class Scalar >
typedef int Xpetra::IO< Scalar, int, int, EpetraNode >::LocalOrdinal

Definition at line 783 of file Xpetra_IO.hpp.

template<class Scalar >
typedef int Xpetra::IO< Scalar, int, int, EpetraNode >::GlobalOrdinal

Definition at line 784 of file Xpetra_IO.hpp.

template<class Scalar >
typedef EpetraNode Xpetra::IO< Scalar, int, int, EpetraNode >::Node

Definition at line 785 of file Xpetra_IO.hpp.

Member Function Documentation

template<class Scalar >
static const Epetra_Map& Xpetra::IO< Scalar, int, int, EpetraNode >::Map2EpetraMap ( const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &  map)
inlinestatic

Helper utility to pull out the underlying Epetra objects from an Xpetra object.

Definition at line 790 of file Xpetra_IO.hpp.

template<class Scalar >
static const RCP<const Tpetra::Map<LocalOrdinal,GlobalOrdinal,Node> > Xpetra::IO< Scalar, int, int, EpetraNode >::Map2TpetraMap ( const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &  map)
inlinestatic

Helper utility to pull out the underlying Tpetra objects from an Xpetra object.

Definition at line 802 of file Xpetra_IO.hpp.

template<class Scalar >
static void Xpetra::IO< Scalar, int, int, EpetraNode >::Write ( const std::string &  fileName,
const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > &  M 
)
inlinestatic

Read/Write methods.

Save map to file.

Definition at line 814 of file Xpetra_IO.hpp.

template<class Scalar >
static void Xpetra::IO< Scalar, int, int, EpetraNode >::Write ( const std::string &  fileName,
const Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  vec 
)
inlinestatic

Save vector to file in Matrix Market format.

Definition at line 844 of file Xpetra_IO.hpp.

template<class Scalar >
static void Xpetra::IO< Scalar, int, int, EpetraNode >::Write ( const std::string &  fileName,
const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  Op,
const bool &  writeAllMaps = false 
)
inlinestatic

Save matrix to file in Matrix Market format.

Definition at line 881 of file Xpetra_IO.hpp.

template<class Scalar >
static void Xpetra::IO< Scalar, int, int, EpetraNode >::WriteLocal ( const std::string &  fileName,
const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  Op 
)
inlinestatic

Save local parts of matrix to files in Matrix Market format.

Definition at line 925 of file Xpetra_IO.hpp.

template<class Scalar >
static void Xpetra::IO< Scalar, int, int, EpetraNode >::WriteBlockedCrsMatrix ( const std::string &  fileName,
const Xpetra::BlockedCrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > &  Op,
const bool &  writeAllMaps = false 
)
inlinestatic

Save matrix to file in Matrix Market format.

Definition at line 952 of file Xpetra_IO.hpp.

template<class Scalar >
static Teuchos::RCP<Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> > Xpetra::IO< Scalar, int, int, EpetraNode >::Read ( const std::string &  fileName,
Xpetra::UnderlyingLib  lib,
const RCP< const Teuchos::Comm< int > > &  comm,
bool  binary = false 
)
inlinestatic

Read matrix from file in Matrix Market or binary format.

Definition at line 990 of file Xpetra_IO.hpp.

template<class Scalar >
static Teuchos::RCP<Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> > Xpetra::IO< Scalar, int, int, EpetraNode >::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 
)
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 1117 of file Xpetra_IO.hpp.

template<class Scalar >
static RCP<Xpetra::MultiVector<Scalar,LocalOrdinal,GlobalOrdinal,Node> > Xpetra::IO< Scalar, int, int, EpetraNode >::ReadMultiVector ( const std::string &  fileName,
const RCP< const Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &  map 
)
inlinestatic

Definition at line 1240 of file Xpetra_IO.hpp.

template<class Scalar >
static RCP<const Xpetra::Map<LocalOrdinal,GlobalOrdinal,Node> > Xpetra::IO< Scalar, int, int, EpetraNode >::ReadMap ( const std::string &  fileName,
Xpetra::UnderlyingLib  lib,
const RCP< const Teuchos::Comm< int > > &  comm 
)
inlinestatic

Definition at line 1282 of file Xpetra_IO.hpp.

template<class Scalar >
static RCP<const Xpetra::BlockedCrsMatrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> > Xpetra::IO< Scalar, int, int, EpetraNode >::ReadBlockedCrsMatrix ( const std::string &  fileName,
Xpetra::UnderlyingLib  lib,
const RCP< const Teuchos::Comm< int > > &  comm 
)
inlinestatic

Read matrix to file in Matrix Market format.

Definition at line 1324 of file Xpetra_IO.hpp.

template<class Scalar >
template<class T >
static std::string Xpetra::IO< Scalar, int, int, EpetraNode >::toString ( const T &  what)
inlinestatic

Little helper function to convert non-string types to strings.

Definition at line 1406 of file Xpetra_IO.hpp.


The documentation for this class was generated from the following file: