10 #ifndef TPETRA_MATRIX_IO_DECL
11 #define TPETRA_MATRIX_IO_DECL
20 #include <Tpetra_CrsMatrix.hpp>
25 bool parseIfmt(Teuchos::ArrayRCP<char> fmt,
int &perline,
int &width);
26 bool parseRfmt(Teuchos::ArrayRCP<char> fmt,
int &perline,
int &width,
int &prec,
char &flag);
27 void readHBInfo(
const std::string &filename,
int &M,
int &N,
int &nz, Teuchos::ArrayRCP<char> &Type,
int &Nrhs);
29 void readHBHeader(std::ifstream &in_file, Teuchos::ArrayRCP<char> &Title,
30 Teuchos::ArrayRCP<char> &Key, Teuchos::ArrayRCP<char> &Type,
31 int &Nrow,
int &Ncol,
int &Nnzero,
int &Nrhs,
32 Teuchos::ArrayRCP<char> &Ptrfmt,
33 Teuchos::ArrayRCP<char> &Indfmt,
34 Teuchos::ArrayRCP<char> &Valfmt,
35 Teuchos::ArrayRCP<char> &Rhsfmt,
36 int &Ptrcrd,
int &Indcrd,
int &Valcrd,
int &Rhscrd,
37 Teuchos::ArrayRCP<char> &Rhstype);
39 void readHBMatDouble(
const std::string &filename,
int &M,
int &N,
int &nonzeros,
40 std::string &Type, Teuchos::ArrayRCP<int> &colptr,
41 Teuchos::ArrayRCP<int> &rowind,
42 Teuchos::ArrayRCP<double> &val);
44 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
45 void readHBMatrix(
const std::string &filename,
46 const Teuchos::RCP<
const Teuchos::Comm<int> > &comm,
49 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.