input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int add_or_omit_compare(MODEL *pmodA, MODEL *pmodB, const int *testvars, const DATASET *dset, int ci, gretlopt opt, PRN *prn) { gretlopt opta; int iv_special; int err; MODEL *umod; MODEL *rmod; COMPARE cmp; unsigned long v15; opta = opt; v15 = __readfsqword(0x28u); iv_specia...
static int add_or_omit_compare(MODEL *pmodA, MODEL *pmodB, const int *testvars, const DATASET *dset, int ci, gretlopt opt, PRN *prn) { struct COMPARE cmp; MODEL *umod, *rmod; int iv_special = 0; int err = 0; cmp.ci = ci; cmp.stat = 0; cmp.test...
add_or_omit_compare
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_or_replace_k_matrix(gretl_matrix **targ, gretl_matrix *src, int id, int copy) { int err; err = 0; if (src != *targ) { if (*targ) { err = check_replacement_dims(*targ, src, id); if (err) return err; gretl_matrix_free(*targ); } if (copy) { ...
static int add_or_replace_k_matrix(gretl_matrix **targ, gretl_matrix *src, int id, int copy) { int err = 0; if (*targ != src) { if (*targ != NULL) { err = check_replacement_dims(*targ, src, id); if (err) { return err; } gretl_matrix_free(*targ...
add_or_replace_k_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_panel_obs_info(MODEL *pmod, panelmod_t *pan) { gretl_model_set_int(pmod, "n_included_units", pan->effn); gretl_model_set_int(pmod, "panel_T", pan->T); gretl_model_set_int(pmod, "Tmin", pan->Tmin); gretl_model_set_int(pmod, "Tmax", pan->Tmax); if (pan->Tmax > pan->Tmin && pan->Tbar == 0.0) calcula...
static void add_panel_obs_info(MODEL *pmod, panelmod_t *pan) { gretl_model_set_int(pmod, "n_included_units", pan->effn); gretl_model_set_int(pmod, "panel_T", pan->T); gretl_model_set_int(pmod, "Tmin", pan->Tmin); gretl_model_set_int(pmod, "Tmax", pan->Tmax); if (pan->Tmax > pan->Tmin && pan->Tbar == 0) { ...
add_panel_obs_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_param_names(midas_info *mi, const DATASET *dset) { int i; int ia; int j; int k; char tmp[64]; char str[1032]; unsigned long v9; v9 = __readfsqword(0x28u); k = 0; mi->seplist = gretl_list_new(mi->nmidas); str[0] = 0; tmp[0] = 0; if (mi->xlist) { for (i = 1; i <= *mi->xlist; ++i) { ...
static int add_param_names(midas_info *mi, const DATASET *dset) { char tmp[64], str[2 * MAXLEN]; int i, j, k = 0; int err = 0; mi->seplist = gretl_list_new(mi->nmidas); *tmp = *str = '\0'; if (mi->xlist != NULL) { for (i = 1; i <= mi->xlist[0]; i++) { strcpy(tmp, dset->varname[mi->xlist[i]]); ...
add_param_names
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_param_names_to_model(MODEL *pmod, nlspec *spec) { int v3; char **v4; char **v5; int i; int j; int k; int err; int nc; int na; int n; int m; char pname[40]; unsigned long v15; v15 = __readfsqword(0x28u); nc = pmod->ncoeff; err = 0; pmod->params = strings_array_new(nc); if (!p...
static int add_param_names_to_model(MODEL *pmod, nlspec *spec) { char pname[VNAMELEN]; int nc = pmod->ncoeff; int i, j, k, m, n; int err = 0; pmod->params = strings_array_new(nc); if (pmod->params == NULL) { return E_ALLOC; } pmod->nparams = nc; if (spec->ci == NLS) { pmod->depvar = gretl_s...
add_param_names_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_partial_std_errs_to_model(MODEL *pmod, const int *list) { int v3; int i; int j; int ndrop; int k; int *dlist; double *coeff; double *sderr; ndrop = *list - *pmod->list; if (ndrop > 0) { dlist = gretl_list_new(ndrop); gretl_list_diff(dlist, list, pmod->list); k = *list - 1; c...
static int add_partial_std_errs_to_model(MODEL *pmod, const int *list) { int ndrop = list[0] - pmod->list[0]; double *coeff, *sderr; int k, *dlist; int i, j; if (ndrop <= 0) { fprintf(stderr, "no droplist found\n"); return E_JACOBIAN; } dlist = gretl_list_new(ndrop); gretl_list_diff(dlist, li...
add_partial_std_errs_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_predet_to_sys(equation_system *sys, const DATASET *dset, int id, int src, int lag) { int n; predet *pre; n = *sys->plist; if (id < 0 || src < 0 || id >= dset->v || src >= dset->v) return 2; if (in_gretl_list(sys->plist, id)) return 0; pre = (predet *)realloc(sys->pre_v...
static int add_predet_to_sys(equation_system *sys, const DATASET *dset, int id, int src, int lag) { int n = sys->plist[0]; int *test; predet *pre; if (id < 0 || src < 0 || id >= dset->v || src >= dset->v) { return E_DATA; } if (in_gretl_list(sys->plist, id)) { return...
add_predet_to_sys
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_residual_to_dataset(MODEL *pmod, DATASET *dset) { char *v2; int err; int t; int v; err = 0; if (dataset_add_series(dset, 1)) return 12; v = dset->v - 1; for (t = 0; t < dset->n; ++t) dset->Z[v][t] = pmod->uhat[t]; strcpy(dset->varname[v], "uhat"); v2 = gettext("residual"); series_...
static int add_residual_to_dataset(MODEL *pmod, DATASET *dset) { int err = 0; if (dataset_add_series(dset, 1)) { err = E_ALLOC; } else { int t, v = dset->v - 1; for (t = 0; t < dset->n; t++) { dset->Z[v][t] = pmod->uhat[t]; } strcpy(dset->varname[v], "uhat"); series_set_label(dset...
add_residual_to_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_scalar_arg_default(fn_param *param) { if (param->deflt == -1.0e200) return 2; else return real_add_scalar_arg(param, param->deflt); }
static int add_scalar_arg_default(fn_param *param) { if (default_unset(param)) { return E_DATA; } else { return real_add_scalar_arg(param, param->deflt); } }
add_scalar_arg_default
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_scalar_to_matrix(gretl_matrix *targ, double x) { int i; int n; n = targ->rows * targ->cols; for (i = 0; i < n; ++i) targ->val[i] = targ->val[i] + x; return 0; }
static int add_scalar_to_matrix(gretl_matrix *targ, double x) { int i, n = targ->rows * targ->cols; for (i = 0; i < n; i++) { targ->val[i] += x; } return 0; }
add_scalar_to_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_single_obs(DATASET *dset) { int i; int ia; int err; double *x; err = 0; for (i = 0; i < dset->v && !err; ++i) { x = (double *)realloc(dset->Z[i], 8LL * (dset->n + 1)); if (x) dset->Z[i] = x; else err = 12; } if (!err) { (*dset->Z)[dset->n++] = 1.0; for (ia = 1; i...
static int add_single_obs(DATASET *dset) { double *x; int i, err = 0; for (i = 0; i < dset->v && !err; i++) { x = realloc(dset->Z[i], (dset->n + 1) * sizeof *x); if (x != NULL) { dset->Z[i] = x; } else { err = E_ALLOC; } } if (!err) { dset->n += 1; dset->Z[0][dset->n - 1]...
add_single_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_slash(char *s) { if (s[strlen(s) - 1] == 47) return 0; *(_WORD *)&s[strlen(s)] = 47; return 1; }
int add_slash(char *s) { if (s[strlen(s) - 1] != SLASH) { strcat(s, SLASHSTR); return 1; } return 0; }
add_slash
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_stats_to_model(MODEL *pmod, nlspec *spec) { int t1; int v3; double v4; int s; int t; int dv; double tss; dv = spec->dv; pmod->ess = spec->crit; pmod->sigma = sqrt(pmod->ess / (double)(pmod->nobs - spec->ncoeff)); pmod->ybar = j_gretl_mean(pmod->t1, pmod->t2, spec->dset->Z[dv]); pmod->s...
static void add_stats_to_model(MODEL *pmod, nlspec *spec) { int dv = spec->dv; double d, tss; int s, t; pmod->ess = spec->crit; pmod->sigma = sqrt(pmod->ess / (pmod->nobs - spec->ncoeff)); pmod->ybar = gretl_mean(pmod->t1, pmod->t2, spec->dset->Z[dv]); pmod->sdy = gretl_stddev(pmod->t1, pmod->t2, spec->...
add_stats_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_target_series(const char **vnames, DATASET *dset, int *targvars, int n_add) { int v4; int i; int v; int err; v = dset->v; err = dataset_add_NA_series(dset, n_add); if (!err) { for (i = 1; i <= *targvars; ++i) { if (targvars[i] < 0) { strcpy(dset->varname[v]...
static int add_target_series(const char **vnames, DATASET *dset, int *targvars, int n_add) { int i, v = dset->v; int err; err = dataset_add_NA_series(dset, n_add); if (!err) { for (i = 1; i <= targvars[0]; i++) { if (targvars[i] < 0) { strcpy(dset->varname[v], vn...
add_target_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_term_to_restriction(rrow *r, double mult, int eq, int bnum, char letter, int i) { int j; for (j = 0; j < i; ++j) { if ((!r->letter || letter == r->letter[j]) && bnum == r->bnum[j] && (!r->eq || eq == r->eq[j])) { r->mult[j] = r->mult[j] + mult; --r->nterm...
static int add_term_to_restriction(rrow *r, double mult, int eq, int bnum, char letter, int i) { int j; for (j = 0; j < i; j++) { if (r->letter != NULL && r->letter[j] != letter) { continue; } if (bnum == r->bnum[j] && (r->eq == NULL || eq == r->eq[j])) { ...
add_term_to_restriction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_test(MODEL *pmod, const int *addvars, DATASET *dset, gretlopt opt, PRN *prn) { return add_test_full(pmod, 0, addvars, dset, opt, prn); }
int add_test(MODEL *pmod, const int *addvars, DATASET *dset, gretlopt opt, PRN *prn) { return add_test_full(pmod, NULL, addvars, dset, opt, prn); }
add_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_test_full(MODEL *orig, MODEL *pmod, const int *addvars, DATASET *dset, gretlopt opt, PRN *prn) { MODEL v7; PRN *prna; gretlopt opta; DATASET *dseta; const int *addvarsa; MODEL *pmoda; MODEL *origa; int err; gretlopt ropt; int save_t1; int save_t2; int orig_nvar; int n...
int add_test_full(MODEL *orig, MODEL *pmod, const int *addvars, DATASET *dset, gretlopt opt, PRN *prn) { MODEL umod; int save_t1 = dset->t1; int save_t2 = dset->t2; int *biglist = NULL; const int orig_nvar = dset->v; int n_add = 0; int err = 0; if (orig == NULL || orig->list == NULL |...
add_test_full
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_time_dummies_to_list(const int *list, DATASET *dset, int **plist) { int v4; int i; int ia; int j; int err; int v; int *biglist; char dname[40]; unsigned long v13; v13 = __readfsqword(0x28u); err = 0; biglist = gretl_list_new(*list + dset->pd - 1); if (!biglist) return 12; for (i...
static int add_time_dummies_to_list(const int *list, DATASET *dset, int **plist) { char dname[VNAMELEN]; int *biglist = NULL; int ntdum = dset->pd - 1; int i, j, v; int err = 0; biglist = gretl_list_new(list[0] + ntdum); if (biglist == NULL) { return E_ALLOC; } ...
add_time_dummies_to_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_tsls_var(int *list, int v, gretlopt opt) { int i; int ia; int pos; pos = gretl_list_separator_position(list); if ((opt & 0x80000) != 0) { list[++*list] = v; } else if ((opt & 2) != 0) { *list += 2; for (i = *list - 1; i > pos; --i) list[i] = list[i - 1]; list[pos] = v; li...
static void add_tsls_var(int *list, int v, gretlopt opt) { int pos = gretl_list_separator_position(list); int i; if (opt & OPT_T) { list[0] += 1; list[list[0]] = v; } else if (opt & OPT_B) { list[0] += 2; for (i = list[0] - 1; i > pos; i--) { list[i] = list[i - 1]; } list[pos] =...
add_tsls_var
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
ufunc *add_ufunc(const char *fname) { ufunc *fun; fun = ufunc_new(); if (fun) { strncat(fun->name, fname, 0x1Fu); if (add_allocated_ufunc(fun)) { ufunc_free(fun); return 0; } } return fun; }
static ufunc *add_ufunc(const char *fname) { ufunc *fun = ufunc_new(); #if FN_DEBUG fprintf(stderr, "add_ufunc: '%s'\n", fname); #endif if (fun != NULL) { strncat(fun->name, fname, FN_NAMELEN - 1); if (add_allocated_ufunc(fun)) { ufunc_free(fun); fun = NULL; } } return fun; }
add_ufunc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_var_labels_from_array(DATASET *dset, const char *aname) { const char *data; int i; int err; gretl_array *a; a = get_array_by_name(aname); err = 0; if (a) { if (gretl_array_get_type(a) != GRETL_TYPE_STRINGS || gretl_array_get_length(a) < dset->v - 1) err = 37; } else { gret...
static int add_var_labels_from_array(DATASET *dset, const char *aname) { gretl_array *a = get_array_by_name(aname); int i, err = 0; if (a == NULL) { gretl_errmsg_sprintf("%s: no such array", aname); err = E_DATA; } else if (gretl_array_get_type(a) != GRETL_TYPE_STRINGS || gretl_array_get_l...
add_var_labels_from_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_var_labels_from_file(DATASET *dset, const char *fname) { long v3; long v4; int nlabels; int i; int err; gsize bytes; FILE *fp; gchar *label; gchar *trstr; char line[1032]; unsigned long v13; v13 = __readfsqword(0x28u); nlabels = 0; err = 0; fp = gretl_fopen(fname, "r"); if (!fp)...
int add_var_labels_from_file(DATASET *dset, const char *fname) { FILE *fp; char line[1024]; gchar *label; int nlabels = 0; int i, err = 0; fp = gretl_fopen(fname, "r"); if (fp == NULL) { return E_FOPEN; } for (i = 1; i < dset->v && !err; i++) { if (fgets(line, sizeof line, fp) == NULL) { ...
add_var_labels_from_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_vars_missing(const MODEL *pmod, const int *addvars, const DATASET *dset) { int i; int t; int vi; for (t = pmod->t1; t <= pmod->t2; ++t) { if (!model_missing(pmod, t) && (!pmod->yhat || fabs(pmod->yhat[t]) <= 1.797693134862316e308)) { for (i = 1; i <= *addvars; ++i...
static int add_vars_missing(const MODEL *pmod, const int *addvars, const DATASET *dset) { int i, vi, t; for (t = pmod->t1; t <= pmod->t2; t++) { if (model_missing(pmod, t) || (pmod->yhat != NULL && na(pmod->yhat[t]))) { continue; } for (i = 1; i <= addvars[0]; i++) { ...
add_vars_missing
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void addconst_message(const MODEL *pmod, PRN *prn) { char *v2; if (gretl_model_get_int(pmod, "addconst")) { v2 = gettext("WARNING: The constant was present among the regressors but " "not among the\n" "instruments, so it has been automatically added to the " "...
static void addconst_message(const MODEL *pmod, PRN *prn) { if (gretl_model_get_int(pmod, "addconst")) { pprintf(prn, "\n\n%s\n", _("WARNING: The constant was present among the regressors but not " "among the\n" "instruments, so it has been automatically added to the " ...
addconst_message
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int adf_prepare_vars(adf_info *ainfo, DATASET *dset, gretlopt opt, int demean_mode, PRN *prn) { PRN *v6; int v7; int err; DetCode det; int v_0; DetCode det_0; int offset_0; int v; int offset; PRN *vprn; err = 0; if (!ainfo->v) return 2; if (!ainfo->list) { ainfo->...
static int adf_prepare_vars(adf_info *ainfo, DATASET *dset, gretlopt opt, int demean_mode, PRN *prn) { int err = 0; if (ainfo->v == 0) { return E_DATA; } if (ainfo->list == NULL) { int len = 5 + ainfo->nseas + ainfo->order; ainfo->list = gretl_list_new(len); if (a...
adf_prepare_vars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int adf_test(int order, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { int v5; int err; int i; int save_t1; int save_t2; int vlevel; int v; int T; adf_info ainfo; int vlist[2]; unsigned long v20; v20 = __readfsqword(0x28u); save_t1 = dset->t1; save_t2 = dset->t2; e...
int adf_test(int order, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { int save_t1 = dset->t1; int save_t2 = dset->t2; int panelmode; int err; err = incompatible_options(opt, OPT_G | OPT_N | OPT_R); if (!err) { err = incompatible_options(opt, OPT_D | OPT_G); } if (!err && (...
adf_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int adf_y_offset(adf_info *ainfo, int v, DATASET *dset) { int t; int offset; int min_offset; min_offset = dset->t1 - (ainfo->order + 1); offset = 0; for (t = 0; t <= dset->t2; ++t) { dset->Z[v][t] = dset->Z[ainfo->v][t]; if (fabs(dset->Z[v][t]) > 1.797693134862316e308) offset = t + 1; } i...
static int adf_y_offset(adf_info *ainfo, int v, DATASET *dset) { int min_offset = dset->t1 - (ainfo->order + 1); int t, offset = 0; for (t = 0; t <= dset->t2; t++) { dset->Z[v][t] = dset->Z[ainfo->v][t]; if (na(dset->Z[v][t])) { offset = t + 1; } } if (offset < min_offset) { offset = m...
adf_y_offset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void adjust_array_arg_type(fn_arg *arg) { GretlType t; t = gretl_array_get_type(arg->val.a); if (arg->type == 24) arg->type = gretl_type_get_ref_type(t); else arg->type = t; }
static void adjust_array_arg_type(fn_arg *arg) { GretlType t = gretl_array_get_type(arg->val.a); if (arg->type == GRETL_TYPE_ARRAY_REF) { arg->type = gretl_type_get_ref_type(t); } else { arg->type = t; } }
adjust_array_arg_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void adjust_gset_data(panelmod_t *pan, DATASET *gset, int step) { double v3; int i; int j; int t; int Ti; t = 0; for (i = 0; i < pan->nunits; ++i) { Ti = pan->unit_obs[i]; if (Ti > 0) { if (step) v3 = 1.0 / sqrt((double)Ti); else v3 = sqrt((double)Ti); for (j = 0...
static void adjust_gset_data(panelmod_t *pan, DATASET *gset, int step) { int i, j, Ti, t = 0; double adj; for (i = 0; i < pan->nunits; i++) { Ti = pan->unit_obs[i]; if (Ti > 0) { adj = step == 0 ? sqrt(Ti) : 1.0 / sqrt(Ti); for (j = 0; j < gset->v; j++) { gset->Z[j][t] *= adj; }...
adjust_gset_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void adjust_indent(const char *s, int *this_indent, int *next_indent) { const char *sa; int ti; int ni; int i; int matched; const char *block_starts[12]; unsigned long v10; sa = s; v10 = __readfsqword(0x28u); block_starts[0] = "loop"; block_starts[1] = "if"; block_starts[2] = "nls"; block_sta...
void adjust_indent(const char *s, int *this_indent, int *next_indent) { const char *block_starts[] = {"loop", "if", "nls", "mle", "gmm", "mpi", "plot", "function", "restrict", "system", "foreign", NULL}; int ti = *next_indent; ...
adjust_indent
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int adjust_print_list(int *list, int *screenvar, gretlopt opt) { int pos; if ((opt & 0x4000) == 0) return 18; pos = gretl_list_separator_position(list); if (*list <= 2 || pos != *list - 1) return 18; *screenvar = list[*list]; *list = pos - 1; return 0; }
static int adjust_print_list(int *list, int *screenvar, gretlopt opt) { int pos; if (!(opt & OPT_O)) { return E_PARSE; } pos = gretl_list_separator_position(list); if (list[0] < 3 || pos != list[0] - 1) { return E_PARSE; } else { *screenvar = list[list[0]]; list[0] = pos - 1; } retur...
adjust_print_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *adjust_saved_nlfunc(char *s) { char *p; char *pa; char *pb; p = strchr(s, 45); if (p) *p = 61; pa = strchr(s, 40); if (pa) shift_string_left(pa, 1u); pb = strrchr(s, 41); if (pb) *pb = 0; return s; }
static char *adjust_saved_nlfunc(char *s) { char *p = strchr(s, '-'); if (p != NULL) { *p = '='; } p = strchr(s, '('); if (p != NULL) { shift_string_left(p, 1); } p = strrchr(s, ')'); if (p != NULL) { *p = '\0'; } return s; }
adjust_saved_nlfunc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void adjust_sys_flags_for_method(equation_system *sys, int method) { int flags; char oldflags; oldflags = sys->flags; sys->flags = 0; if ((oldflags & 0x200) != 0 && sys->method == 4) { flags = sys->flags; BYTE1(flags) |= 2u; sys->flags = flags; } if ((oldflags & 0x20) != 0 && (sys->method == ...
static void adjust_sys_flags_for_method(equation_system *sys, int method) { char oldflags = sys->flags; sys->flags = 0; if (oldflags & SYSTEM_ROBUST) { if (sys->method == SYS_METHOD_OLS) { sys->flags |= SYSTEM_ROBUST; } } if (oldflags & SYSTEM_ITERATE) { if (sys->method == SYS_METHOD_WLS ...
adjust_sys_flags_for_method
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void adjust_weights(const gretl_matrix *rw, gretl_matrix *wt, int a) { int rows; int k; if (wt) { if (wt->cols == 1) { rows = wt->rows; } else if (wt->rows == 1) { rows = wt->cols; } else { rows = 0; } } else { rows = 0; } for (k = 0; k < rows; ++k) { wt->val[k] = ...
static void adjust_weights(const gretl_matrix *rw, gretl_matrix *wt, int a) { int k, n = gretl_vector_get_length(wt); int t = a; for (k = 0; k < n; k++) { wt->val[k] *= rw->val[t]; if (k < n - 1) { t++; while (na(rw->val[t])) t++; } } }
adjust_weights
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void aggr_add_colnames(gretl_matrix *m, const int *ylist, const int *xlist, const DATASET *dset, int just_count) { int v5; int v6; int v7; char **v8; int v9; char **v10; int err; int i; int j; int n; char **S; char **Sy; char **Sx; unsigned long v20; v20 = __readfsq...
static void aggr_add_colnames(gretl_matrix *m, const int *ylist, const int *xlist, const DATASET *dset, int just_count) { char **S = NULL; int i, j, n = m->cols; int err = 0; S = strings_array_new(n); if (S == NULL) { return; } j = 0; if...
aggr_add_colnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int aggr_val_determined(joiner *jr, int n, double *x, int *err) { char *v5; if (jr->aggr == AGGR_COUNT) { *x = (double)n; return 1; } else if (jr->aggr == AGGR_SEQ && seqval_out_of_bounds(jr, n)) { *x = NAN; return 1; } else if (n <= 1 || jr->aggr) { return 0; } else { *err = 2; v...
static int aggr_val_determined(joiner *jr, int n, double *x, int *err) { if (jr->aggr == AGGR_COUNT) { *x = n; return 1; } else if (jr->aggr == AGGR_SEQ && seqval_out_of_bounds(jr, n)) { *x = NADBL; return 1; } else if (n > 1 && jr->aggr == AGGR_NONE) { #if AGGDEBUG fprintf(stderr, "aggr_va...
aggr_val_determined
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double aggr_value(joiner *jr, jr_matcher *matcher, int s, int v, int revseq, double *xmatch, double *auxmatch, int *err) { _BOOL4 v9; int v10; int v11; int v12; int sub; int i; int n; int ntotal; int gotit; int idx; int pos; int imin; int imax; int sval; int daily; int ...
static double aggr_value(joiner *jr, jr_matcher *matcher, int s, int v, int revseq, double *xmatch, double *auxmatch, int *err) { keynum key1 = matcher->k1[s]; keynum key2 = matcher_get_k2(matcher, s); int pos = matcher->pos[s]; double x, xa; int imin, imax; ...
aggr_value
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *aggregate_by(const double *x, const double *y, const int *xlist, const int *ylist, const char *fncall, const DATASET *dset, int *err) { int v8; const double *v9; const double *v10; const double *xa; int just_count; int f; DATASET *tmpset;...
gretl_matrix *aggregate_by(const double *x, const double *y, const int *xlist, const int *ylist, const char *fncall, const DATASET *dset, int *err) { DATASET *tmpset = NULL; gretl_matrix *m = NULL; double *tmp = NULL; double (*builtin)(int, int, const double...
aggregate_by
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int aggregate_data(joiner *jr, const int *ikeyvars, const int *targvars, joinspec *jspec, int orig_v, int *modified) { int v6; _BOOL4 v8; double v9; int err; int revseq; int i; int t; int nmax; int s; int rv; int strcheck; int nomatch; int nx; int lv; series_table *rst; ...
static int aggregate_data(joiner *jr, const int *ikeyvars, const int *targvars, joinspec *jspec, int orig_v, int *modified) { jr_matcher matcher = {0}; series_table *rst = NULL; series_table *lst = NULL; DATASET *dset = jr->l_dset; double *xmatch = NULL; double *auxmatch = NULL; ...
aggregate_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int aggregate_discrete_check(const int *list, const DATASET *dset) { char *v2; char *v3; int i; int vi; for (i = 1; i <= *list; ++i) { vi = list[i]; if (!accept_as_discrete(dset, vi, 0)) { v2 = dset->varname[vi]; v3 = gettext("The variable '%s' is not discrete"); gretl_errmsg_sprint...
static int aggregate_discrete_check(const int *list, const DATASET *dset) { int i, vi; for (i = 1; i <= list[0]; i++) { vi = list[i]; if (!accept_as_discrete(dset, vi, 0)) { gretl_errmsg_sprintf(_("The variable '%s' is not discrete"), dset->varname[vi]); return E_DATA...
aggregate_discrete_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int aggregation_type_check(joinspec *jspec, AggrType aggr) { int err; int aggcol; DATASET *dset; err = 0; if ((unsigned int)aggr >= AGGR_AVG && aggr != AGGR_SEQ) { dset = outer_dataset(jspec); aggcol = 0; if (jspec->colnums[5] <= 0) { if (jspec->colnums[6] > 0) aggcol = jspec->colnu...
static int aggregation_type_check(joinspec *jspec, AggrType aggr) { int err = 0; if (aggr == AGGR_NONE || aggr == AGGR_COUNT || aggr == AGGR_SEQ) { ; } else { const DATASET *dset = outer_dataset(jspec); int aggcol = 0; if (jspec->colnums[JOIN_AUX] > 0) { aggcol = jspec->colnums[JOIN_AUX];...
aggregation_type_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int airy(double x, double *ai, double *aip, double *bi, double *bip) { double v6; double v7; double v8; double v9; double v10; double v11; double v12; double v13; double v14; double v15; double v16; char domflg; double tc; double td; double t; double ta; double tb; double fb; doubl...
int airy(double x, double *ai, double *aip, double *bi, double *bip) { double z, zz, t, f, g, uf, ug, k, zeta, theta; int domflg = 0; if (x > MAXAIRY) { *ai = 0; *aip = 0; *bi = MAXNUM; *bip = MAXNUM; return -1; } if (x < -2.09) { domflg = 15; t = sqrt(-x); zeta = -2.0 * x * ...
airy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void align_matrix_to_series(double *y, const gretl_matrix *m, parser *p) { int t; int s; const gretl_matrix *mask; mask = get_matrix_mask(); s = 0; if (mask && mask->rows == p->dset->n) { for (t = 0; t < p->dset->n; ++t) { if (mask->val[t] != 0.0) { if (t >= p->dset->t1 && t <= p->dset->t...
static void align_matrix_to_series(double *y, const gretl_matrix *m, parser *p) { const gretl_matrix *mask = get_matrix_mask(); int t, s = 0; if (mask == NULL || mask->rows != p->dset->n) { p->err = E_DATA; return; } for (t = 0; t < p->dset->n; t++) { if (mask-...
align_matrix_to_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int all_day_ones(DATASET *dset) { int t; for (t = 1; t < dset->n; ++t) { if (atoi(dset->S[t]) != 1) return 0; if (t > 31) return 1; } return 0; }
static int all_day_ones(DATASET *dset) { int t; for (t = 1; t < dset->n; t++) { if (atoi(dset->S[t]) != 1) { return 0; } else if (t > 31) { return 1; } } return 0; }
all_day_ones
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int all_digits_and_seps(const char *s) { size_t v1; const char *sa; sa = s; if (*s == 45) sa = s + 1; v1 = strspn(sa, "0123456789.,"); return v1 == strlen(sa); }
static int all_digits_and_seps(const char *s) { const char *test = "0123456789.,"; if (*s == '-') s++; return strspn(s, test) == strlen(s); }
all_digits_and_seps
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int all_graph_data_missing(const int *list, int t, const double **Z) { int i; for (i = 1; i <= *list; ++i) { if (fabs(Z[list[i]][t]) <= 1.797693134862316e308) return 0; } return 1; }
static int all_graph_data_missing(const int *list, int t, const double **Z) { int i; for (i = 1; i <= list[0]; i++) { if (!na(Z[list[i]][t])) { return 0; } } return 1; }
all_graph_data_missing
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
mt_struct *alloc_mt_struct(int n) { mt_struct *mts; mts = (mt_struct *)malloc(0x48u); if (!mts) return 0; mts->state = (uint32_t *)malloc(4LL * n); if (mts->state) return mts; free(mts); return 0; }
static mt_struct *alloc_mt_struct(int n) { mt_struct *mts; mts = (mt_struct *)malloc(sizeof(mt_struct)); if (NULL == mts) return NULL; mts->state = (uint32_t *)malloc(n * sizeof(uint32_t)); if (NULL == mts->state) { free(mts); return NULL; } return mts; }
alloc_mt_struct
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_Z(DATASET *dset, gretlopt opt) { double **borrowed_Z; double v3; int i; int t; int err; err = 0; if (dset->Z) fwrite("*** error: allocate_Z called with non-NULL Z\n", 1u, 0x2Du, stderr); if ((opt & 2) != 0) borrowed_Z = make_borrowed_Z(dset->v, dset->n); else borrowed_Z = dou...
int allocate_Z(DATASET *dset, gretlopt opt) { int i, t; int err = 0; if (dset->Z != NULL) { fprintf(stderr, "*** error: allocate_Z called with non-NULL Z\n"); } if (opt & OPT_B) { dset->Z = make_borrowed_Z(dset->v, dset->n); } else { dset->Z = doubles_array_new(dset->v, dset->n); } if (ds...
allocate_Z
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_data_finders(panelmod_t *pan, int bign) { int s; if (pan->small2big) return 0; pan->small2big = (int *)malloc(4LL * pan->NT); pan->big2small = (int *)malloc(4LL * bign); if (!pan->small2big || !pan->big2small) return 12; for (s = 0; s < bign; ++s) pan->big2small[s] = -1; return 0...
static int allocate_data_finders(panelmod_t *pan, int bign) { int s; if (pan->small2big != NULL) { return 0; } pan->small2big = malloc(pan->NT * sizeof *pan->small2big); pan->big2small = malloc(bign * sizeof *pan->big2small); if (pan->small2big == NULL || pan->big2small == NULL) { return E_ALLOC...
allocate_data_finders
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_each_strings(LOOPSET *loop, int n) { loop->eachstrs = strings_array_new(n); if (loop->eachstrs) return 0; else return 12; }
static int allocate_each_strings(LOOPSET *loop, int n) { loop->eachstrs = strings_array_new(n); return (loop->eachstrs == NULL) ? E_ALLOC : 0; }
allocate_each_strings
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_function_args(fncall *call, DATASET *dset) { int i; int ia; int err; ufunc *fun; fn_arg *arg; fn_param *fp; fn_param *fpa; fun = call->fun; err = duplicated_pointer_arg_check(call); for (i = 0; i < call->argc && !err; ++i) { arg = &call->args[i]; fp = &fun->params[i]; if (!...
static int allocate_function_args(fncall *call, DATASET *dset) { ufunc *fun = call->fun; fn_arg *arg; fn_param *fp; int i, err; err = duplicated_pointer_arg_check(call); for (i = 0; i < call->argc && !err; i++) { arg = &call->args[i]; fp = &fun->params[i]; #if UDEBUG fprintf(stderr, "arg[%d],...
allocate_function_args
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_generators(nlspec *s) { int nparam; int i; int err; if ((s->flags & 1) != 0) nparam = s->nparam; else nparam = 0; err = 0; s->ngenrs = nparam + (s->nlfunc != 0) + s->naux; s->genrs = (GENERATOR **)malloc(8LL * s->ngenrs); if (s->genrs) { for (i = 0; i < s->ngenrs; ++i) ...
static int allocate_generators(nlspec *s) { int np = analytic_mode(s) ? s->nparam : 0; int i, nlf = (s->nlfunc != NULL); int err = 0; s->ngenrs = s->naux + nlf + np; s->genrs = malloc(s->ngenrs * sizeof *s->genrs); if (s->genrs == NULL) { s->ngenrs = 0; err = E_ALLOC; } else { for (i = 0; i ...
allocate_generators
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_johansen_extra_matrices(GRETL_VAR *v) { int cols; int v3; JohansenInfo *jinfo; JohansenInfo *v5; JohansenInfo *v6; JohansenInfo *v7; JohansenInfo *v8; JohansenInfo *v9; JohansenInfo *v10; JohansenInfo *v11; int xc; int p0; int p1; int p; if (v->jinfo->R0 && v->jinfo->S00 && v...
static int allocate_johansen_extra_matrices(GRETL_VAR *v) { if (v->jinfo->R0 != NULL && v->jinfo->S00 != NULL && v->jinfo->YY != NULL) { return 0; } else { int xc = v->X == NULL ? 0 : v->X->cols; int p0 = v->neqns; int p1 = p0 + n_restricted_terms(v); int p = p0 + p1; clear_gretl_matrix_err...
allocate_johansen_extra_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_model_arrays(MODEL *pmod, int k, int T) { if (!pmod->sderr) pmod->sderr = (double *)malloc(8LL * k); if (!pmod->yhat) pmod->yhat = (double *)malloc(8LL * T); if (!pmod->uhat) pmod->uhat = (double *)malloc(8LL * T); if (pmod->sderr && pmod->yhat && pmod->uhat) return 0; else re...
static int allocate_model_arrays(MODEL *pmod, int k, int T) { if (pmod->sderr == NULL) { pmod->sderr = malloc(k * sizeof *pmod->sderr); } if (pmod->yhat == NULL) { pmod->yhat = malloc(T * sizeof *pmod->yhat); } if (pmod->uhat == NULL) { pmod->uhat = malloc(T * sizeof *pmod->uhat); } if (pmo...
allocate_model_arrays
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
fn_param *allocate_params(int n) { int i; fn_param *params; params = (fn_param *)malloc(80LL * n); if (!params) return 0; for (i = 0; i < n; ++i) { params[i].name = 0; params[i].type = 0; params[i].descrip = 0; params[i].labels = 0; params[i].nlabels = 0; params[i].flags = 0; ...
static fn_param *allocate_params(int n) { fn_param *params; int i; params = malloc(n * sizeof *params); if (params == NULL) { return NULL; } for (i = 0; i < n; i++) { params[i].name = NULL; params[i].type = 0; params[i].descrip = NULL; params[i].labels = NULL; params[i].nlabels = 0...
allocate_params
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
printval **allocate_printvals(int n, int m) { int i; int j; printval **vals; vals = (printval **)malloc(8LL * n); for (i = 0; i < n && vals; ++i) { vals[i] = (printval *)malloc(56LL * m); if (!vals[i]) { for (j = 0; j < i; ++j) free(vals[j]); free(vals); vals = 0; } } ...
static struct printval **allocate_printvals(int n, int m) { struct printval **vals; int i, j; vals = malloc(n * sizeof *vals); for (i = 0; i < n && vals != NULL; i++) { vals[i] = malloc(m * sizeof **vals); if (vals[i] == NULL) { for (j = 0; j < i; j++) { free(vals[j]); } free...
allocate_printvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
spoints_t *allocate_spoints(DATASET *dset, const int *list) { int i; int n; int v; spoints_t *sv; double *x; n = dset->n; v = *list; sv = (spoints_t *)malloc(0x18u); if (sv) { sv->n_vals = v; sv->n_points = n; sv->points = (spoint_t *)malloc(16LL * n); if (v == 1) sv->val = dset...
static spoints_t *allocate_spoints(DATASET *dset, const int *list) { spoints_t *sv; int n = dset->n; int v = list[0]; sv = malloc(sizeof *sv); if (sv != NULL) { sv->n_vals = v; sv->n_points = n; sv->points = malloc(n * sizeof *sv->points); if (v == 1) { sv->val = dset->Z[list[1]]; ...
allocate_spoints
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int allocate_weight_var(DATASET *dset) { if (dataset_add_series(dset, 1)) return 12; *(_QWORD *)dset->varname[dset->v - 1] = 0x74775F74696E75LL; return 0; }
static int allocate_weight_var(DATASET *dset) { if (dataset_add_series(dset, 1)) { return E_ALLOC; } strcpy(dset->varname[dset->v - 1], "unit_wt"); return 0; }
allocate_weight_var
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *allocate_working_model() { MODEL *model; model = gretl_model_new(); if (model && gretl_model_protect(model)) { gretl_model_free(model); return 0; } return model; }
MODEL *allocate_working_model(void) { MODEL *model = gretl_model_new(); if (model != NULL) { int err = gretl_model_protect(model); if (err) { gretl_model_free(model); model = NULL; } } return model; }
allocate_working_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void allow_full_data_access(int s) { allow_full_data = s != 0; }
void allow_full_data_access(int s) { allow_full_data = (s != 0); }
allow_full_data_access
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alpha_restricted_VECM(const GRETL_VAR *vecm) { return vecm->jinfo && vecm->jinfo->Ra; }
int alpha_restricted_VECM(const GRETL_VAR *vecm) { if (vecm->jinfo != NULL && vecm->jinfo->Ra != NULL) { return 1; } return 0; }
alpha_restricted_VECM
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int already_selected(double *a, int n, double val, int offset) { int i; for (i = 0; i < n; ++i) { if (offset <= 0) { if (a[i] == val) return 1; } else if (a[i] == val - (double)offset) { return 1; } } return 0; }
static int already_selected(double *a, int n, double val, int offset) { int i; for (i = 0; i < n; i++) { if (offset > 0) { if (a[i] == val - offset) { return 1; } } else if (a[i] == val) { return 1; } } return 0; }
already_selected
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *alt_VECM_get_EC_matrix(const GRETL_VAR *vecm, const DATASET *dset, int *err) { int rank; int v5; int v6; int v7; int s; int t; int i; int ia; int ib; int j; int k; int r; double xti; double xtia; double xtib; double xj; gretl_matrix *B...
static gretl_matrix *alt_VECM_get_EC_matrix(const GRETL_VAR *vecm, const DATASET *dset, int *err) { const gretl_matrix *B = vecm->jinfo->Beta; int r = jrank(vecm); gretl_matrix *EC = NULL; double xti, xj; int s, t, T; int i, j, k; if (dset == NULL || dset->Z ==...
alt_VECM_get_EC_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_compute_ubPub(panelmod_t *pan, MODEL *bmod) { int i; int t; int Ti; t = 0; pan->ubPub = 0.0; for (i = 0; i < pan->nunits; ++i) { Ti = pan->unit_obs[i]; if (Ti > 0) { pan->ubPub = bmod->uhat[t] * ((double)Ti * bmod->uhat[t]) + pan->ubPub; ++t; } } return 0; }
static int alt_compute_ubPub(panelmod_t *pan, MODEL *bmod) { int i, Ti, t = 0; pan->ubPub = 0.0; for (i = 0; i < pan->nunits; i++) { Ti = pan->unit_obs[i]; if (Ti > 0) { pan->ubPub += Ti * bmod->uhat[t] * bmod->uhat[t]; t++; } } return 0; }
alt_compute_ubPub
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void alt_print_arch_terms(const MODEL *pmod, PRN *prn) { int i; int order; double *a; double *se; model_coeff mc; unsigned long v7; v7 = __readfsqword(0x28u); a = (double *)gretl_model_get_data(pmod, "arch_coeff"); se = (double *)gretl_model_get_data(pmod, "arch_sderr"); order = gretl_model_get_int...
static void alt_print_arch_terms(const MODEL *pmod, PRN *prn) { double *a = gretl_model_get_data(pmod, "arch_coeff"); double *se = gretl_model_get_data(pmod, "arch_sderr"); int order = gretl_model_get_int(pmod, "arch_order"); if (a != NULL && se != NULL && order > 0) { model_coeff mc; int i; gretl...
alt_print_arch_terms
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_print_aux_coeffs(const double *b, const double *se, const char **names, int nc, int df_0, int ci, PRN *prn) { int i; int ia; double sei; model_coeff mc; unsigned long v16; v16 = __readfsqword(0x28u); for (i = 0; i < nc; ++i) { if (fabs(b[i]) > 1.797693134862316e308) ...
static int alt_print_aux_coeffs(const double *b, const double *se, const char **names, int nc, int df, int ci, PRN *prn) { model_coeff mc; int i; for (i = 0; i < nc; i++) { if (na(b[i])) { return E_NAN; } } alt_print_coeff_table_s...
alt_print_aux_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void alt_print_coeff(const model_coeff *mc, PRN *prn) { if (rtf_format(prn)) { rtf_print_coeff(mc, prn); } else if (tex_format(prn)) { tex_print_coeff(mc, prn); } else if (csv_format(prn)) { csv_print_coeff(mc, prn); } }
static void alt_print_coeff(const model_coeff *mc, PRN *prn) { if (rtf_format(prn)) { rtf_print_coeff(mc, prn); } else if (tex_format(prn)) { tex_print_coeff(mc, prn); } else if (csv_format(prn)) { csv_print_coeff(mc, prn); } }
alt_print_coeff
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_print_coeff_table_start(const MODEL *pmod, int ci, PRN *prn) { const char *v3; const char *v4; _BOOL4 v5; _BOOL4 v6; int v7; char *v8; char *v9; char *v10; char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v19; char *v20; char *v2...
static int alt_print_coeff_table_start(const MODEL *pmod, int ci, PRN *prn) { const char *tlabel; int use_param = 0; int slopes = 0; int intervals = 0; int seqcols = 0; int mp = 0, ret = 0; if (model_use_zscore(pmod)) { tlabel = (tex_format(prn)) ? N_("$z$") : N_("z"); } else { tlabel = (tex_fo...
alt_print_coeff_table_start
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_print_coefficients(const MODEL *pmod, const DATASET *dset, PRN *prn) { const char *depvar_name; int seppos; int adfnum; int nc; int gotnan; int i; int err; int cols; char *sepstr; gretl_matrix *intervals; model_coeff mc; unsigned long v16; v16 = __readfsqword(0x28u); intervals = 0; ...
static int alt_print_coefficients(const MODEL *pmod, const DATASET *dset, PRN *prn) { gretl_matrix *intervals = NULL; char *sepstr = NULL; int seppos = -1; model_coeff mc; int adfnum = -1; int nc = pmod->ncoeff; int cols, gotnan = 0; int i, err = 0; if (gretl_model_g...
alt_print_coefficients
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void alt_print_count_offset(const MODEL *pmod, const DATASET *dset, PRN *prn) { int offvar; char name[32]; char tmp[56]; unsigned long v7; v7 = __readfsqword(0x28u); offvar = gretl_model_get_int(pmod, "offset_var"); if (offvar > 0) { sprintf(name, "log(%s)", dset->varname[offvar]); if (plain_form...
static void alt_print_count_offset(const MODEL *pmod, const DATASET *dset, PRN *prn) { int offvar = gretl_model_get_int(pmod, "offset_var"); if (offvar > 0) { char name[24]; sprintf(name, "log(%s)", dset->varname[offvar]); if (plain_format(prn)) { pprintf(prn,...
alt_print_count_offset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void alt_print_rho_terms(const MODEL *pmod, PRN *prn) { int i; int dfd; double xx; xx = 0.0; if (pmod->arinfo && pmod->arinfo->arlist && pmod->arinfo->rho && pmod->arinfo->sderr) { if (*pmod->arinfo->arlist <= 1) dfd = pmod->dfd; else dfd = pmod->dfd + pmod->ncoeff - *pmod->arinfo->...
static void alt_print_rho_terms(const MODEL *pmod, PRN *prn) { double xx = 0.0; int i, dfd; if (pmod->arinfo == NULL || pmod->arinfo->arlist == NULL || pmod->arinfo->rho == NULL || pmod->arinfo->sderr == NULL) { return; } if (pmod->arinfo->arlist[0] > 1) { dfd = pmod->dfd + (pmod->ncoeff - pmo...
alt_print_rho_terms
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_qform(const gretl_matrix *A, GretlMatrixMod amod, const gretl_matrix *X, gretl_matrix *C, GretlMatrixMod cmod, int r) { gretl_matrix *Tmp; Tmp = gretl_matrix_alloc(r, X->cols); if (!Tmp) return 12; if (amod == GRETL_MOD_TRANSPOSE) { gretl_matrix_multiply_mod(A, GRETL_MOD_TRANSPOSE...
static int alt_qform(const gretl_matrix *A, GretlMatrixMod amod, const gretl_matrix *X, gretl_matrix *C, GretlMatrixMod cmod, int r) { gretl_matrix *Tmp; Tmp = gretl_matrix_alloc(r, X->cols); if (Tmp == NULL) { return E_ALLOC; } if (amod == GRETL_MOD_TRANSPOSE) ...
alt_qform
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_set_strvals(DATASET *dset, int v, gretl_array *a, char ***pU, int *pnu) { int pos; int ns; int nu; int i; int err; char **U; double *x; char **S; unsigned long v16; v16 = __readfsqword(0x28u); U = 0; x = dset->Z[v]; nu = 0; err = 0; S = gretl_array_get_strings(...
static int alt_set_strvals(DATASET *dset, int v, gretl_array *a, char ***pU, int *pnu) { char **S, **U = NULL; double *x = dset->Z[v]; int i, pos, ns, nu = 0; int err = 0; S = gretl_array_get_strings(a, &ns); for (i = 0; i < ns && !err; i++) { err = strings_array_add_uniq(&U...
alt_set_strvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int alt_strvals_case(DATASET *dset, int v, gretl_array *a) { int i; double *x; x = dset->Z[v]; if (gretl_array_get_length(a) != dset->n) return 0; for (i = 0; i < dset->n; ++i) { if (x[i] != 0.0) return 0; } return 1; }
static int alt_strvals_case(DATASET *dset, int v, gretl_array *a) { double *x = dset->Z[v]; int i; if (gretl_array_get_length(a) != dset->n) { return 0; } for (i = 0; i < dset->n; i++) { if (x[i] != 0) { return 0; } } return 1; }
alt_strvals_case
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void alternate_stats_message(int i, PRN *prn) { char *v2; char *v3; char *v4; char *v5; const char *msg[4]; unsigned long v7; v7 = __readfsqword(0x28u); msg[0] = "Statistics based on the original data"; msg[1] = "Statistics based on the weighted data"; msg[2] = "Statistics based on the rho-differen...
static void alternate_stats_message(int i, PRN *prn) { const char *msg[] = {N_("Statistics based on the original data"), N_("Statistics based on the weighted data"), N_("Statistics based on the rho-differenced data"), N_("Statistics based on the tra...
alternate_stats_message
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double altrho(int order, int t1, int t2, const double *uhat) { double v5; int t; int n; int len; double *ut; double *u1; double rho; double uht; len = t2 - (order + t1) + 1; ut = (double *)malloc(16LL * len); if (!ut) return NAN; u1 = &ut[len]; n = 0; for (t = t1 + order; t <= t2; ++t) ...
static double altrho(int order, int t1, int t2, const double *uhat) { int t, n, len = t2 - (t1 + order) + 1; double *ut, *u1; double uht, uh1, rho; ut = malloc(2 * len * sizeof *ut); if (ut == NULL) { return NADBL; } u1 = ut + len; n = 0; for (t = t1 + order; t <= t2; t++) { uht = uhat[t]; ...
altrho
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int analyse_daily_import(const DATASET *dset, PRN *prn) { const char *v2; int all_weekends_blank; int blank_weekends; int blank_weekdays; int n_weekdays; int n_weekend_days; int sat0; int sun0; int i; int t; int ta; int all_missing; int weekend; int ret; int pd; int wkday; double missp...
int analyse_daily_import(const DATASET *dset, PRN *prn) { int all_weekends_blank = 0; int blank_weekends = 0; int blank_weekdays = 0; int n_weekdays = 0; int n_weekend_days = 0; int sat0 = -1, sun0 = -1; int i, t, pd = dset->pd; int all_missing, weekend; int ret = 0; if (pd > 5) { char datestr[...
analyse_daily_import
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int anderson_moore_smooth(kalman *K) { int t; int err; gretl_matrix *u; gretl_matrix *u1; gretl_matrix *U; gretl_matrix *U1; gretl_matrix *StT; gretl_matrix *PtT; gretl_matrix *L; gretl_matrix_block *B; unsigned long v12; v12 = __readfsqword(0x28u); L = K->Tmprr; err = 0; B = gretl_matrix...
static int anderson_moore_smooth(kalman *K) { gretl_matrix_block *B; gretl_matrix *L = K->Tmprr; gretl_matrix *u, *u1, *U, *U1; gretl_matrix *StT, *PtT; int t, err = 0; B = gretl_matrix_block_new(&StT, K->r, 1, &PtT, K->r, K->r, &u, K->r, 1, &u1, K->r, 1, &U, K->r, K->r, &U1, K...
anderson_moore_smooth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int annual_or_decennial_dates(const DATASET *dset, int pd, double sd0, int T, double *x) { int t; int yr; yr = (int)sd0; for (t = 0; t < T; ++t) { x[t] = (double)(10000 * yr + 101); yr += pd; } return 0; }
static int annual_or_decennial_dates(const DATASET *dset, int pd, double sd0, int T, double *x) { int t, yr = (int)sd0; for (t = 0; t < T; t++) { x[t] = 10000 * yr + 101; yr += pd; } return 0; }
annual_or_decennial_dates
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int anova(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int (*gretl_anova)(const int *, const DATASET *, gretlopt, PRN *); gretl_anova = (int (*)(const int *, const DATASET *, gretlopt, PRN *))get_plugin_function("gretl_anova"); if (gretl_anova) return gretl_anova(l...
int anova(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { int (*gretl_anova)(const int *, const DATASET *, gretlopt, PRN *); gretl_anova = get_plugin_function("gretl_anova"); if (gretl_anova == NULL) { return 1; } return (*gretl_anova)(list, dset, opt, prn); }
anova
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int any_missing_user_values(const DATASET *dset) { int i; int t; if (!dset->n) return 0; for (i = 1; i < dset->v; ++i) { if (!series_is_hidden(dset, i)) { for (t = dset->t1; t <= dset->t2; ++t) { if (fabs(dset->Z[i][t]) > 1.797693134862316e308) return 1; } } } retu...
int any_missing_user_values(const DATASET *dset) { int i, t; if (dset->n == 0) { return 0; } for (i = 1; i < dset->v; i++) { if (!series_is_hidden(dset, i)) { for (t = dset->t1; t <= dset->t2; t++) { if (na(dset->Z[i][t])) { return 1; } } } } return 0; }
any_missing_user_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int any_smallstep_terms(midas_info *mi) { int i; midas_term *mt; for (i = 0; i < mi->nmidas; ++i) { mt = &mi->mterms[i]; if (mt->type == 1 || mt->type == 2 || mt->type == 3) return 1; } return 0; }
static int any_smallstep_terms(midas_info *mi) { midas_term *mt; int i; for (i = 0; i < mi->nmidas; i++) { mt = &mi->mterms[i]; if (mt->type == MIDAS_NEALMON || mt->type == MIDAS_BETA0 || mt->type == MIDAS_BETAN) { return 1; } } return 0; }
any_smallstep_terms
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int any_tests(const MODEL *pmod) { if (pmod->ntests > 0) return 1; return pmod->ci == 134 && gretl_model_get_int(pmod, "stage1-dfn"); }
static int any_tests(const MODEL *pmod) { if (pmod->ntests > 0) { return 1; } if (pmod->ci == IVREG && gretl_model_get_int(pmod, "stage1-dfn")) { return 1; } return 0; }
any_tests
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int append_db_data_with_replacement(const char *idxname, const char *binname, int *list, const DATASET *dset) { int oldv; int nobs; int i; int j; int nrep; int err; int v; char **oldnames; FILE *fidx; FILE *fbin; int *newlist; FILE *fq; long offset; char *...
static int append_db_data_with_replacement(const char *idxname, const char *binname, int *list, const DATASET *dset) { FILE *fidx = NULL, *fbin = NULL; char **oldnames = NULL; char *mask = NULL; int *newlist = NULL; int i, j...
append_db_data_with_replacement
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void append_gp_encoding(char *s) { strcpy(&s[strlen(s)], "\nset encoding utf8"); }
static void append_gp_encoding(char *s) { strcat(s, "\nset encoding utf8"); }
append_gp_encoding
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void append_pname(char *s, const char *pname) { char c; if (*s) { c = s[strlen(s) - 1]; if (c != 32 && c != 34) *(_WORD *)&s[strlen(s)] = 32; } strcat(s, pname); }
static void append_pname(char *s, const char *pname) { if (*s != '\0') { char c = s[strlen(s) - 1]; if (c != ' ' && c != '"') { strcat(s, " "); } } strcat(s, pname); }
append_pname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int apply_cmatrix_cfunc(gretl_matrix *targ, const gretl_matrix *src, complex_double (*cfunc)(complex_double)) { complex_double *v4; complex_double *v5; double imag; int *v7; int i; int err; int n; n = src->cols * src->rows; err = 0; if (!cmatrix_validate(src, 0) || !cmatrix_...
int apply_cmatrix_cfunc(gretl_matrix *targ, const gretl_matrix *src, double complex (*cfunc)(double complex)) { int n = src->cols * src->rows; int i, err = 0; if (!cmatrix_validate(src, 0) || !cmatrix_validate(targ, 0)) { return E_INVARG; } errno = 0; for (i = 0; i < n; i++) {...
apply_cmatrix_cfunc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int apply_cmatrix_dfunc(gretl_matrix *targ, const gretl_matrix *src, double (*dfunc)(complex_double)) { complex_double *v4; double *v5; int *v6; int i; int err; int n; n = src->cols * src->rows; err = 0; if (!cmatrix_validate(src, 0) || targ->is_complex) return 17; *__er...
int apply_cmatrix_dfunc(gretl_matrix *targ, const gretl_matrix *src, double (*dfunc)(double complex)) { int n = src->cols * src->rows; int i, err = 0; if (!cmatrix_validate(src, 0) || targ->is_complex) { return E_INVARG; } errno = 0; for (i = 0; i < n; i++) { targ->val[i] ...
apply_cmatrix_dfunc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int apply_cmatrix_unary_op(gretl_matrix *targ, const gretl_matrix *src, int op) { complex_double *v4; double real; double imag; complex_double *v7; complex_double *v8; complex_double *v9; double v10; complex_double *v11; long v12; complex_double *v13; int i; int err; ...
int apply_cmatrix_unary_op(gretl_matrix *targ, const gretl_matrix *src, int op) { int i, n = src->cols * src->rows; int err = 0; if (!cmatrix_validate(src, 0) || !cmatrix_validate(targ, 0)) { return E_INVARG; } for (i = 0; i < n && !err; i++) { if (op == 1) { targ->...
apply_cmatrix_unary_op
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *apply_list_func(NODE *n, NODE *r, int f, parser *p) { int v5; int v6; gretlopt opt; int *list; double parm; NODE *ret; unsigned long v13; v13 = __readfsqword(0x28u); ret = aux_list_node(p); if (f != 273 && f != 295 && f != 296 && f != 297 && f != 491 && f != 301 && f != 586 && f != 493 ...
static NODE *apply_list_func(NODE *n, NODE *r, int f, parser *p) { NODE *ret = aux_list_node(p); if (!ok_list_func(f)) { p->err = E_TYPES; return ret; } if (ret != NULL && starting(p)) { int *list = node_get_list(n, p); gretlopt opt = OPT_NONE; double parm = NADBL; int t = 0; if (...
apply_list_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *apply_matrix_func(NODE *t, NODE *f, parser *p) { int v4; double *v5; double *v6; int ret_complex; int i; int i_0; int i_0a; int n_0; int n; complex_double (*cfunc)(complex_double); const gretl_matrix *m; NODE *ret; char *dfunc; m = t->v.m; ret_complex = m->is_complex; if (ret_comp...
static NODE *apply_matrix_func(NODE *t, NODE *f, parser *p) { const gretl_matrix *m = t->v.m; int ret_complex = m->is_complex; NODE *ret; if (m->is_complex && cmplx_to_double(f->t)) { ret_complex = 0; } ret = aux_sized_matrix_node(p, m->rows, m->cols, ret_complex); if (ret == NULL) { return ret;...
apply_matrix_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *apply_ovwrite_func(gretl_matrix *m, int f, int parm, int tmpmat, int *err) { char *v5; int v7; int v8; gretl_matrix *R; if (f == 322 && m && m->rows && m->cols && !gretl_matrix_is_symmetric(m)) { v5 = gettext("Matrix is not symmetric"); gretl_errmsg_set(...
static gretl_matrix *apply_ovwrite_func(gretl_matrix *m, int f, int parm, int tmpmat, int *err) { gretl_matrix *R = NULL; if (f == F_CHOL && !gretl_is_null_matrix(m) && !gretl_matrix_is_symmetric(m)) { gretl_errmsg_set(_("Matrix is not symmetric")); *err = E_DA...
apply_ovwrite_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int apply_reference_missmask(MODEL *pmod) { if (refmask) { pmod->missmask = refmask; refmask = 0; } return 0; }
int apply_reference_missmask(MODEL *pmod) { if (refmask != NULL) { #if MASKDEBUG fprintf(stderr, "applying reference mask to model = %p\n", (void *)pmod); #endif pmod->missmask = refmask; refmask = NULL; } return 0; }
apply_reference_missmask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *apply_scalar_func(NODE *n, NODE *f, parser *p) { double v3; NODE *ret; char *dfunc; ret = get_aux_node(p, 54, 0, 0); if (ret) { dfunc = f->v.str; if (dfunc) v3 = ((double (*)(double))dfunc)(n->v.xval); else v3 = real_apply_func(n->v.xval, f->t, p); ret->v.xval = v3; } re...
static NODE *apply_scalar_func(NODE *n, NODE *f, parser *p) { NODE *ret = aux_scalar_node(p); if (ret != NULL) { double (*dfunc)(double) = f->v.ptr; if (dfunc != NULL) { ret->v.xval = dfunc(n->v.xval); } else { ret->v.xval = real_apply_func(n->v.xval, f->t, p); } } return ret; }
apply_scalar_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *apply_series_func(NODE *n, NODE *f, parser *p) { double *v3; double *v4; double *v5; int t; int ta; const double *x; NODE *ret; char *dfunc; ret = aux_series_node(p); if (ret) { dfunc = f->v.str; if (n->t == 55) x = n->v.xvec; else x = get_colvec_as_series(n, f->t, p);...
static NODE *apply_series_func(NODE *n, NODE *f, parser *p) { NODE *ret = aux_series_node(p); int t; if (ret != NULL) { double (*dfunc)(double) = f->v.ptr; const double *x; if (n->t == SERIES) { x = n->v.xvec; } else { x = get_colvec_as_series(n, f->t, p); } if (!p->err) { ...
apply_series_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *ar1_lsq(MODEL *__return_ptr retstr, const int *list, DATASET *dset, GretlCmdIndex ci, gretlopt opt, double rho) { gretlopt v6; gretlopt v7; gretlopt v8; unsigned int v9; char *v10; int v11; gretlopt v12; gretlopt opta; int effobs; int misst; int nullmod; int ldv; int save...
static MODEL ar1_lsq(const int *list, DATASET *dset, GretlCmdIndex ci, gretlopt opt, double rho) { MODEL mdl; int effobs = 0; int missv = 0, misst = 0; int pwe = (opt & OPT_P); int nullmod = 0, ldv = 0; int save_hc = -1; int yno, i; gretl_model_init(&mdl, dset); if (list == NULL...
ar1_lsq
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *ar1_model(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { int err; double rho; MODEL mdl; unsigned long v11; v11 = __readfsqword(0x28u); err = 0; rho = estimate_rho(list, dset, opt, prn, &err); if (err) { gretl_model_init(&mdl, 0); m...
MODEL ar1_model(const int *list, DATASET *dset, gretlopt opt, PRN *prn) { MODEL mdl; double rho; int err = 0; rho = estimate_rho(list, dset, opt, prn, &err); if (err) { gretl_model_init(&mdl, NULL); mdl.errcode = err; return mdl; } else { return ar1_lsq(list, dset, AR1, opt, rho); } }
ar1_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ar_coeff_integrate(double *c0, int d, int D, int s, int pmax) { int i; int ia; int j; int ja; int jb; int jc; int jd; int pp; int pstar; double *c1; pstar = d + pmax + D * s; c1 = (double *)malloc(8LL * (pstar + 1)); if (!c1) return 12; for (j = 0; j <= pstar; ++j) c1[j] = 0.0; ...
static int ar_coeff_integrate(double *c0, int d, int D, int s, int pmax) { int pstar = pmax + d + s * D; double *c1; int i, j, pp; c1 = malloc((pstar + 1) * sizeof *c1); if (c1 == NULL) { return E_ALLOC; } for (j = 0; j <= pstar; j++) { c1[j] = 0.0; } pp = pmax; for (i = 0; D > 0 && i < ...
ar_coeff_integrate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ar_fcast(Forecast *fc, MODEL *pmod, const DATASET *dset) { int v3; double sigma; int miss; int i; int ia; int k; int ka; int t; int pmax; int npsi; int yno; int p; int pwe; int v; int dvlag; int tk; double *phi; double *psi; double *errphi; double xval; double yh; double ...
static int ar_fcast(Forecast *fc, MODEL *pmod, const DATASET *dset) { const int *arlist; double *phi = NULL; double *psi = NULL; double *errphi = NULL; double *rho; double xval, yh, vl; double ylag, xlag; int miss, yno; int i, k, v, t, tk; int p, dvlag, pmax = 0; int pwe, npsi = 0; int err = 0; ...
ar_fcast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ar_list_max(const int *list) { int i; int lmax; lmax = 0; for (i = 1; i <= *list; ++i) { if (lmax < list[i]) lmax = list[i]; } return lmax; }
static int ar_list_max(const int *list) { int i, lmax = 0; for (i = 1; i <= list[0]; i++) { if (list[i] > lmax) { lmax = list[i]; } } return lmax; }
ar_list_max
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0