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


                         
                            




                                              
                             


                                              
#ifdef MATRIX_USE_FLOAT

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

#elif defined(MATRIX_USE_DOUBLE)

#define MATRIX_ELEM double
#define MATRIX_ELEM_FMT "%lf"
#define MATRIX_ELEM_PTR(self) ((self)->data.d)

#endif