aboutsummaryrefslogblamecommitdiff
path: root/matrix/generic/matrix.h
blob: d02b56e4a3ad813b256d967c8e9311504c9bfa49 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                             
typedef struct Matrix {
    long stride;              /* size of a row */
    long ncol, nrow, nmax;    /* dimension of the matrix */
    union {
        float *f;
        double *d;
    } data;                   /* pointer to actual storage */
    long *data_ref;
} Matrix;