43 |
|
/* Load header to obtain/check data type and matrix dimensions */ |
44 |
|
extern char *cm_getheader(int *dt, int *nr, int *nc, FILE *fp); |
45 |
|
|
46 |
< |
/* Allocate and load a matrix from the given file (or stdin if NULL) */ |
47 |
< |
extern CMATRIX *cm_load(const char *fname, int nrows, int ncols, int dtype); |
46 |
> |
/* Allocate and load a matrix from the given input (or stdin if NULL) */ |
47 |
> |
extern CMATRIX *cm_load(const char *inspec, int nrows, int ncols, int dtype); |
48 |
|
|
49 |
|
/* Extract a column vector from a matrix */ |
50 |
|
extern CMATRIX *cm_column(const CMATRIX *cm, int c); |