Added a C implementation for the matrix "set" function plus fixes. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/matrix_source.c
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2011年02月11日 18:38:36 +0100
committerfrancesco-ST <francesco.abbate@st.com>2011年02月11日 18:38:36 +0100
commit4cf03e0628ea5ede4879b7b75e968bc7f576db4e (patch)
tree96e0ad2cf3c273d05ef92fda160fefb5177bd6ac /matrix_source.c
parent1bcb3786d4563ff571211e5c153cdca919c0b19c (diff)
downloadgsl-shell-4cf03e0628ea5ede4879b7b75e968bc7f576db4e.tar.gz
Added a C implementation for the matrix "set" function plus fixes.
Fixed missing module identifier for function tostring_eps in matrix.lua.
Diffstat (limited to 'matrix_source.c')
-rw-r--r--matrix_source.c 6
1 files changed, 3 insertions, 3 deletions
diff --git a/matrix_source.c b/matrix_source.c
index 3f186c05..c8b6b581 100644
--- a/matrix_source.c
+++ b/matrix_source.c
@@ -138,7 +138,7 @@ FUNCTION(matrix, slice) (lua_State *L)
}
int
-FUNCTION(matrix, get) (lua_State *L)
+FUNCTION(matrix, get_elem) (lua_State *L)
{
const TYPE (gsl_matrix) *m = FUNCTION (matrix, check) (L, 1);
lua_Integer r = luaL_checkinteger (L, 2);
@@ -163,7 +163,7 @@ FUNCTION(matrix, get) (lua_State *L)
}
int
-FUNCTION(matrix, set) (lua_State *L)
+FUNCTION(matrix, set_elem) (lua_State *L)
{
TYPE (gsl_matrix) *m = FUNCTION (matrix, check) (L, 1);
lua_Integer r = luaL_checkinteger (L, 2);
@@ -302,7 +302,7 @@ FUNCTION(matrix, solve_raw) (lua_State *L,
if (b->size2 != 1)
gs_type_error (L, 1, "vector");
if (b->size1 != n)
- luaL_error (L, "dimensions of vector does not match with matrix");
+ luaL_error (L, "dimensions of vector does not match");
x = FUNCTION (matrix, push_raw) (L, n, 1);
x_view = FUNCTION (gsl_matrix, column) (x, 0);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月21日 06:49:47 +0000

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