| Libgretl Reference Manual |
|---|
monte_carlomonte_carlo — |
int gretl_compiling_loop (void); int gretl_execute_loop (void); int ok_in_loop (int ci); int gretl_loop_append_line (ExecState *s, double ***pZ, DATAINFO *pdinfo); int gretl_loop_exec (ExecState *s, double ***pZ, DATAINFO **ppdinfo); int model_is_in_loop (const MODEL *pmod); int loop_scalar_read (int c);
int ok_in_loop (int ci);
ci : |
command index. |
| Returns : | 1 if the given command is acceptable inside the loop construct, 0 otherwise. |
int gretl_loop_append_line (ExecState *s, double ***pZ, DATAINFO *pdinfo);
Add command line to accumulated loop buffer. This may be
called "starting from cold", in which case the "line"
member of s will have been parsed and any options
extracted to s->cmd->opt. But it may also be called in
the process of ongoing loop compilation, and in that
case option flags will not have been processed already.
s : |
program execution state. |
pZ : |
pointer to data matrix. |
pdinfo : |
dataset information. |
| Returns : | 0 on success, non-zero code on error. |
int gretl_loop_exec (ExecState *s, double ***pZ, DATAINFO **ppdinfo);
s : |
|
pZ : |
|
ppdinfo : |
|
| Returns : |
| << Command structures: loops and functions | gretl_func >> |