aboutsummaryrefslogblamecommitdiff
path: root/matrix/generic/elem_type.h
blob: 2a6ffa80b514fd92a82e8d8dad707fe3981899b5 (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)

#elif defined(MATRIX_USE_INT)

#define MATRIX_ELEM long
#define MATRIX_ELEM_FMT "%ld"
#define MATRIX_ELEM_PTR(self) ((self)->data.i)

#endif