Main source code: | iohb.c, iohb.h |
Matrix Market functionality: | mmio.c, mmio.h |
Makefile for drivers: | makefile |
Sample drivers: | hb2mtxstrm.c hbmat2hb.c hbmat2mtx.c hbrhs2mtx.c sample.c |
Sample data: | data/* |
sample | Demonstrates basic usage, with many explanatory comments. The functionality is uninteresting (it reads a Harwell-Boeing file and writes out another Harwell-Boeing file), but it demonstrates the I/O capabilities typically required. |
---|---|
hbmat2hb | Another example of usage, demonstrating how to read the input data as characters so that output will exactly reflect the accuracy of the input. |
hbmat2mtx | Another example of usage, with more useful functionality. The program reads a Harwell-Boeing file and writes a commented Matrix Market formatted file reflecting the original data. |
hbrhs2mtx | This program will extract any available auxillary vectors from the Harwell-Boeing files (assuming they are in "full" form), and creates a Matrix Market array formatted file for each vector. (The data is read as character input, so that accuracy in the generated output is identical to that of the input file.) |
hb2mtxstrm | This program is similar to hbmat2mtx, but doesn't store the values of the matrix... instead it streams through the entries, writing out a Matrix Market formatted file along the way. This saves considerably on translation time for large matrices. This program is only intended for translating files of REAL and COMPLEX data, not PATTERN files. PATTERN files can be translated with hbmat2mtx. (The data is read as character input, so that accuracy in the generated output is identical to that of the input file.) |