summaryrefslogblamecommitdiff
path: root/matrix/generic/matrix.h
blob: 276ca5c98dbfee4083a6c9d1cb42bf5f4f32c30f (plain) (tree)
1
2
3
4
5
6


                             
                   
                       
                                                   






                                                             

      
#ifndef NERV_GENERIC_MATRIX_H
#define NERV_GENERIC_MATRIX_H

#include <stddef.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