15 |
|
#endif |
16 |
|
|
17 |
|
/* Data types for file loading */ |
18 |
< |
enum {DTfromHeader=0, DTascii, DTfloat, DTdouble, DTrgbe, DTxyze, DTend}; |
18 |
> |
enum {DTfromHeader=0, DTascii, DTrgbe, DTxyze, DTfloat, DTdouble, DTend}; |
19 |
|
|
20 |
|
extern const char *cm_fmt_id[]; |
21 |
|
extern const int cm_elem_size[]; |
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); |