added covariant matrix multiplication, inverse and solve - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/matrix_decls_source.c
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年10月25日 16:10:41 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年10月25日 16:10:41 +0200
commit53b62a19f80914481b3c4ddd29a34e58fb43b543 (patch)
tree6497e00aa60de23d10f098740524095b64537dfc /matrix_decls_source.c
parent16b347628af89740c5cd4f5c6c9fd632fea55360 (diff)
downloadgsl-shell-53b62a19f80914481b3c4ddd29a34e58fb43b543.tar.gz
added covariant matrix multiplication, inverse and solve
Diffstat (limited to 'matrix_decls_source.c')
-rw-r--r--matrix_decls_source.c 11
1 files changed, 2 insertions, 9 deletions
diff --git a/matrix_decls_source.c b/matrix_decls_source.c
index a3402bcf..6afe0a48 100644
--- a/matrix_decls_source.c
+++ b/matrix_decls_source.c
@@ -28,10 +28,6 @@ static int FUNCTION (matrix, dims) (lua_State *L);
static int FUNCTION (matrix, copy) (lua_State *L);
static int FUNCTION (matrix, slice) (lua_State *L);
-static int FUNCTION (matrix, mul) (lua_State *L);
-static int FUNCTION (matrix, inverse) (lua_State *L);
-static int FUNCTION (matrix, solve) (lua_State *L);
-
static void FUNCTION (matrix, set_ref) (lua_State *L, int index);
static const struct luaL_Reg FUNCTION (matrix, methods)[] = {
@@ -41,18 +37,15 @@ static const struct luaL_Reg FUNCTION (matrix, methods)[] = {
{"__div", matrix_div_elements},
{"__unm", matrix_unm},
{"__gc", FUNCTION (matrix, free)},
- {"get", FUNCTION (matrix, get)},
- {"set", FUNCTION (matrix, set)},
{"dims", FUNCTION (matrix, dims)},
{"copy", FUNCTION (matrix, copy)},
+ {"get", FUNCTION (matrix, get)},
+ {"set", FUNCTION (matrix, set)},
{"slice", FUNCTION (matrix, slice)},
{NULL, NULL}
};
static const struct luaL_Reg FUNCTION (matrix, functions)[] = {
{PREFIX "new", FUNCTION (matrix, new)},
- {PREFIX "mul", FUNCTION (matrix, mul)},
- {PREFIX "solve", FUNCTION (matrix, solve)},
- {PREFIX "inverse", FUNCTION (matrix, inverse)},
{NULL, NULL}
};
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月22日 01:05:23 +0000

AltStyle によって変換されたページ (->オリジナル) /