diff options
author | Determinant <[email protected]> | 2015-05-31 11:18:16 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-31 11:18:16 +0800 |
commit | ab12a9583bdd39884fde9bc2444e6fd1bc5f518e (patch) | |
tree | 11d6bf3b4aafd4a07cf78fe8dc921fa5280d8a3e /matrix/mmatrix.c | |
parent | c6f6ac13a1cf00e440e998422f89b42c69b073a6 (diff) |
add async copy by index; add MMatrixInt
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" + |