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);
82 template<
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
84 readHBMatrix (
const std::string &filename,
85 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
88 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.