aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_tensor.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-26 10:30:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-26 10:30:18 +0100
commit2e6a269af6c32c2dd288697994c849511d1f37af (patch)
tree7b1de5f797a4f515c5d1f8d4833d453c385fe352 /src/lua/lua_tensor.c
parent8a2cad181848bc7825001bb1a418aa1982c566ab (diff)
downloadrspamd-2e6a269af6c32c2dd288697994c849511d1f37af.tar.gz
rspamd-2e6a269af6c32c2dd288697994c849511d1f37af.zip
[Minor] Eugen -> eigen
Diffstat (limited to 'src/lua/lua_tensor.c')
-rw-r--r--src/lua/lua_tensor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/lua_tensor.c b/src/lua/lua_tensor.c
index f8386d6f3..b40ee6e71 100644
--- a/src/lua/lua_tensor.c
+++ b/src/lua/lua_tensor.c
@@ -35,7 +35,7 @@ LUA_FUNCTION_DEF (tensor, tostring);
LUA_FUNCTION_DEF (tensor, index);
LUA_FUNCTION_DEF (tensor, newindex);
LUA_FUNCTION_DEF (tensor, len);
-LUA_FUNCTION_DEF (tensor, eugen);
+LUA_FUNCTION_DEF (tensor, eigen);
LUA_FUNCTION_DEF (tensor, mean);
LUA_FUNCTION_DEF (tensor, transpose);
@@ -56,7 +56,7 @@ static luaL_reg rspamd_tensor_m[] = {
{"__index", lua_tensor_index},
{"__newindex", lua_tensor_newindex},
{"__len", lua_tensor_len},
- LUA_INTERFACE_DEF (tensor, eugen),
+ LUA_INTERFACE_DEF (tensor, eigen),
LUA_INTERFACE_DEF (tensor, mean),
LUA_INTERFACE_DEF (tensor, transpose),
{NULL, NULL},
@@ -604,9 +604,9 @@ lua_tensor_len (lua_State *L)
}
static gint
-lua_tensor_eugen (lua_State *L)
+lua_tensor_eigen (lua_State *L)
{
- struct rspamd_lua_tensor *t = lua_check_tensor (L, 1), *eugen;
+ struct rspamd_lua_tensor *t = lua_check_tensor (L, 1), *eigen;
if (t) {
if (t->ndims != 2 || t->dim[0] != t->dim[1]) {
@@ -614,9 +614,9 @@ lua_tensor_eugen (lua_State *L)
t->dim[0], t->dim[1]);
}
- eugen = lua_newtensor (L, 1, &t->dim[0], true, true);
+ eigen = lua_newtensor (L, 1, &t->dim[0], true, true);
- if (!kad_ssyev_simple (t->dim[0], t->data, eugen->data)) {
+ if (!kad_ssyev_simple (t->dim[0], t->data, eigen->data)) {
lua_pop (L, 1);
return luaL_error (L, "kad_ssyev_simple failed (no blas?)");
}