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
const char *model_var_name(int i) { return mvars[i].str; }
const char *model_var_name(int i) { return mvars[i].str; }
model_var_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *model_var_node(NODE *t, NODE *k, parser *p) { double scalar; int *list; char *string; char *v7; char *matrix; char *array; int needs_data; int idx; GretlType vtype; NODE *ret; const char *oname; unsigned long v16; v16 = __readfsqword(0x28u); ret = 0; if ((p->flags & 2) == 0) ret...
static NODE *model_var_node(NODE *t, NODE *k, parser *p) { NODE *ret = NULL; if (starting(p)) { const char *oname = NULL; int idx, needs_data = 0; GretlType vtype; if (t->t == DBUNDLE) { oname = t->vname; idx = mvar_lookup(k->v.str); if (idx == 0) { p->err = E_DATA; ...
model_var_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const int *model_xlist(MODEL *pmod) { int *xlist; xlist = gretl_model_get_list(pmod, "xlist"); if (!xlist) { xlist = gretl_model_get_x_list(pmod); if (xlist) gretl_model_set_list_as_data(pmod, "xlist", xlist); } return xlist; }
static const int *model_xlist(MODEL *pmod) { int *xlist = gretl_model_get_list(pmod, "xlist"); if (xlist == NULL) { xlist = gretl_model_get_x_list(pmod); if (xlist != NULL) { gretl_model_set_list_as_data(pmod, "xlist", xlist); } } return xlist; }
model_xlist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int modelvar_iszero(const MODEL *pmod, const double *x) { int t; for (t = pmod->t1; t <= pmod->t2; ++t) { if (!model_missing(pmod, t) && fabs(x[t]) > 2.220446049250313e-16) return 0; } return 1; }
static int modelvar_iszero(const MODEL *pmod, const double *x) { int t; for (t = pmod->t1; t <= pmod->t2; t++) { if (!model_missing(pmod, t) && floatneq(x[t], 0.0)) { return 0; } } return 1; }
modelvar_iszero
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int modify_dataset(DATASET *dset, int op, const int *list, const char *param, gretlopt opt, PRN *prn) { char *v7; char *v8; char *v9; char *v10; const char *parama; const int *lista; gretlopt opta; int opa; DATASET *dseta; int err; int k; unsigned long v19; dseta = dset; ...
int modify_dataset(DATASET *dset, int op, const int *list, const char *param, gretlopt opt, PRN *prn) { static int resampled; int k = 0, err = 0; if (dset == NULL || dset->Z == NULL) { return E_NODATA; } #if 0 fprintf(stderr, "modify_dataset: op=%d, param='%s'\n", op, param); pr...
modify_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int month_day_index(int y, int m, int d, int wkdays) { int v4; int ret; int i; int idx; ret = 0; if (wkdays == 7) return d; idx = day_of_week_from_ymd(y, m, 1, 0); for (i = 1; i <= d; ++i) { if (wkdays == 6 && idx || wkdays == 5 && idx && idx != 6) ++ret; if (idx == 6) v4 = 0; ...
int month_day_index(int y, int m, int d, int wkdays) { int ret = 0; if (wkdays == 7) { ret = d; } else { int i, idx = day_of_week_from_ymd(y, m, 1, 0); for (i = 1; i <= d; i++) { if (day_in_calendar(wkdays, idx)) { ret++; } idx = (idx == 6) ? 0 : idx + 1; } } retur...
month_day_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int month_number(char *s) { int i; const char *mo[12]; unsigned long v4; v4 = __readfsqword(0x28u); mo[0] = "jan"; mo[1] = "feb"; mo[2] = "mar"; mo[3] = "apr"; mo[4] = "may"; mo[5] = "jun"; mo[6] = "jul"; mo[7] = "aug"; mo[8] = "sep"; mo[9] = "oct"; mo[10] = "nov"; mo[11] = "dec"; gre...
static int month_number(char *s) { const char *mo[] = {"jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"}; int i; gretl_lower(s); for (i = 0; i < 12; i++) { if (!strcmp(s, mo[i])) { return i + 1; } } return 0; }
month_number
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int monthly_or_quarterly_dates(const DATASET *dset, int pd, double sd0, int T, double *x) { int mo; int yr; int t; int mmax; int dm; char obstr[8]; unsigned long v15; v15 = __readfsqword(0x28u); yr = (int)floor(sd0); if (pd == 4) { sprintf(obstr, "%.1f", sd0 - (do...
static int monthly_or_quarterly_dates(const DATASET *dset, int pd, double sd0, int T, double *x) { char obstr[8]; int mo, yr = floor(sd0); int t, mmax, dm; if (pd == 4) { sprintf(obstr, "%.1f", sd0 - yr); mo = 1 + (atoi(obstr + 2) - 1) * 3; mmax = 10; dm = ...
monthly_or_quarterly_dates
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int more_input(const char *s) { while (*s) { if (((*__ctype_b_loc())[*(unsigned char *)s] & 0x2000) == 0) return 1; ++s; } return 0; }
static int more_input(const char *s) { while (*s) { if (!isspace((unsigned char)*s)) { return 1; } s++; } return 0; }
more_input
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int more_lines(const GPT_SPEC *spec, int i, int skipline) { int j; if (i == spec->n_lines - 1) return 0; for (j = i + 1; j < spec->n_lines; ++j) { if (j != skipline && !blank_user_line(&spec->lines[j])) return 1; } return 0; }
static int more_lines(const GPT_SPEC *spec, int i, int skipline) { if (i == spec->n_lines - 1) { return 0; } else { int j; for (j = i + 1; j < spec->n_lines; j++) { if (j != skipline && !blank_user_line(&spec->lines[j])) { return 1; } } return 0; } }
more_lines
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int movavg_series(const double *x, double *y, const DATASET *dset, int k, int center) { int v6; double v7; int t1; int t2; int k1_0; int k2_0; int i; int s; int t; int T; double xs; double msum; unsigned long v21; v21 = __readfsqword(0x28u); t1 = dset->t1; t2 = dset->t...
int movavg_series(const double *x, double *y, const DATASET *dset, int k, int center) { int t1 = dset->t1; int t2 = dset->t2; int k1 = k - 1, k2 = 0; int i, s, t, T; T = series_goodobs(x, &t1, &t2); T = t2 - t1 + 1; if (T < k) { return E_TOOFEW; } if (center) { k1 = k / 2;...
movavg_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mp_butterworth(const double *x, double *bw, int T, int order, double cutoff) { int (*mpfun)(const double *, double *, int, int, double); mpfun = (int (*)(const double *, double *, int, int, double))get_plugin_function("mp_bw_filter"); if (mpfun) return mpfun(x, bw, T...
static int mp_butterworth(const double *x, double *bw, int T, int order, double cutoff) { int (*mpfun)(const double *, double *, int, int, double); mpfun = get_plugin_function("mp_bw_filter"); if (mpfun == NULL) { return E_FOPEN; } return (*mpfun)(x, bw, T, order, cutoff); }
mp_butterworth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *mp_ols(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt) { int *base; int *poly; int (*mplsq)(const int *, const int *, const int *, DATASET *, MODEL *, gretlopt); MODEL mpmod; unsigned long v11; v11 = __readfsqword(0x28u); gretl_model_init(&mpm...
MODEL mp_ols(const int *list, DATASET *dset, gretlopt opt) { int (*mplsq)(const int *, const int *, const int *, DATASET *, MODEL *, gretlopt); MODEL mpmod; gretl_model_init(&mpmod, dset); mplsq = get_plugin_function("mplsq"); if (mplsq == NULL) { mpmod.errcode = 1; return mpmod; } ...
mp_ols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *mpi_barrier_node(parser *p) { char *v1; v1 = gettext("MPI is not supported in this gretl build"); gretl_errmsg_set(v1); p->err = 1; return 0; }
static NODE *mpi_barrier_node(parser *p) { gretl_errmsg_set(_("MPI is not supported in this gretl build")); p->err = 1; return NULL; }
mpi_barrier_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *mpi_transfer_node(NODE *l, NODE *r, NODE *r2, int f, parser *p) { char *v5; v5 = gettext("MPI is not supported in this gretl build"); gretl_errmsg_set(v5); p->err = 1; return 0; }
static NODE *mpi_transfer_node(NODE *l, NODE *r, NODE *r2, int f, parser *p) { gretl_errmsg_set(_("MPI is not supported in this gretl build")); p->err = 1; return NULL; }
mpi_transfer_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *mshape_scalar(double x, int r, int c, int *err) { int i; gretl_matrix *m; m = gretl_matrix_alloc(r, c); if (m) { for (i = 0; i < c * r; ++i) m->val[i] = x; } else { *err = 12; } return m; }
static gretl_matrix *mshape_scalar(double x, int r, int c, int *err) { gretl_matrix *m = gretl_matrix_alloc(r, c); if (m == NULL) { *err = E_ALLOC; } else { int i, n = r * c; for (i = 0; i < n; i++) { m->val[i] = x; } } return m; }
mshape_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mspec_get_array_index(matrix_subspec *spec, int *err) { int idx; idx = 0; if (spec->ltype == SEL_SINGLE) return spec->lsel.range[0]; if (spec->ltype == SEL_RANGE && spec->rtype == SEL_NULL && spec->lsel.range[0] == spec->lsel.range[1]) return spec->lsel.range[0]; gretl_errmsg_set("Invalid l...
static int mspec_get_array_index(matrix_subspec *spec, int *err) { int idx = 0; if (spec->ltype == SEL_SINGLE) { idx = spec->lsel.range[0]; } else if (spec->ltype == SEL_RANGE && spec->rtype == SEL_NULL && spec->lsel.range[0] == spec->lsel.range[1]) { idx = spec->lsel.range[0]; } else { ...
mspec_get_array_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mspec_get_series_index(matrix_subspec *s, parser *p) { int t; gchar *tmp; t = -1; if (s->ltype == SEL_SINGLE) { t = s->lsel.range[0]; } else if (s->ltype == SEL_RANGE && s->rtype == SEL_NULL) { if (s->lsel.range[0] == s->lsel.range[1]) { t = s->lsel.range[0]; } else { tmp = ...
static int mspec_get_series_index(matrix_subspec *s, parser *p) { int t = -1; if (s->ltype == SEL_SINGLE) { t = s->lsel.range[0]; } else if (s->ltype == SEL_RANGE && s->rtype == SEL_NULL) { if (s->lsel.range[0] == s->lsel.range[1]) { t = s->lsel.range[0]; } else { gchar *tmp; tmp ...
mspec_get_series_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *mspec_get_string(matrix_subspec *spec, int i) { if (!spec || (unsigned int)i >= 2) return 0; if (i) { if (spec->rtype == SEL_STR) return spec->rsel.str; else return 0; } else if (spec->ltype == SEL_STR) { return spec->lsel.str; } else { return 0; } }
const char *mspec_get_string(matrix_subspec *spec, int i) { if (spec == NULL || i < 0 || i > 1) { return NULL; } else if (i == 0) { return spec->ltype != SEL_STR ? NULL : spec->lsel.str; } else { return spec->rtype != SEL_STR ? NULL : spec->rsel.str; } }
mspec_get_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *mspec_make_list(int type, msel *sel, int n, int *err) { char *v5; int rows; char *v7; unsigned int v8; unsigned int v9; char *v10; int v11; unsigned int v12; char *v13; int single_exclude; int i; int ia; int ib; int ns; int sr1; int k; int sr0; int sr0a; int *slice[4]; slic...
int *mspec_make_list(int type, union msel *sel, int n, int *err) { int *slice = NULL; int single_exclude = 0; int i, ns = 0; if (type == SEL_ALL || type == SEL_NULL) { return NULL; } if (type == SEL_MATRIX) { if (sel->m == NULL) { gretl_errmsg_set(_("Range is non-positive!")); *err = E...
mspec_make_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *mspec_node(NODE *l, NODE *r, parser *p) { NODE *ret; ret = get_aux_node(p, 72, 0, 2); if (ret && (p->flags & 2) != 0) build_mspec(ret, l, r, p); return ret; }
static NODE *mspec_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_mspec_node(p); if (ret != NULL && starting(p)) { build_mspec(ret, l, r, p); } return ret; }
mspec_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
guint32 mt_int_range(guint32 begin, guint32 end, int alt) { guint32 rval; guint32 rvala; guint32 maxval; guint32 rem; guint32 dist; dist = end - begin; rval = 0; if (end != begin) { if (dist > 0x80000000) { maxval = dist - 1; } else { rem = 2 * (0x80000000 % dist); if (rem >= ...
static guint32 mt_int_range(guint32 begin, guint32 end, int alt) { guint32 dist = end - begin; guint32 rval = 0; if (dist > 0) { guint32 maxval; if (dist <= 0x80000000u) { guint32 rem = (0x80000000u % dist) * 2; if (rem >= dist) rem -= dist; maxval = 0xffffffffu - rem; }...
mt_int_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void mtab_numstart(char *s, double x, int d7, int minus) { const char *v4; if (x >= 0.0) { *(_WORD *)s = 32; } else { if (minus == 1) { if (d7) v4 = asc_345E63; else v4 = (const char *)&unk_345E68; LABEL_6: strcpy(s, v4); return; } if (minus != 2) { ...
static void mtab_numstart(char *s, double x, int d7, int minus) { if (x < 0) { if (minus == MINUS_UTF) { strcpy(s, (d7) ? " −" : "−"); } else if (minus == MINUS_TEX) { strcpy(s, "$-$"); } else { strcpy(s, (d7) ? " -" : "-"); } } else { strcpy(s, " "); } }
mtab_numstart
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
midas_term *mterms_from_array(gretl_array *A, int *nmidas, int *err) { const char *string; int i; int n; midas_term *mterms; midas_term *mt; gretl_bundle *b; n = gretl_array_get_length(A); mterms = 0; if (n) { mterms = (midas_term *)malloc(136LL * n); if (!mterms) *err = 12; } else { ...
static midas_term *mterms_from_array(gretl_array *A, int *nmidas, int *err) { int n = gretl_array_get_length(A); midas_term *mt, *mterms = NULL; if (n == 0) { *err = E_DATA; } else { mterms = malloc(n * sizeof *mterms); if (mterms == NULL) { *err = E_ALLOC; } } if (mterms != NULL) { ...
mterms_from_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mtherr(char *name, int code) { return real_mtherr(name, code, 0.0, 0, 0); }
int mtherr(char *name, int code) { return real_mtherr(name, code, 0, 0, 0); }
mtherr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mtherr_with_arg(char *name, int code, double arg) { return real_mtherr(name, code, arg, 1, 0); }
int mtherr_with_arg(char *name, int code, double arg) { return real_mtherr(name, code, arg, 1, 0); }
mtherr_with_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *multi_acf(const gretl_matrix *m, const int *list, const DATASET *dset, int p, int *err) { int v6; int nv; int T; int acol; int pcol; int i; int j; double *x; gretl_matrix *A; gretl_matrix *a; if (list || m && m->rows && m->cols) { if (m) nv = m->col...
gretl_matrix *multi_acf(const gretl_matrix *m, const int *list, const DATASET *dset, int p, int *err) { gretl_matrix *a, *A = NULL; const double *x; double xa; int nv, T, acol, pcol; int i, j; if (list == NULL && gretl_is_null_matrix(m)) { *err = E_DATA; return NULL; } ...
multi_acf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multi_eqn_wald_test(const gretl_matrix *b, const gretl_matrix *V, const gretl_matrix *R, const gretl_matrix *q, int dfu, gretlopt opt, PRN *prn) { char *v8; char *v9; char *v10; int err; int Rrows; int dfn; double test; double pval; gretl_matrix *Rbq...
int multi_eqn_wald_test(const gretl_matrix *b, const gretl_matrix *V, const gretl_matrix *R, const gretl_matrix *q, int dfu, gretlopt opt, PRN *prn) { gretl_matrix *Rbq, *RvR; int Rrows, dfn; double test = NADBL; int err = 0; if (R == NULL || q == NULL || b == ...
multi_eqn_wald_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multi_scatters(const int *list, const DATASET *dset, gretlopt opt) { gretlopt v3; int v5; const char *graph_name; long v7; long v8; double v9; double v10; int rows; int cols; int err; GptFlags flags; int xvar; int yvar; int tseries; int use_timefmt; int i; int t; int nplots; in...
int multi_scatters(const int *list, const DATASET *dset, gretlopt opt) { GptFlags flags = 0; int xvar = 0, yvar = 0; const double *x = NULL; const double *y = NULL; const double *obs = NULL; int rows, cols, tseries = 0; int use_timefmt = 0; int *plotlist = NULL; int pos, nplots = 0; FILE *fp = NULL;...
multi_scatters
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *multi_str_node(NODE *l, int f, parser *p) { double v3; gretl_matrix *v4; int v5; int ns; int t; int i; NODE *ret; series_table *st; const char *s; gretl_matrix *m; char **S; unsigned long v16; v16 = __readfsqword(0x28u); ret = 0; if (l->t == 55) { if (is_string_valued(p->dset, l...
static NODE *multi_str_node(NODE *l, int f, parser *p) { NODE *ret = NULL; if (l->t == SERIES) { if (!is_string_valued(p->dset, l->vnum)) { p->err = E_TYPES; } else { ret = aux_series_node(p); } } else if (l->t == ARRAY) { if (gretl_array_get_type(l->v.a) != GRETL_TYPE_STRINGS) { ...
multi_str_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multi_unit_panel_sample(const DATASET *dset) { int ret; ret = 0; if (dset && dset->structure == 2) return dset->t2 - dset->t1 >= dset->pd; return ret; }
int multi_unit_panel_sample(const DATASET *dset) { int ret = 0; if (dataset_is_panel(dset)) { ret = (dset->t2 - dset->t1 + 1) > dset->pd; } return ret; }
multi_unit_panel_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *multi_xcf(const void *px, int xtype, const void *py, int ytype, const DATASET *dset, int p, int *err) { int v7; int v9; int T; int Ty; int nx; int i; int j; int np; const int *xlist; const gretl_matrix *Xmat; double *xvec; const double *yvec; gretl_matrix ...
gretl_matrix *multi_xcf(const void *px, int xtype, const void *py, int ytype, const DATASET *dset, int p, int *err) { const int *xlist = NULL; const gretl_matrix *Xmat = NULL; const double *xvec = NULL; const double *yvec = NULL; gretl_matrix *xj, *XCF = NULL; int T = sample_size(dse...
multi_xcf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *multinomial_logit(MODEL *__return_ptr retstr, int *list, DATASET *dset, gretlopt opt, PRN *prn) { if ((opt & 0x200000) == 0) prn = 0; mnl_model(retstr, list, dset, opt, prn); return retstr; }
MODEL multinomial_logit(int *list, DATASET *dset, gretlopt opt, PRN *prn) { PRN *vprn = (opt & OPT_V) ? prn : NULL; return mnl_model(list, dset, opt, vprn); }
multinomial_logit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multiple_groups(const DATASET *dset, int t1, int t2) { int ret; ret = 0; if (dset && dset->structure == 2) return t2 / dset->pd > t1 / dset->pd; return ret; }
static int multiple_groups(const DATASET *dset, int t1, int t2) { int ret = 0; if (dataset_is_panel(dset)) { ret = (t2 / dset->pd > t1 / dset->pd); } return ret; }
multiple_groups
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multiply_by_F(kalman *K, const gretl_matrix *A, gretl_matrix *B, int postmult) { int i; int ia; int ib; int ic; int id; int ie; int j; int ja; int jb; int jc; int jd; int je; int r1; int r2; int c; int ca; gretl_matrix *topF; gretl_matrix *top; if (gretl_is_z...
static int multiply_by_F(kalman *K, const gretl_matrix *A, gretl_matrix *B, int postmult) { int ret = 0; #if 0 gretl_matrix_print(A, "A, in multiply_by_F"); #endif if (gretl_is_zero_matrix(A)) { gretl_matrix_zero(B); } else if (K->nonshift == K->r) { if (postmult) { g...
multiply_by_F
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multivariate_arch_test(GRETL_VAR *var, int H, int autoH, gretlopt opt, PRN *prn) { char *v6; double v7; double *v8; int Ha; int h; int i; int t; int ta; unsigned int nx; int inicol; int hw; int err; int quiet; unsigned int K; int T; unsigned int vdim; int...
static int multivariate_arch_test(GRETL_VAR *var, int H, int autoH, gretlopt opt, PRN *prn) { const gretl_matrix *U; gretl_matrix_block *Bk; gretl_matrix *tests, *pvals; gretl_matrix *vU, *B, *X; gretl_matrix *E, *S, *SS; gretl_matrix *iC0, *ut, *uu; double df, LM, K24; ...
multivariate_arch_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multivariate_autocorr_test(GRETL_VAR *var, int H, int autoH, gretlopt opt, PRN *prn) { char *v6; double v7; double v8; double v9; double v10; double *v11; int Ha; int err; int h; int i; int t; int nx; int g; int hw; int quiet; int K; int K2_0; int p...
static int multivariate_autocorr_test(GRETL_VAR *var, int H, int autoH, gretlopt opt, PRN *prn) { const gretl_matrix *U; char Fspec[32]; gretl_matrix *tests, *pvals; gretl_matrix *B = NULL; gretl_matrix *E = NULL; gretl_matrix *X = NULL; gretl_matrix *S = NULL; doub...
multivariate_autocorr_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int multivariate_normality_test(const gretl_matrix *E, const gretl_matrix *Sigma, gretlopt opt, PRN *prn) { char *v4; char *v5; double v6; double v7; char *v8; int v9; char *v10; int err; int i; int j; int p; int n; double skew; ...
int multivariate_normality_test(const gretl_matrix *E, const gretl_matrix *Sigma, gretlopt opt, PRN *prn) { gretl_matrix *S = NULL; gretl_matrix *V = NULL; gretl_matrix *C = NULL; gretl_matrix *X = NULL; gretl_matrix *R = NULL; gretl_matrix *ev...
multivariate_normality_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mutate_bundle_member_node(NODE *n, int type, int flags, parser *p) { guint8 flagsa; int err; flagsa = flags; err = 0; if (n && (n->flags & 2) != 0) { if (n->t == 55) { free(n->v.str); } else if (n->t == 57) { gretl_matrix_free(n->v.m); } n->v.str = 0; } if (type == 55) { ...
static int mutate_bundle_member_node(NODE *n, int type, int flags, parser *p) { int err = 0; #if EDEBUG > 1 fprintf(stderr, "mutate_bundle_member: %p, %s -> %s, tmp %d -> %d\n", (void *)n, getsymb(n->t), getsymb(type), (n->flags & TMP_NODE) ? 1 : 0, (flags & TMP_NODE) ? 1 : 0); #endif if (is...
mutate_bundle_member_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *mval_malloc(size_t sz) { size_t v1; if ((sz & 0xF) != 0) v1 = sz + 8; else v1 = sz; return malloc(v1); }
static inline void *mval_malloc(size_t sz) { #if 0 void *mem = NULL; int err; err = posix_memalign(&mem, 32, sz); if (err) { fprintf(stderr, "posix_memalign: failed\n"); } return mem; #else return malloc(sz % 16 ? sz + 8 : sz); #endif }
mval_malloc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *mval_realloc(void *ptr, size_t sz) { size_t v2; if ((sz & 0xF) != 0) v2 = sz + 8; else v2 = sz; return realloc(ptr, v2); }
static inline void *mval_realloc(void *ptr, size_t sz) { return realloc(ptr, sz % 16 ? sz + 8 : sz); }
mval_realloc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int mvar_lookup(const char *s) { int i; for (i = 0; mvars[i].id; ++i) { if (!strcmp(s, mvars[i].str)) return mvars[i].id; } if (!strcmp(s, "$nrsq")) return 46; if (!strcmp(s, "$fcerr")) return 82; return 0; }
int mvar_lookup(const char *s) { int i; for (i = 0; mvars[i].id != 0; i++) { if (!strcmp(s, mvars[i].str)) { return mvars[i].id; } } if (!strcmp(s, "$nrsq")) { return M_TRSQ; } else if (!strcmp(s, "$fcerr")) { return M_FCSE; } return 0; }
mvar_lookup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *mvarname(int t) { int i; for (i = 0; mvars[i].id; ++i) { if (t == mvars[i].id) return mvars[i].str; } return "unknown"; }
const char *mvarname(int t) { int i; for (i = 0; mvars[i].id != 0; i++) { if (t == mvars[i].id) { return mvars[i].str; } } return "unknown"; }
mvarname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *mxtab_func(NODE *l, NODE *r, parser *p) { NODE *ret; ret = get_aux_node(p, 57, 0, 2); if (ret && (p->flags & 2) != 0) { if (l->t == 57 && r->t == 57) { ret->v.str = (char *)matrix_matrix_xtab(l->v.m, r->v.m, &p->err); } else if (l->t == 55 && r->t == 55) { ret->v.str = (char *)gretl_mat...
static NODE *mxtab_func(NODE *l, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL && starting(p)) { if (l->t == MAT && r->t == MAT) { ret->v.m = matrix_matrix_xtab(l->v.m, r->v.m, &p->err); } else if (l->t == SERIES && r->t == SERIES) { const double *x = l->v.xvec; co...
mxtab_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *my_matrix_from_list(model_data_item *item) { int i; int *list; gretl_matrix *m; list = (int *)item->ptr; m = gretl_matrix_alloc(1, *list); if (m) { for (i = 0; i < *list; ++i) m->val[i] = (double)list[i + 1]; } return m; }
static gretl_matrix *my_matrix_from_list(model_data_item *item) { int *list = item->ptr; gretl_matrix *m; int i; m = gretl_matrix_alloc(1, list[0]); if (m != NULL) { for (i = 0; i < list[0]; i++) { m->val[i] = list[i + 1]; } } return m; }
my_matrix_from_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void n_args_error(int k, int n, int f, parser *p) { const char *v4; char *v5; v4 = getsymb(f); v5 = gettext("Number of arguments (%d) does not match the number " "of\nparameters for function %s (%d)"); gretl_errmsg_sprintf(v5, (unsigned int)k, v4, (unsigned int)n); p->err = 1; }
static void n_args_error(int k, int n, int f, parser *p) { gretl_errmsg_sprintf(_("Number of arguments (%d) does not " "match the number of\nparameters for " "function %s (%d)"), k, getsymb(f), n); p->err = 1; }
n_args_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_bars_shown(double xmin, double xmax, plotbars *bars) { int i; int n; double **dx_0; dx_0 = bars->dx; n = 0; for (i = 0; i < bars->n; ++i) { if (xmin <= dx_0[i][1]) { if (*dx_0[i] > xmax) break; if (*dx_0[i] >= xmin || xmax >= dx_0[i][1]) ++n; } } bars->t1 = xmi...
static int n_bars_shown(double xmin, double xmax, plotbars *bars) { double **dx = bars->dx; int i, n = 0; for (i = 0; i < bars->n; i++) { if (dx[i][1] < xmin) { continue; } else if (dx[i][0] > xmax) { break; } else if (dx[i][0] >= xmin || dx[i][1] <= xmax) { n++; } } bars->...
n_bars_shown
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *n_elements_node(NODE *n, parser *p) { size_t v2; double v3; NODE *ret; int *list_0; ret = get_aux_node(p, 54, 0, 0); if (ret && (p->flags & 2) != 0) { switch (n->t) { case '6': ret->v.str = (char *)0x3FF0000000000000LL; break; case '9': ret->v.xval = (double)(*n->v.ivec ...
static NODE *n_elements_node(NODE *n, parser *p) { NODE *ret = aux_scalar_node(p); if (ret != NULL && starting(p)) { if (n->t == NUM) { ret->v.xval = 1; } else if (n->t == MAT) { gretl_matrix *m = n->v.m; ret->v.xval = m->rows * m->cols; } else if (n->t == ARRAY) { gretl_array ...
n_elements_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_free_functions() { int i; int n; n = 0; for (i = 0; i < n_ufuns; ++i) { if (!ufuns[i]->pkg) ++n; } return n; }
int n_free_functions(void) { int i, n = 0; for (i = 0; i < n_ufuns; i++) { if (ufuns[i]->pkg == NULL) { n++; } } return n; }
n_free_functions
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_from_row_mask(csvdata *c) { int i; int n; n = 0; for (i = 0; i < c->masklen && i <= c->nrows; ++i) { if (c->rowmask->val[i] != 0.0) ++n; } return n; }
static int n_from_row_mask(csvdata *c) { int i, n = 0; for (i = 0; i < c->masklen && i <= c->nrows; i++) { if (gretl_vector_get(c->rowmask, i) != 0) { n++; } } return n; }
n_from_row_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_hidden_missing_obs(const DATASET *dset, int t1, int t2) { int t1a; int n_present; n_present = t2 - t1 + 1; if (!dset || dset->structure != 1 || dset->pd != 5 && dset->pd != 6 && dset->pd != 7 || dset->sd0 <= 10000.0 || !dset->S) { return 0; } t1a = calendar_obs_number(dset->S[t1], dse...
int n_hidden_missing_obs(const DATASET *dset, int t1, int t2) { int n_present = t2 - t1 + 1; int cal_n; if (!dated_daily_data(dset) || dset->S == NULL) { return 0; } t1 = calendar_obs_number(dset->S[t1], dset); t2 = calendar_obs_number(dset->S[t2], dset); cal_n = t2 - t1 + 1; return cal_n - n_pr...
n_hidden_missing_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_initcurv() { check_for_state(); if (!state->initcurv) return 0; if (state->initcurv->cols == 1) return state->initcurv->rows; if (state->initcurv->rows == 1) return state->initcurv->cols; return 0; }
int n_initcurv(void) { check_for_state(); if (state->initcurv != NULL) { return gretl_vector_get_length(state->initcurv); } else { return 0; } }
n_initcurv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_initvals() { check_for_state(); if (!state->initvals) return 0; if (state->initvals->cols == 1) return state->initvals->rows; if (state->initvals->rows == 1) return state->initvals->cols; return 0; }
int n_initvals(void) { check_for_state(); if (state->initvals != NULL) { return gretl_vector_get_length(state->initvals); } else { return 0; } }
n_initvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_new_dummies(const DATASET *dset, int nunits, int nperiods) { int i; int ia; int nnew; char dname[40]; unsigned long v9; v9 = __readfsqword(0x28u); nnew = nunits + nperiods; for (i = 0; i < nunits; ++i) { sprintf(dname, "du_%d", i + 1); if (gretl_is_series(dname, dset)) --nnew; } ...
static int n_new_dummies(const DATASET *dset, int nunits, int nperiods) { char dname[VNAMELEN]; int i, nnew = nunits + nperiods; for (i = 0; i < nunits; i++) { sprintf(dname, "du_%d", i + 1); if (gretl_is_series(dname, dset)) { nnew--; } } for (i = 0; i < nperiods; i++) { sprintf(dname...
n_new_dummies
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_restricted_terms(const GRETL_VAR *v) { int n; n = 0; if (v->jinfo && (v->jinfo->code == J_REST_CONST || v->jinfo->code == J_REST_TREND)) n = 1; if (v->rlist) n += *v->rlist; return n; }
int n_restricted_terms(const GRETL_VAR *v) { int n = 0; if (v->jinfo != NULL && (v->jinfo->code == J_REST_CONST || v->jinfo->code == J_REST_TREND)) { n++; } if (v->rlist != NULL) { n += v->rlist[0]; } return n; }
n_restricted_terms
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_stacked_models() { int n; int i; GList *list; n = 0; if (get_or_send_gui_models) { list = get_or_send_gui_models(0); n = g_list_length(list); g_list_free(list); } else { for (i = 0; i < n_obj; ++i) { if (ostack[i].ptr && ostack[i].type == 1) ++n; } } return n; }
int n_stacked_models(void) { GList *list = NULL; int n = 0; if (get_or_send_gui_models != NULL) { list = (*get_or_send_gui_models)(NULL); n = g_list_length(list); g_list_free(list); } else { GretlObjType type; void *ptr; int i; for (i = 0; i < n_obj; i++) { ptr = ostack[i].pt...
n_stacked_models
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_strvals(const char **s) { int n; n = 0; while (*s) { ++n; ++s; } return n; }
static int n_strvals(const char **s) { int n = 0; while (*s != NULL) { n++; s++; } return n; }
n_strvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_user_bundles() { return user_var_count_for_type(GRETL_TYPE_BUNDLE); }
int n_user_bundles(void) { return user_var_count_for_type(GRETL_TYPE_BUNDLE); }
n_user_bundles
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_user_functions() { return n_ufuns; }
int n_user_functions(void) { return n_ufuns; }
n_user_functions
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_user_lists() { return user_var_count_for_type(GRETL_TYPE_LIST); }
int n_user_lists(void) { return user_var_count_for_type(GRETL_TYPE_LIST); }
n_user_lists
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_user_matrices() { return user_var_count_for_type(GRETL_TYPE_MATRIX); }
int n_user_matrices(void) { return user_var_count_for_type(GRETL_TYPE_MATRIX); }
n_user_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int n_user_scalars() { return user_var_count_for_type(GRETL_TYPE_DOUBLE); }
int n_user_scalars(void) { return user_var_count_for_type(GRETL_TYPE_DOUBLE); }
n_user_scalars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *na_array(int n) { int i; double *x; x = (double *)malloc(8LL * n); if (x) { for (i = 0; i < n; ++i) x[i] = NAN; } return x; }
static double *na_array(int n) { double *x = malloc(n * sizeof *x); int i; if (x != NULL) { for (i = 0; i < n; i++) { x[i] = NADBL; } } return x; }
na_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void na_convert(double *x, int n) { int i; for (i = 0; i < n; ++i) { if (x[i] == 1.797693134862316e308) x[i] = NAN; } }
static void na_convert(double *x, int n) { int i; for (i = 0; i < n; i++) { if (x[i] == DBL_MAX) { x[i] = NADBL; } } }
na_convert
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *na_ptr() { double *px; px = (double *)malloc(8u); if (px) *px = NAN; return px; }
static double *na_ptr(void) { double *px = malloc(sizeof *px); if (px != NULL) { *px = NADBL; } return px; }
na_ptr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int nadaraya_watson(const double *y, const double *x, double h, DATASET *dset, int LOO, double trim, double *m) { int v8; double *v9; double ha; int t; int ta; int tb; int s; int t1; int t2; int n; double *num; double *den; double k; double ka; double xt; double yt; ...
int nadaraya_watson(const double *y, const double *x, double h, DATASET *dset, int LOO, double trim, double *m) { int t, s, err = 0; int t1 = dset->t1, t2 = dset->t2; double xt, xs, ys, yt, k; double *num, *den; int n = t2 + 1; if (h < 0.0) { return E_DATA; } else if (h == 0.0) { ...
nadaraya_watson
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int name_matches_array_type(char *s, GretlType type) { const char *sa; sa = s; if (!strncmp(s, "gretl-", 6u)) sa = s + 6; return type == gretl_type_from_string(sa); }
static int name_matches_array_type(char *s, GretlType type) { if (!strncmp(s, "gretl-", 6)) { s += 6; } return (gretl_type_from_string(s) == type); }
name_matches_array_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void name_package_from_filename(fnpkg *pkg) { int n; char *p; const char *pa; p = strrslash(pkg->fname); if (p) pa = p + 1; else pa = pkg->fname; n = strlen(pa); if (has_suffix(pa, ".gfn")) n -= 4; if (n > 31) n = 31; pkg->name[0] = 0; strncat(pkg->name, pa, n); }
static void name_package_from_filename(fnpkg *pkg) { char *p = strrslash(pkg->fname); int n; if (p != NULL) { p++; } else { p = pkg->fname; } n = strlen(p); if (has_suffix(p, ".gfn")) { n -= 4; } if (n > FN_NAMELEN - 1) { n = FN_NAMELEN - 1; } *pkg->name = '\0'; strncat(pkg->...
name_package_from_filename
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void name_xprod_term(char *vname, int vi, int vj, int di_0, const DATASET *dset) { int ilen; int jlen; int decr; int totlen; char *si_0; char *sj; char numstr[24]; unsigned long v13; v13 = __readfsqword(0x28u); si_0 = dset->varname[vi]; sj = dset->varname[vj]; ilen = strlen...
static void name_xprod_term(char *vname, int vi, int vj, int di, const DATASET *dset) { const char *si = dset->varname[vi]; const char *sj = dset->varname[vj]; int ilen = strlen(si); int jlen = strlen(sj); int totlen = ilen + jlen + 2; char numstr[16]; sprintf(numstr, "%d", di...
name_xprod_term
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int namechar_spn_with_space(const char *s) { int ret; ret = 0; if (((*__ctype_b_loc())[*s] & 0x400) != 0) return strspn( s, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ "); return ret; }
static int namechar_spn_with_space(const char *s) { const char *ok = "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "0123456789_ "; int ret = 0; if (isalpha(*s)) { ret = strspn(s, ok); } return ret; }
namechar_spn_with_space
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char **names_from_array_arg(gretl_array *A, int *ns, int *err) { char **S; S = 0; if (gretl_array_get_type(A) == GRETL_TYPE_STRINGS) { S = gretl_array_get_strings(A, ns); if (!S) *err = 2; } else { *err = 37; } return S; }
static char **names_from_array_arg(gretl_array *A, int *ns, int *err) { char **S = NULL; if (gretl_array_get_type(A) != GRETL_TYPE_STRINGS) { *err = E_TYPES; } else { S = gretl_array_get_strings(A, ns); if (S == NULL) { *err = E_DATA; } } return S; }
names_from_array_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int native_cholesky_decomp_solve(gretl_matrix *a, gretl_matrix *b) { int i; int ia; int ib; int j; int ja; int jb; int k; int ka; int kk; int kka; int l; int la; int nc; double d; double da; double db; double d1; double *xtx; double *xty; double e; double ea; double d2; dou...
static int native_cholesky_decomp_solve(gretl_matrix *a, gretl_matrix *b) { double *xtx = a->val; double *xty = b->val; int i, j, k, kk, l, jm1; double e, d, d1, d2, test, xx; int nc = b->rows; if (xtx[0] <= 0.0) { fprintf(stderr, "%s %d: xtx <= 0.0\n", __FILE__, __LINE__); return E_NAN; } e =...
native_cholesky_decomp_solve
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int native_cholesky_regress(MODEL *pmod, const DATASET *dset, gretlopt opt) { int i; int ia; int k; int nxpx; int pwe; double ysum; double ypy; double *xpy; double rho; unsigned long v14; v14 = __readfsqword(0x28u); ysum = 0.0; ypy = 0.0; k = pmod->ncoeff; nxpx = k * (k + 1) / 2; pwe = ...
static int native_cholesky_regress(MODEL *pmod, const DATASET *dset, gretlopt opt) { double rho, ysum = 0.0, ypy = 0.0; double *xpy; int k = pmod->ncoeff; int nxpx = k * (k + 1) / 2; int pwe = (pmod->opt & OPT_P); int i; if (nxpx == 0) { fprintf(stderr, "problem: nx...
native_cholesky_regress
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *native_db_index_name() { char *fname; if (!has_suffix(saved_db_name, ".bin")) return (char *)g_strdup_printf("%s.idx", saved_db_name); fname = (char *)g_strdup(saved_db_name); *(_DWORD *)&fname[strlen(fname) - 3] = 7890025; return fname; }
static char *native_db_index_name(void) { char *fname; if (has_suffix(saved_db_name, ".bin")) { fname = g_strdup(saved_db_name); strcpy(fname + strlen(fname) - 3, "idx"); } else { fname = g_strdup_printf("%s.idx", saved_db_name); } return fname; }
native_db_index_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char **native_db_match_series(const char *glob, int *nmatch, const char *idxname, int *err) { char **S; FILE *fp; GPatternSpec *pspec; char line[264]; unsigned long v10; v10 = __readfsqword(0x28u); S = 0; fp = gretl_fopen(idxname, "rb"); if (fp) { pspec = (GPatternSp...
static char **native_db_match_series(const char *glob, int *nmatch, const char *idxname, int *err) { GPatternSpec *pspec; char **S = NULL; FILE *fp = NULL; char line[256]; fp = gretl_fopen(idxname, "rb"); if (fp == NULL) { *err = E_FOPEN; *nmatch = 0; return...
native_db_match_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nbdtr(int k, int n, double p) { if (p >= 0.0 && p <= 1.0 && k >= 0) return incbet((double)n, (double)(k + 1), p); mtherr("nbdtr", 1); return 0.0; }
double nbdtr(int k, int n, double p) { double dk, dn; if ((p < 0.0) || (p > 1.0)) goto domerr; if (k < 0) { domerr: mtherr("nbdtr", CEPHES_DOMAIN); return 0.0; } dk = k + 1; dn = n; return incbet(dn, dk, p); }
nbdtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nbdtrc(int k, int n, double p) { if (p >= 0.0 && p <= 1.0 && k >= 0) return incbet((double)(k + 1), (double)n, 1.0 - p); mtherr("nbdtr", 1); return 0.0; }
double nbdtrc(int k, int n, double p) { double dk, dn; if ((p < 0.0) || (p > 1.0)) { goto domerr; } if (k < 0) { domerr: mtherr("nbdtr", CEPHES_DOMAIN); return 0.0; } dk = k + 1; dn = n; return incbet(dk, dn, 1.0 - p); }
nbdtrc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nbdtri(int k, int n, double p) { if (p >= 0.0 && p <= 1.0 && k >= 0) return incbi((double)n, (double)(k + 1), p); mtherr("nbdtri", 1); return 0.0; }
double nbdtri(int k, int n, double p) { double dk, dn, w; if ((p < 0.0) || (p > 1.0)) goto domerr; if (k < 0) { domerr: mtherr("nbdtri", CEPHES_DOMAIN); return 0.0; } dk = k + 1; dn = n; w = incbi(dn, dk, p); return w; }
nbdtri
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nc_chisq_cdf(double df_0, double delta, double x) { int v4; int i; int ia; int iterb; int iterf; int icent; double adj; double adja; double sum; double sumadj; double sumadja; double wt; double wta; double xnonc; double chid2; double lfact; double lfacta; double lcntwt; doub...
double nc_chisq_cdf(double df, double delta, double x) { double adj, centaj, centwt, chid2, dfd2, lcntaj, lcntwt; double lfact, pcent, pterm, sum, sumadj, term, wt, xnonc; double T1, T2, T3; int i, icent, iterb, iterf; int itermax = 1000; if (x < 0.0) { return 1.0; } if (df <= 0.0) { return NA...
nc_chisq_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nc_chisq_cdf_inverse(double p, double c, double q) { _BOOL4 v4; int iter; int subiter; int retry; double x; double d0; double d1; double dir; double F; if (p < 0.0 || c < 0.0 || q <= 0.0 || q >= 1.0) return NAN; if (fabs(c) < 1.0e-10) return chisq_cdf_inverse((int)p, q); x = p + ...
static double nc_chisq_cdf_inverse(double p, double c, double q) { double x, d0, d1; int iter, subiter, retry; double F, f, dir; if (p < 0 || c < 0 || q <= 0 || q >= 1) { return NADBL; } if (fabs(c) < 1.0e-10) { return chisq_cdf_inverse(p, q); } x = p + c; d0 = 1.0e7; iter = 0; while ...
nc_chisq_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nc_chisq_pdf(double p, double c, double x) { double xa; double ca; double pa; pa = p; ca = c; xa = x; nc_chisq_pdf_array(p, c, &xa, 1); return xa; }
double nc_chisq_pdf(double p, double c, double x) { nc_chisq_pdf_array(p, c, &x, 1); return x; }
nc_chisq_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int nc_chisq_pdf_array(double p, double c, double *x, int n) { double v4; double v6; double v7; double v8; double v9; int err; int i; double k; double a; double b; unsigned long v15; v15 = __readfsqword(0x28u); err = 0; if (fabs(c) >= 1.0e-10) { if (p > 0.0 && c >= 0.0) { k = p / ...
static int nc_chisq_pdf_array(double p, double c, double *x, int n) { int i, err = 0; double k, a, b; if (fabs(c) < 1.0e-10) { return chisq_pdf_array((int)floor(p), x, n); } if (p <= 0 || c < 0) { return E_DATA; } k = p / 2.0 - 1; for (i = 0; i < n; i++) { if (na(x[i]) || x[i] < 0) { ...
nc_chisq_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nc_snedecor_cdf(double dfn, double dfd, double delta, double x) { int v5; double v6; double v7; double v8; double v9; int v10; int v11; double v12; double v13; int v14; double v15; int v16; double v18; double v19; double v20; double v21; double v22; double v23; double v24; ...
double nc_snedecor_cdf(double dfn, double dfd, double delta, double x) { double dsum, prod, xx, yy, adn, aup, b, betdn, betup; double centwt, dnterm, sum, upterm, xmult, xnonc; double T1, T2, T3, T4, T5, T6; int i, icent; if (x < 0.0) { return 1.0; } if (dfn <= 0.0 || dfd <= 0.0) { return NADBL;...
nc_snedecor_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nc_student_cdf(double df_0, double delta, double x) { double v4; double v5; double v6; double v7; double v8; double v9; double v10; double v12; double v13; double v14; int i; int ia; double pkf; double pkb; double qkf; double qkb; double pbetaf; double pbetab; double qbetaf;...
double nc_student_cdf(double df, double delta, double x) { double errtol = 1.0e-16; double maxit = 512; double ax, y, del, dels, k, a, b, c; double pkf, pkb, qkf, qkb, pbetaf, pbetab, qbetaf, qbetab; double pgamf, pgamb, qgamf, qgamb, tmp, ret; double rempois, sum, ptermf, qtermf, ptermb, qtermb; int i; ...
nc_student_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nc_student_pdf(double df_0, double delta, double x) { double v4; double v5; double v6; double v7; double tmp; if (df_0 <= 0.0) return NAN; if (fabs(delta) <= 1.0e-10) return student_pdf(df_0, x); if (fabs(x) >= 1.0e-12) { v6 = sqrt(2.0 / df_0 + 1.0); v7 = nc_student_cdf(df_0 + 2....
double nc_student_pdf(double df, double delta, double x) { double ret, tmp; if (df <= 0.0) { return NADBL; } if (fabs(delta) <= 1.0e-10) { return student_pdf(df, x); } if (fabs(x) < 1.0e-12) { tmp = lngamma((df + 1) / 2) - lngamma(df / 2); ret = exp(tmp - 0.5 * delta * delta) / (sqrt(M_P...
nc_student_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double ncf_cdf_inverse(double n1, double n2, double c, double q) { int iter; int subiter; double x; double d0; double d1; double dir; double F; if (n2 < 1.0 || n1 < 1.0 || c < 0.0 || q <= 0.0 || q >= 1.0) return NAN; x = 0.5; d0 = 10000000.0; for (iter = 0; fabs(d0) > 1.0e-10 && iter <= 999; ...
static double ncf_cdf_inverse(double n1, double n2, double c, double q) { double x, d0, d1; int iter, subiter; double F, f, dir; if (n2 < 1 || n1 < 1 || c < 0 || q <= 0 || q >= 1) { return NADBL; } x = 0.5; d0 = 1.0e7; iter = 0; while (fabs(d0) > 1.0e-10 && iter < 1000) { F = nc_snedecor_cd...
ncf_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double ncf_pdf(double dfn, double dfd, double c, double x) { double xa; double ca; double dfda; double dfna; dfna = dfn; dfda = dfd; ca = c; xa = x; ncf_pdf_array(dfn, dfd, c, &xa, 1); return xa; }
double ncf_pdf(double dfn, double dfd, double c, double x) { ncf_pdf_array(dfn, dfd, c, &x, 1); return x; }
ncf_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ncf_pdf_array(double dfn, double dfd, double c, double *x, int n) { double v6; double *v7; double v8; double v9; double v10; double v11; double v12; double v13; int i; int ia; int t; int ta; int tb; int tc; int iter; int itera; int err; int start; double pwi; double pwia; d...
static int ncf_pdf_array(double dfn, double dfd, double c, double *x, int n) { double ch, k1, k2, k; double a, b, l, pw, beta; double pwi, betai; double errtol = 1.0e-16; double maxit = 256; double *vx, *vz; int i, t, start, iter; int err = 0; if (dfd <= 0.0 || dfn <= 0.0 || c < 0.0) { return E_D...
ncf_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nct_cdf_inverse(double p, double c, double q) { double v4; int iter; int subiter; double x; double d0; double d1; double dir; double F; if (p < 1.0 || c < 0.0 || q <= 0.0 || q >= 1.0) return NAN; if (fabs(c) < 1.0e-10) return student_cdf_inverse(p, q); v4 = student_cdf_inverse(p, q...
static double nct_cdf_inverse(double p, double c, double q) { double x, d0, d1; int iter, subiter; double F, f, dir; if (p < 1 || c < 0 || q <= 0 || q >= 1) { return NADBL; } if (fabs(c) < 1.0e-10) { return student_cdf_inverse(p, q); } x = c + student_cdf_inverse(p, q) / sqrt(p - 0.5); d0 ...
nct_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int nct_pdf_array(double df_0, double delta, double *x, int n) { int i; int ia; int err; err = 0; if (df_0 <= 0.0) { err = 2; } else { for (i = 0; i < n; ++i) { if (fabs(x[i]) > 1.797693134862316e308) x[i] = NAN; else x[i] = nc_student_pdf(df_0, delta, x[i]); } } ...
static int nct_pdf_array(double df, double delta, double *x, int n) { int i, err = 0; if (df > 0) { for (i = 0; i < n; i++) { if (!na(x[i])) { x[i] = nc_student_pdf(df, delta, x[i]); } else { x[i] = NADBL; } } } else { err = E_DATA; } if (err) { for (i = 0; ...
nct_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double ndtr(double a) { int err; double y; double x; double z; unsigned long v6; v6 = __readfsqword(0x28u); err = 0; x = SQRTH * a; z = fabs(SQRTH * a); if (z < 1.0) return 0.5 * cephes_erf(x) + 0.5; y = cephes_erfc(z, &err) * 0.5; if (x > 0.0) return 1.0 - y; return y; }
double ndtr(double a) { double x, y, z; int err = 0; x = a * SQRTH; z = fabs(x); if (z < 1.0) { y = 0.5 + 0.5 * cephes_erf(x); } else { #if USE_EXPXSQ y = 0.5 * erfce(z); z = expx2(a, -1); y = y * sqrt(z); #else y = 0.5 * cephes_erfc(z, &err); #endif if (x > 0) { y = 1.0 - ...
ndtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double ndtri(double y0) { double v2; double v3; double v4; double v5; int code; double xa; double x; double y; double ya; double x1; double x0; double z; if (y0 > 0.0) { if (y0 < 1.0) { code = 1; y = y0; if (y0 > 1.0 - 0.1353352832366127) { y = 1.0 - y0; ...
double ndtri(double y0) { double expm2 = 0.13533528323661269189; double x, y, z, y2, x0, x1; int code; if (y0 <= 0.0) { mtherr_with_arg("ndtri", CEPHES_DOMAIN, y0); return -MAXNUM; } if (y0 >= 1.0) { mtherr_with_arg("ndtri", CEPHES_DOMAIN, y0); return MAXNUM; } code = 1; y = y0; ...
ndtri
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int needs_rejigging(gretl_matrix *m, int t1, int t2) { long mt1; if (t2 - t1 + 1 != m->rows) return 1; if (!gretl_matrix_is_dated(m)) return 0; LODWORD(mt1) = gretl_matrix_get_t1(m); HIDWORD(mt1) = gretl_matrix_get_t2(m); return mt1 != __PAIR64__(t2, t1); }
static int needs_rejigging(gretl_matrix *m, int t1, int t2) { int T = t2 - t1 + 1; if (m->rows != T) { return 1; } if (gretl_matrix_is_dated(m)) { int mt1 = gretl_matrix_get_t1(m); int mt2 = gretl_matrix_get_t2(m); if (mt1 != t1 || mt2 != t2) { return 1; } } return 0; }
needs_rejigging
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int negval_invalid(SetKey key) { int ret; ret = 1; if (key && (key == BLAS_MNK_MIN || key == OMP_MNK_MIN || key == SIMD_K_MAX || key == SIMD_MN_MIN)) return 0; return ret; }
static int negval_invalid(SetKey key) { int ret = 1; if (key > 0) { if (key == BLAS_MNK_MIN || key == OMP_MNK_MIN || key == SIMD_K_MAX || key == SIMD_MN_MIN) { ret = 0; } } return ret; }
negval_invalid
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int nelder_mead(BFGS_CRIT_FUNC cfunc, int n, double *start, double *xmin, double *ynewlo, double reqmin, double *step, int maxcalls, int *ncalls, int *nresets, void *data, gretlopt opt, PRN *prn) { double v14; int i; int ia; int ib; int ic; int id; int ie; int ig; int i...
static int nelder_mead(BFGS_CRIT_FUNC cfunc, int n, double start[], double xmin[], double *ynewlo, double reqmin, double step[], int maxcalls, int *ncalls, int *nresets, void *data, gretlopt opt, PRN *prn) { gretl_matrix *pmat = NULL; double ccoef...
nelder_mead
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int nerlove_s2v(MODEL *pmod, const DATASET *dset, panelmod_t *pan) { int i; int ia; int ib; int j; int t; int k; int Ti; int bigt; double a; double aa; double amean; double ameana; double wmean; double *wi; int *list; double *ahat; wi = 0; ahat = (double *)malloc(8LL * pan->effn); ...
static int nerlove_s2v(MODEL *pmod, const DATASET *dset, panelmod_t *pan) { double a, amean, *ahat; double wmean, *wi = NULL; const double *x; int i, j, t, k, bigt; int *list = NULL; int err = 0; ahat = malloc(pan->effn * sizeof *ahat); if (ahat == NULL) { return E_ALLOC; } if (pan->opt & OPT_...
nerlove_s2v
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double netlib_bessel_K(double v, double x, int ize) { double v4; double xa; double va; double vb; int ncalc; int nb; double *bk; unsigned long v11; va = v; v11 = __readfsqword(0x28u); if (x >= 0.0) { if (v < 0.0) va = -v; v4 = floor(va); nb = (int)v4 + 1; vb = va - (double)(...
double netlib_bessel_K(double v, double x, int ize) { int nb, ncalc; double *bk; if (isnan(x) || isnan(v)) { return x + v; } if (x < 0) { mtherr("netlib_bessel_K", CEPHES_DOMAIN); return NAN; } if (v < 0) { v = -v; } nb = 1 + (int)floor(v); v -= (nb - 1); bk = zero_dbl_array(n...
netlib_bessel_K
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
Vector *new_Vector(int nnn) { Vector *v; v = (Vector *)malloc(0x18u); if (!v) { puts("malloc error in \"new_Vector()\""); exit(1); } v->cf = (uint32_t *)calloc(nnn, 4u); if (!v->cf) { puts("calloc error in \"new_Vector()\""); exit(1); } v->start = 0; return v; }
static Vector *new_Vector(int nnn) { Vector *v; v = (Vector *)malloc(sizeof(Vector)); if (v == NULL) { printf("malloc error in \"new_Vector()\"\n"); exit(1); } v->cf = (uint32_t *)calloc(nnn, sizeof(uint32_t)); if (v->cf == NULL) { printf("calloc error in \"new_Vector()\"\n"); exit(1); }...
new_Vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double **new_dbZ(int n) { int t; double **Z; Z = (double **)malloc(0x10u); if (!Z) return 0; *Z = 0; Z[1] = (double *)malloc(8LL * n); if (Z[1]) { for (t = 0; t < n; ++t) Z[1][t] = NAN; return Z; } else { free(Z); return 0; } }
static double **new_dbZ(int n) { double **Z; int t; Z = malloc(2 * sizeof *Z); if (Z == NULL) return NULL; Z[0] = NULL; Z[1] = malloc(n * sizeof **Z); if (Z[1] == NULL) { free(Z); return NULL; } for (t = 0; t < n; t++) { Z[1][t] = NADBL; } return Z; }
new_dbZ
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *new_node(int t) { NODE *n; n = (NODE *)calloc(1u, 0x50u); if (n) { n->t = t; n->vnum = -1; n->R = 0; n->M = n->R; n->L = n->M; } return n; }
NODE *new_node(int t) { NODE *n = calloc(1, sizeof *n); #if MDEBUG fprintf(stderr, "new_node: allocated node of type %d (%s) at %p\n", t, getsymb(t), (void *)n); #endif if (n != NULL) { n->t = t; n->vnum = NO_VNUM; n->L = n->M = n->R = NULL; } return n; }
new_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0