Harwell Boeing sparse matrix file format I/O class. More...
#include <hbio.hpp>
Public Member Functions | |
HBIO () | |
Constructor. | |
void | write (const std::string filename) const |
void | read (const std::string filename) |
const std::string | get_title (void) const |
void | set_title (const std::string ttitle) |
const std::string | get_key (void) const |
void | set_key (const std::string kkey) |
int | get_valacc (void) const |
void | set_valacc (int vvalacc) |
int | get_rhsacc (void) const |
void | set_rhsacc (int rrhsacc) |
void | get_matrix (CColMatrix &mmat) const |
void | set_matrix (const CColMatrix &mmat) |
void | get_rhs_vector (Vector &rrhs) const |
void | set_rhs_vector (const Vector &rrhs) |
void | get_solution_vector (Vector &ssol) const |
void | set_solution_vector (const Vector &ssol) |
Harwell Boeing sparse matrix file format I/O class.
Class for reading and writing linear algebra problems (matrices and vectors) in the standard Harwell Boeing (HB) sparse matrix file format. The HBIO class supports a limited subset of HB file format features. The most basic features including title, key, selectable number accuracy, problem matrix, right hand side vector and the solution vector are supported. The HB format stores matrices in compressed column mode with fortran indexing (indices starting from 1), but the matrices are converted to 0 based indexing when read to memory.
|
inline |
Constructor.
|
inline |
void HBIO::get_matrix | ( | CColMatrix & | mmat | ) | const |
void HBIO::get_rhs_vector | ( | Vector & | rrhs | ) | const |
|
inline |
void HBIO::get_solution_vector | ( | Vector & | ssol | ) | const |
|
inline |
|
inline |
void HBIO::read | ( | const std::string | filename | ) |
|
inline |
void HBIO::set_matrix | ( | const CColMatrix & | mmat | ) |
void HBIO::set_rhs_vector | ( | const Vector & | rrhs | ) |
|
inline |
void HBIO::set_solution_vector | ( | const Vector & | ssol | ) |
|
inline |
|
inline |
void HBIO::write | ( | const std::string | filename | ) | const |