aboutsummaryrefslogtreecommitdiff
path: root/matrix/mmatrix.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-22 10:26:12 +0800
committerDeterminant <[email protected]>2015-05-22 10:26:12 +0800
commit8f18aaba322cf717b8805ebfcacb5a3108d3dda8 (patch)
tree366b86e2be668da0cf0a7ae430d5d161145b4c16 /matrix/mmatrix.c
parent7503135d355275a17128f8a4c897739669fcd646 (diff)
add base class CuMatrix for CuMatrixFloat and CuMatrixDouble
Diffstat (limited to 'matrix/mmatrix.c')
-rw-r--r--matrix/mmatrix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/matrix/mmatrix.c b/matrix/mmatrix.c
index 6f5ef3f..ffb02ac 100644
--- a/matrix/mmatrix.c
+++ b/matrix/mmatrix.c
@@ -1,8 +1,8 @@
#define NERV_GENERIC_MMATRIX
#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";
+#define host_matrix_(NAME) host_matrix_float_##NAME
+#define nerv_matrix_(NAME) nerv_matrix_host_float_##NAME
+const char *nerv_matrix_(tname) = "nerv.MMatrixFloat";
#include "generic/mmatrix.c"
#undef nerv_matrix_
#undef host_matrix_
@@ -12,7 +12,7 @@ const char *nerv_matrix_(tname) = "nerv.FloatMMatrix";
#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";
+#define host_matrix_(NAME) host_matrix_double_##NAME
+#define nerv_matrix_(NAME) nerv_matrix_host_double_##NAME
+const char *nerv_matrix_(tname) = "nerv.MMatrixDouble";
#include "generic/mmatrix.c"