Public Member Functions | List of all members
HBIO Class Reference

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)

Detailed Description

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.

Constructor & Destructor Documentation

HBIO::HBIO ( )
inline

Constructor.

Member Function Documentation

const std::string HBIO::get_key ( void  ) const
inline
void HBIO::get_matrix ( CColMatrix mmat) const
void HBIO::get_rhs_vector ( Vector rrhs) const
int HBIO::get_rhsacc ( void  ) const
inline
void HBIO::get_solution_vector ( Vector ssol) const
const std::string HBIO::get_title ( void  ) const
inline
int HBIO::get_valacc ( void  ) const
inline
void HBIO::read ( const std::string  filename)
void HBIO::set_key ( const std::string  kkey)
inline
void HBIO::set_matrix ( const CColMatrix mmat)
void HBIO::set_rhs_vector ( const Vector rrhs)
void HBIO::set_rhsacc ( int  rrhsacc)
inline
void HBIO::set_solution_vector ( const Vector ssol)
void HBIO::set_title ( const std::string  ttitle)
inline
void HBIO::set_valacc ( int  vvalacc)
inline
void HBIO::write ( const std::string  filename) const

The documentation for this class was generated from the following file: