matrix_decls_source.c - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/matrix_decls_source.c
blob: 199ebcdd99026162625d0ca1bedde7d1a81ff11f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

/* matrix_decls_source.c
 * 
 * Copyright (C) 2009 Francesco Abbate
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or (at
 * your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */
static int FUNCTION (matrix, get) (lua_State *L);
static int FUNCTION (matrix, set) (lua_State *L);
static int FUNCTION (matrix, free) (lua_State *L);
static int FUNCTION (matrix, new) (lua_State *L);
static int FUNCTION (matrix, dims) (lua_State *L);
static int FUNCTION (matrix, copy) (lua_State *L);
static int FUNCTION (matrix, add) (lua_State *L);
static int FUNCTION (matrix, sub) (lua_State *L);
static int FUNCTION (matrix, mul_elements) (lua_State *L);
static int FUNCTION (matrix, div_elements) (lua_State *L);
static int FUNCTION (matrix, unm) (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 const struct luaL_Reg FUNCTION (matrix, gc_methods)[] = {
 {"__gc", FUNCTION (matrix, free)},
 {NULL, NULL}
};
static const struct luaL_Reg FUNCTION (matrix, methods)[] = {
 {"__add", FUNCTION (matrix, add)},
 {"__sub", FUNCTION (matrix, sub)},
 {"__mul", FUNCTION (matrix, mul_elements)},
 {"__div", FUNCTION (matrix, div_elements)},
 {"__unm", FUNCTION (matrix, unm)},
 {"get", FUNCTION (matrix, get)},
 {"set", FUNCTION (matrix, set)},
 {"dims", FUNCTION (matrix, dims)},
 {"copy", FUNCTION (matrix, copy)},
 {"inverse", FUNCTION (matrix, inverse)},
 {NULL, NULL}
};
static const struct luaL_Reg FUNCTION (matrix, functions)[] = {
 {PREFIX "matrix", FUNCTION (matrix, new)},
 {PREFIX "mul", FUNCTION (matrix, mul)},
 {PREFIX "solve", FUNCTION (matrix, solve)},
 {NULL, NULL}
};
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月28日 17:15:28 +0000

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