aboutsummaryrefslogtreecommitdiff
path: root/matrix/generic/matrix.h
blob: 655ff3d531da4c4293ac6293ef63cae71afcbf20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NERV_GENERIC_MATRIX_H
#define NERV_GENERIC_MATRIX_H

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;

#endif