|
|
|
|
| Category:utilities |
Component type:type |
|
 |
| Description
|
This class simplifies the job of creating matrices from files stored
in the Harwell-Boeing format. All matrix types have a constructor that
takes a harwell_boeing_stream object. One can also access the
elements from a matrix stream using operator>>(). The stream
handles both real and complex numbers.
Usage:
harwell_boeing_stream mms( fielname );
Matrix A(mms);
|
 |
| Example
|
|
|
 |
| Definition
|
|
|
 |
| Template Parameters
|
| Parameter | Description | Default |
| T | the matrix element type (double or complex) | |
|
 |
| Model of
|
|
|
 |
| Members
|
|
Member
|
Where defined
|
Description
|
|
harwell_boeing_stream (char* filename)
|
|
Construct from file name
|
|
~harwell_boeing_stream ()
|
|
Destructor
|
|
int
nrows () const
|
|
Number of rows in matrix
|
|
int
ncols () const
|
|
Number of columns in matrix
|
|
int
nnz () const
|
|
Number of non-zeroes in matrix
|
|
bool
eof ()
|
|
At the end of the file?
|
|
bool
is_complex ()
|
|
|
|
int
cnt
|
|
|
|
int
col
|
|
|
|
int*
colptr
|
|
|
|
bool
isComplex
|
|
|
|
int
M
|
|
|
|
int
N
|
|
|
|
int
nonzeros
|
|
|
|
int*
rowind
|
|
|
|
double*
val
|
|
|
|
 |
| New members
|
|
|
 |
| Notes
|
|
|
 |
| See also
|
|
|