|
ug4
|
Representation of a matrix exchange file format. More...
#include <matrix_io.h>
Public Types | |
| enum | Type { UNDEFINED = 0 , MATRIX_MARKET = 1 , HARWELL_BOING = 2 } |
| Supported matrix exchange file formats. More... | |
Public Member Functions | |
| bool | is_hb () const |
| Tells whether this is a Harwell-Boing type. | |
| bool | is_mm () const |
| Tells whether this is a MatrixMarket type. | |
| MatrixFileType () | |
| Default Constructor. | |
| MatrixFileType (int type) | |
| Constructor specifying file type. | |
Private Attributes | |
| int | m_type |
| Holds the file type value (which is one of MatrixFileType::Type) | |
Representation of a matrix exchange file format.
Supported matrix exchange file formats are:
|
inline |
Default Constructor.
Initializes file format type to 0 (thus undefined).
|
inline |
Constructor specifying file type.
Initializes file format type to the given type.
| [in] | type | a valid value of MatrixFileType::Type |
|
inline |
Tells whether this is a Harwell-Boing type.
true if it is a Harwell-Boing file type, false otherwise. References HARWELL_BOING, and m_type.
|
inline |
Tells whether this is a MatrixMarket type.
true if it is a MatrixMarket file type, false otherwise. References m_type, and MATRIX_MARKET.
|
private |
Holds the file type value (which is one of MatrixFileType::Type)
Referenced by is_hb(), is_mm(), and MatrixFileType().