aboutsummaryrefslogtreecommitdiff
path: root/matrix/init.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-05 10:58:57 +0800
committerDeterminant <[email protected]>2015-06-05 10:58:57 +0800
commitdf737041e4a9f3f55978cc74db9a9cea27fa9fa0 (patch)
treed656820be286550bc548f7c5ed4b1dcfecf3691c /matrix/init.c
parentea6f2990f99dd9ded6a0e74d75a3ec84900a2518 (diff)
add profiling; add ce accurarcy; several other changes
Diffstat (limited to 'matrix/init.c')
-rw-r--r--matrix/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/matrix/init.c b/matrix/init.c
index b54cd12..7b7f478 100644
--- a/matrix/init.c
+++ b/matrix/init.c
@@ -9,12 +9,17 @@ void nerv_matrix_host_float_init(lua_State *L);
void nerv_matrix_cuda_float_init(lua_State *L);
void nerv_matrix_host_double_init(lua_State *L);
void nerv_matrix_cuda_double_init(lua_State *L);
+void nerv_matrix_host_int_init(lua_State *L);
+int print_profile(lua_State *L);
+int clear_profile(lua_State *L);
static const luaL_Reg matrix_methods[] = {
{"__tostring__", nerv_error_method_not_implemented },
{"__add__", nerv_error_method_not_implemented },
{"__sub__", nerv_error_method_not_implemented },
{"__mul__", nerv_error_method_not_implemented },
+ {"print_profile", print_profile},
+ {"clear_profile", clear_profile},
{NULL, NULL}
};