aboutsummaryrefslogblamecommitdiff
path: root/matrix/generic/matrix.h
blob: 264859b5828272032a4b19285d8c25c9c6e52293 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                             
                       
                                                   






                                                             

      
#ifndef NERV_GENERIC_MATRIX_H
#define NERV_GENERIC_MATRIX_H

typedef struct Matrix {
    size_t 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