diff options
Diffstat (limited to 'matrix/mmatrix.c')
-rw-r--r-- | matrix/mmatrix.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/matrix/mmatrix.c b/matrix/mmatrix.c index b7d7dae..ab15197 100644 --- a/matrix/mmatrix.c +++ b/matrix/mmatrix.c @@ -17,3 +17,17 @@ const char *nerv_matrix_(tname) = "nerv.MMatrixFloat"; #define nerv_matrix_(NAME) nerv_matrix_host_double_##NAME const char *nerv_matrix_(tname) = "nerv.MMatrixDouble"; #include "generic/mmatrix.c" +#undef nerv_matrix_ +#undef host_matrix_ +#undef MATRIX_USE_DOUBLE +#undef MATRIX_ELEM +#undef MATRIX_ELEM_PTR +#undef MATRIX_ELEM_FMT + +#define NERV_GENERIC_MMATRIX +#define MATRIX_USE_INT +#define host_matrix_(NAME) host_matrix_int_##NAME +#define nerv_matrix_(NAME) nerv_matrix_host_int_##NAME +const char *nerv_matrix_(tname) = "nerv.MMatrixInt"; +#include "generic/mmatrix.c" + |