lua-gsl.c - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/lua-gsl.c
blob: b1e055b608e4ed30ec3c60ce680d2e334265fe54 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132

/* lua-gsl.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.
 */
#include <lua.h>
#include <lauxlib.h>
#include "lua-gsl.h"
#include "gs-types.h"
#include "lua-utils.h"
#include "nlinfit.h"
#include "cnlinfit.h"
#include "matrix.h"
#include "cmatrix.h"
#include "lcomplex.h"
#include "matrix_arith.h"
#include "linalg.h"
#include "integ.h"
#include "fft.h"
#include "ode_solver.h"
#include "ode.h"
#include "code.h"
#include "random.h"
#include "randist.h"
#include "pdf.h"
#include "cdf.h"
#include "sf.h"
#include "multimin.h"
#include "eigen-systems.h"
#include "mlinear.h"
#include "bspline.h"
#include "interp.h"
#ifdef AGG_PLOT_ENABLED
#include "window_registry.h"
#include "lua-draw.h"
#include "lua-text.h"
#include "window.h"
#include "lua-plot.h"
#endif
#ifdef LUA_STRICT
static const struct luaL_Reg gsl_methods_dummy[] = {{NULL, NULL}};
#endif
#ifdef GSL_SHELL_DEBUG
static int gsl_shell_lua_registry (lua_State *L);
static const struct luaL_Reg gsl_shell_debug_functions[] = {
 {"registry", gsl_shell_lua_registry},
 {NULL, NULL}
};
#endif
int
luaopen_gsl (lua_State *L)
{
 gsl_set_error_handler_off ();
#ifdef AGG_PLOT_ENABLED
 window_registry_prepare (L);
#endif
#ifdef LUA_STRICT
 luaL_register (L, MLUA_GSLLIBNAME, gsl_methods_dummy);
#else
 lua_pushvalue (L, LUA_GLOBALSINDEX);
#endif
 luaL_register (L, NULL, gs_type_functions);
 solver_register (L);
 matrix_register (L);
 matrix_arith_register (L);
 lcomplex_register (L);
 linalg_register (L);
 integ_register (L);
 ode_register (L);
 random_register (L);
 randist_register (L);
 pdf_register (L);
 cdf_register (L);
 sf_register (L);
 multimin_register (L);
 eigen_register (L);
 mlinear_register (L);
 bspline_register (L);
 interp_register (L);
#ifdef AGG_PLOT_ENABLED
 draw_register (L);
 text_register (L);
 window_register (L);
 plot_register (L);
#endif
 fft_register (L);
 matrix_complex_register (L);
 ode_complex_register (L);
 solver_complex_register (L);
 luaL_register (L, NULL, gsl_shell_debug_functions);
 lua_pop (L, 1);
 return 1;
}
#ifdef GSL_SHELL_DEBUG
int
gsl_shell_lua_registry (lua_State *L)
{
 lua_pushvalue (L, LUA_REGISTRYINDEX);
 return 1;
}
#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 21:58:25 +0000

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