44 #ifndef TPETRA_MATRIX_IO_DECL
45 #define TPETRA_MATRIX_IO_DECL
54 #include <Tpetra_CrsMatrix.hpp>
59 bool parseIfmt (Teuchos::ArrayRCP<char> fmt,
int &perline,
int &width);
60 bool parseRfmt (Teuchos::ArrayRCP<char> fmt,
int &perline,
int &width,
int &prec,
char &flag);
61 void readHBInfo (
const std::string &filename,
int &M,
int &N,
int &nz, Teuchos::ArrayRCP<char> &Type,
int &Nrhs);
64 readHBHeader (std::ifstream &in_file, Teuchos::ArrayRCP<char> &Title,
65 Teuchos::ArrayRCP<char> &Key, Teuchos::ArrayRCP<char> &Type,
66 int &Nrow,
int &Ncol,
int &Nnzero,
int &Nrhs,
67 Teuchos::ArrayRCP<char> &Ptrfmt,
68 Teuchos::ArrayRCP<char> &Indfmt,
69 Teuchos::ArrayRCP<char> &Valfmt,
70 Teuchos::ArrayRCP<char> &Rhsfmt,
71 int &Ptrcrd,
int &Indcrd,
int &Valcrd,
int &Rhscrd,
72 Teuchos::ArrayRCP<char> &Rhstype);
75 readHBMatDouble (
const std::string &filename,
int &M,
int &N,
int &nonzeros,
76 std::string &Type, Teuchos::ArrayRCP<int> &colptr,
77 Teuchos::ArrayRCP<int> &rowind,
78 Teuchos::ArrayRCP<double> &val);
80 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
81 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
84 generateMatrix (
const Teuchos::RCP<Teuchos::ParameterList>& plist,
85 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
86 const Teuchos::RCP<Node> &node,
89 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
92 generateMatrix (
const Teuchos::RCP<Teuchos::ParameterList>& plist,
93 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
95 #endif // TPETRA_ENABLE_DEPRECATED_CODE
97 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
98 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
101 readHBMatrix (
const std::string &filename,
102 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
103 const Teuchos::RCP<Node> &node,
106 const Teuchos::RCP<Teuchos::ParameterList> ¶ms = Teuchos::null);
107 #endif // TPETRA_ENABLE_DEPRECATED_CODE
109 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
111 readHBMatrix (
const std::string &filename,
112 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
115 const Teuchos::RCP<Teuchos::ParameterList> ¶ms = Teuchos::null);
Sparse matrix that presents a row-oriented interface that lets users read or modify entries...
A parallel distribution of indices over processes.