aboutsummaryrefslogtreecommitdiff
path: root/matrix/mmatrix.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-19 15:09:06 +0800
committerDeterminant <[email protected]>2015-05-19 15:09:06 +0800
commit0e738af4bb1eda301564d8469178a7581b0cbcce (patch)
tree4e94320a4a27d8a01bb4419b444d16d80b96a8d2 /matrix/mmatrix.c
parente9b8855c894daa4e6749acfe891f68b3ed8ed481 (diff)
...
Diffstat (limited to 'matrix/mmatrix.c')
-rw-r--r--matrix/mmatrix.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/matrix/mmatrix.c b/matrix/mmatrix.c
index f616d51..6f5ef3f 100644
--- a/matrix/mmatrix.c
+++ b/matrix/mmatrix.c
@@ -2,4 +2,17 @@
#define MATRIX_USE_FLOAT
#define host_matrix_(NAME) host_matrix_float_ ## NAME
#define nerv_matrix_(NAME) nerv_matrix_float_host_ ## NAME
+const char *nerv_matrix_(tname) = "nerv.FloatMMatrix";
+#include "generic/mmatrix.c"
+#undef nerv_matrix_
+#undef host_matrix_
+#undef MATRIX_USE_FLOAT
+#undef MATRIX_ELEM
+#undef MATRIX_ELEM_PTR
+
+#define NERV_GENERIC_MMATRIX
+#define MATRIX_USE_DOUBLE
+#define host_matrix_(NAME) host_matrix_double_ ## NAME
+#define nerv_matrix_(NAME) nerv_matrix_double_host_ ## NAME
+const char *nerv_matrix_(tname) = "nerv.DoubleMMatrix";
#include "generic/mmatrix.c"