| 15 |
|
/* General plane-ordered component matrix */ |
| 16 |
|
typedef struct { |
| 17 |
|
int nrows, ncols, ncomp; |
| 18 |
+ |
char *info; |
| 19 |
|
double mtx[1]; /* extends struct */ |
| 20 |
|
} RMATRIX; |
| 21 |
|
|
| 28 |
|
|
| 29 |
|
/* Load matrix from supported file type */ |
| 30 |
|
extern RMATRIX *rmx_load(const char *fname); |
| 31 |
+ |
|
| 32 |
+ |
/* Append header information associated with matrix data */ |
| 33 |
+ |
extern int rmx_addinfo(RMATRIX *rm, const char *info); |
| 34 |
|
|
| 35 |
|
/* Write matrix to file type indicated by dt */ |
| 36 |
|
extern long rmx_write(const RMATRIX *rm, int dtype, FILE *fp); |