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










                                              
#ifdef MATRIX_USE_FLOAT

#define MATRIX_ELEM float
#define MATRIX_ELEM_PTR(self) ((self)->data.f)

#elif defined(MATRIX_USE_DOUBLE)

#define MATRIX_ELEM double
#define MATRIX_ELEM_PTR(self) ((self)->data.d)

#endif