44 #ifndef TPETRA_MATRIX_IO_DECL
45 #define TPETRA_MATRIX_IO_DECL
48 #include "Tpetra_Map.hpp"
49 #include "Tpetra_CrsMatrix.hpp"
54 bool parseIfmt(ArrayRCP<char> fmt,
int &perline,
int &width);
55 bool parseRfmt(ArrayRCP<char> fmt,
int &perline,
int &width,
int &prec,
char &flag);
56 void readHBInfo(
const std::string &filename,
int &M,
int &N,
int &nz, ArrayRCP<char> &Type,
int &Nrhs);
58 void readHBHeader(std::ifstream &in_file, ArrayRCP<char> &Title, ArrayRCP<char> &Key, ArrayRCP<char> &Type,
59 int &Nrow,
int &Ncol,
int &Nnzero,
int &Nrhs,
60 ArrayRCP<char> &Ptrfmt, ArrayRCP<char> &Indfmt, ArrayRCP<char> &Valfmt, ArrayRCP<char> &Rhsfmt,
61 int &Ptrcrd,
int &Indcrd,
int &Valcrd,
int &Rhscrd, ArrayRCP<char> &Rhstype);
63 void readHBMatDouble(
const std::string &filename,
int &M,
int &N,
int &nonzeros, std::string &Type, ArrayRCP<int> &colptr, ArrayRCP<int> &rowind, ArrayRCP<double> &val);
65 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node,
class LocalMatOps>
67 generateMatrix(
const RCP<ParameterList> &plist,
68 const RCP<
const Comm<int> > &comm,
69 const RCP<Node> &node,
72 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node,
class LocalMatOps>
74 readHBMatrix(
const std::string &filename,
75 const RCP<
const Comm<int> > &comm,
76 const RCP<Node> &node,
79 const RCP<ParameterList> ¶ms = null);
Sparse matrix that presents a compressed sparse row interface.
Describes a parallel distribution of objects over processes.