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 expand_jspec(joinspec *jspec, int addvars) { int i; int ncols; char **colnames; int *colnums; ncols = jspec->ncols + addvars; colnames = (char **)realloc(jspec->colnames, 8LL * ncols); colnums = (int *)realloc(jspec->colnums, 4LL * ncols); if (!colnames || !colnums) return 12; jspec->colnames...
static int expand_jspec(joinspec *jspec, int addvars) { int i, ncols = jspec->ncols + addvars; char **colnames; int *colnums; colnames = realloc(jspec->colnames, ncols * sizeof *colnames); colnums = realloc(jspec->colnums, ncols * sizeof *colnums); if (colnames == NULL || colnums == NULL) { return E_A...
expand_jspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *expand_mask(char *tmpmask, const char *oldmask, int *err) { int v3; int t; int i; char *newmask; newmask = make_submask(fullset->n); if (newmask) { i = 0; for (t = 0; t < fullset->n; ++t) { if (oldmask[t]) { v3 = i++; newmask[t] = tmpmask[v3]; } } } else { ...
static char *expand_mask(char *tmpmask, const char *oldmask, int *err) { char *newmask = make_submask(fullset->n); if (newmask == NULL) { *err = E_ALLOC; } else { int t, i = 0; for (t = 0; t < fullset->n; t++) { if (oldmask[t]) { newmask[t] = tmpmask[i++]; } } } return ...
expand_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char **expand_names(const char *s, int n, int *err) { int i; int m; char **S; char tmp[12]; unsigned long v9; v9 = __readfsqword(0x28u); if (gretl_is_ascii(s)) { S = strings_array_new(n); if (S) { for (i = 0; i < n && !*err; ++i) { sprintf(tmp, "%d", i + 1); m = strlen(tmp);...
static char **expand_names(const char *s, int n, int *err) { char **S = NULL; if (!gretl_is_ascii(s)) { *err = E_INVARG; return NULL; } S = strings_array_new(n); if (S == NULL) { *err = E_ALLOC; } else { char tmp[12]; int i, m; for (i = 0; i < n && !*err; i++) { sprintf(tmp...
expand_names
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int expand_selector_matrix(nlspec *s, int sm, int sn, const char *mask) { ocset *oc; long v6; int i; int ia; int ib; int ic; int j; int ja; int jb; int jc; int ecols; int Zcols; int err; gretl_matrix *S; S = s->oc->S; ecols = s->oc->e->cols; Zcols = s->oc->Z->cols; if (!S) { oc ...
static int expand_selector_matrix(nlspec *s, int sm, int sn, const char *mask) { gretl_matrix *Z = s->oc->Z; gretl_matrix *S = s->oc->S; int ecols = s->oc->e->cols; int Zcols = Z->cols; double xij; int i, j, err = 0; #if GMM_DEBUG fprintf(stderr, "expand_selector_matrix\n"); gretl_matrix_print(S, "S, o...
expand_selector_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void expected_symbol_error(int c, parser *p, int badc) { char *v3; char *v4; char *v5; const char *found; parser_print_input(p); if (badc) { v3 = gettext("Expected '%c' but found '%c'\n"); gretl_errmsg_sprintf(v3, (unsigned int)c, (unsigned int)badc); } else { found = getsymb_full(p->sym, p);...
static void expected_symbol_error(int c, parser *p, int badc) { parser_print_input(p); if (badc) { gretl_errmsg_sprintf(_("Expected '%c' but found '%c'\n"), c, badc); } else { const char *found = getsymb_full(p->sym, p); if (found == NULL || *found == '\0') { gretl_errmsg_sprintf(_("Expected '...
expected_symbol_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int explore_node(NODE *t, int lev, NODE *prev, parser *p) { NODE *aux; int err; int save_op; NODE pms; unsigned long v10; v10 = __readfsqword(0x28u); memset(&pms, 0, sizeof(pms)); err = 0; if (prev && (t->t == 57 || t->aux && t->aux->t == 57)) { pms.t = 69; if (t->t == 57) aux = t; ...
static int explore_node(NODE *t, int lev, NODE *prev, parser *p) { NODE pms = {0}; int save_op; int err = 0; #if LHDEBUG fprintf(stderr, "%d: %s %p, prev %p", lev, getsymb(t->t), (void *)t, (void *)prev); fprintf(stderr, " (aux %s)", (t->aux != NULL) ? getsymb(t->aux->t) : "null"); if (t->R != NU...
explore_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double exponential_cdf(double mu, double x) { double ret; ret = NAN; if (mu > 0.0 && fabs(x) <= 1.797693134862316e308) { if (x >= 0.0) return 1.0 - exp(COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL) / mu); else return 0.0; } return ret; }
double exponential_cdf(double mu, double x) { double ret = NADBL; if (mu > 0 && !na(x)) { if (x < 0.0) { ret = 0.0; } else { ret = 1.0 - exp(-x / mu); } } return ret; }
exponential_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int exponential_movavg_series(const double *x, double *y, const DATASET *dset, double d, int n, double y0) { double y0a; int na; int t1; int t2; int t; int err; int T; unsigned long v14; na = n; y0a = y0; v14 = __readfsqword(0x28u); t1 = dset->t1; t2 = dset->t2; ...
int exponential_movavg_series(const double *x, double *y, const DATASET *dset, double d, int n, double y0) { int t1 = dset->t1; int t2 = dset->t2; int t, T, err = 0; if (dataset_is_panel(dset)) { return E_PDWRONG; } if (na(y0) && n < 0) { return E_INVARG; } T = s...
exponential_movavg_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double exponential_pdf(double mu, double x) { double xa; double mua; mua = mu; xa = x; exponential_pdf_array(mu, &xa, 1); return xa; }
static double exponential_pdf(double mu, double x) { exponential_pdf_array(mu, &x, 1); return x; }
exponential_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int exponential_pdf_array(double mu, double *x, int n) { int i; int ia; int err; err = 0; if (fabs(mu) <= 1.797693134862316e308 && mu > 0.0) { for (ia = 0; ia < n; ++ia) { if (x[ia] >= 0.0) { if (fabs(x[ia]) > 1.797693134862316e308) x[ia] = NAN; else x[ia] = exp(...
static int exponential_pdf_array(double mu, double *x, int n) { int i, err = 0; if (na(mu) || mu <= 0) { err = E_INVARG; for (i = 0; i < n; i++) { x[i] = NADBL; } } else { double b = 1.0 / mu; for (i = 0; i < n; i++) { if (x[i] < 0) { x[i] = 0; } else if (!na(x[i]))...
exponential_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *expr(parser *p) { NODE *t; if (p->err) return 0; t = expr0(p); if (!t) return 0; while (!p->err && p->sym == 96) { t = newb3(p->sym, t); if (t) { set_parsing_query(1); lex(p); if (!p->err) { t->M = expr(p); if (p->sym == 52) { lex(p); ...
NODE *expr(parser *p) { NODE *t; #if SDEBUG fprintf(stderr, "expr: starting...\n"); #endif if (p->err || (t = expr0(p)) == NULL) { return NULL; } while (!p->err && p->sym == QUERY) { t = newb3(p->sym, t); if (t != NULL) { set_parsing_query(1); lex(p); if (!p->err) { t-...
expr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *expr0(parser *p) { NODE *t; if (p->err) return 0; t = expr1(p); if (!t) return 0; while (!p->err && p->sym == 20) { t = newb2(p->sym, t, 0); if (t) { lex(p); t->R = expr1(p); } } return t; }
static NODE *expr0(parser *p) { NODE *t; #if SDEBUG fprintf(stderr, "expr0: starting...\n"); #endif if (p->err || (t = expr1(p)) == NULL) { return NULL; } while (!p->err && p->sym == B_OR) { t = newb2(p->sym, t, NULL); if (t != NULL) { lex(p); t->R = expr1(p); } } #if SDEBUG ...
expr0
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *expr1(parser *p) { NODE *t; if (p->err) return 0; t = expr2(p); if (!t) return 0; while (!p->err && p->sym == 19) { t = newb2(p->sym, t, 0); if (t) { p->flags |= 0x2000000u; lex(p); t->R = expr2(p); p->flags &= ~0x2000000u; } } return t; }
static NODE *expr1(parser *p) { NODE *t; #if SDEBUG fprintf(stderr, "expr1: starting...\n"); #endif if (p->err || (t = expr2(p)) == NULL) { return NULL; } while (!p->err && p->sym == B_AND) { t = newb2(p->sym, t, NULL); if (t != NULL) { p->flags |= P_AND; lex(p); t->R = expr2(...
expr1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *expr2(parser *p) { NODE *t; if (p->err) return 0; t = expr3(p); if (!t) return 0; while (!p->err && (p->sym == 13 || p->sym == 18 || p->sym == 28 || p->sym == 33)) { t = newb2(p->sym, t, 0); if (t) { lex(p); t->R = expr3(p); } } return t; }
static NODE *expr2(parser *p) { NODE *t; #if SDEBUG fprintf(stderr, "expr2: starting...\n"); #endif if (p->err || (t = expr3(p)) == NULL) { return NULL; } while (!p->err && (p->sym == B_EQ || p->sym == B_NEQ || p->sym == B_DOTEQ || p->sym == B_DOTNEQ)) { t = newb2(p->sym, t, NU...
expr2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *expr3(parser *p) { NODE *t; if (p->err) return 0; t = expr4(p); if (!t) return 0; while (!p->err && (p->sym == 15 || p->sym == 14 || p->sym == 30 || p->sym == 29 || p->sym == 17 || p->sym == 16 || p->sym == 32 || p->sym == 31)) { t = newb2(p->sym, t, 0); if (t) { ...
static NODE *expr3(parser *p) { NODE *t; #if SDEBUG fprintf(stderr, "expr3: starting...\n"); #endif if (p->err || (t = expr4(p)) == NULL) { return NULL; } while (!p->err && (p->sym == B_GT || p->sym == B_LT || p->sym == B_DOTGT || p->sym == B_DOTLT || p->sym == B_GTE || p->sym == B...
expr3
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *expr4(parser *p) { NODE *t; if (p->err) return 0; t = term(p); if (!t) return 0; while (!p->err && (p->sym == 7 || p->sym == 8 || p->sym == 26 || p->sym == 27 || p->sym == 36 || p->sym == 37 || p->sym == 38 || p->sym == 22 || p->sym == 40 || p->sym == 41)) { t =...
static NODE *expr4(parser *p) { NODE *t; #if SDEBUG fprintf(stderr, "expr4: starting...\n"); #endif if (p->err || (t = term(p)) == NULL) { return NULL; } while (!p->err && (p->sym == B_ADD || p->sym == B_SUB || p->sym == B_DOTADD || p->sym == B_DOTSUB || p->sym == B_HCAT || p->sym ==...
expr4
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double expx2(double x, int sign) { double v3; double xa; double u; double u1; double m; xa = fabs(x); if (sign < 0) xa = -xa; m = floor(xa * 128.0 + 0.5) * 0.0078125; u = m * m; u1 = (xa - m) * (xa - m) + (m + m) * (xa - m); if (sign < 0) { u = -u; u1 = -u1; } if (u + u1 > MAXLOG)...
double expx2(double x, int sign) { double u, u1, m, f; x = fabs(x); if (sign < 0) { x = -x; } m = MINV * floor(M * x + 0.5); f = x - m; u = m * m; u1 = 2 * m * f + f * f; if (sign < 0) { u = -u; u1 = -u1; } if (u + u1 > MAXLOG) { return INFINITY; } u = exp(u) * exp(u1); ...
expx2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void extend_function_sample_range(int addobs) { fncall *call; call = current_function_call(); if (call) call->obs.added += addobs; }
void extend_function_sample_range(int addobs) { fncall *call = current_function_call(); if (call != NULL) { call->obs.added += addobs; } }
extend_function_sample_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int extend_loop_dataset(LOOP_STORE *lstore) { double v2; int i; int t; int oldn; int n; double *x; oldn = lstore->dset->n; n = oldn + 512; for (i = 0; i < lstore->dset->v; ++i) { x = (double *)realloc(lstore->dset->Z[i], 8LL * n); if (!x) return 12; lstore->dset->Z[i] = x; for (...
static int extend_loop_dataset(LOOP_STORE *lstore) { double *x; int oldn = lstore->dset->n; int n = oldn + DEFAULT_NOBS; int i, t; for (i = 0; i < lstore->dset->v; i++) { x = realloc(lstore->dset->Z[i], n * sizeof *x); if (x == NULL) { return E_ALLOC; } lstore->dset->Z[i] = x; for (...
extend_loop_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int extend_markers(DATASET *dset, int old_n, int new_n) { _BOOL4 err; char **S; S = (char **)realloc(dset->S, 8LL * new_n); err = 0; if (!S) return 1; dset->S = S; while (old_n < new_n && !err) { S[old_n] = (char *)malloc(0x10u); err = S[old_n++] == 0; } return err; }
static int extend_markers(DATASET *dset, int old_n, int new_n) { char **S = realloc(dset->S, new_n * sizeof *S); int t, err = 0; if (S == NULL) { err = 1; } else { dset->S = S; for (t = old_n; t < new_n && !err; t++) { S[t] = malloc(OBSLEN); if (S[t] == NULL) { err = 1; } ...
extend_markers
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *extend_series(const double *z, int n) { int t; double *x; x = (double *)malloc(8LL * n); if (x) { *x = NAN; for (t = 1; t < n; ++t) x[t] = z[t - 1]; } return x; }
static double *extend_series(const double *z, int n) { double *x = malloc(n * sizeof *x); if (x != NULL) { int t; x[0] = NADBL; for (t = 1; t < n; t++) { x[t] = z[t - 1]; } } return x; }
extend_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *extract_Q(kalman *K, const gretl_matrix *Sim0) { int i; int j; gretl_matrix *Q; Q = gretl_matrix_alloc(K->r, K->r); if (Q) { for (i = 0; i < K->r; ++i) { for (j = 0; j < K->r; ++j) Q->val[j * Q->rows + i] = Sim0->val[j * Sim0->rows + i]; } } return Q; }
static gretl_matrix *extract_Q(kalman *K, const gretl_matrix *Sim0) { gretl_matrix *Q; double x; int i, j; Q = gretl_matrix_alloc(K->r, K->r); if (Q != NULL) { for (i = 0; i < K->r; i++) { for (j = 0; j < K->r; j++) { x = gretl_matrix_get(Sim0, i, j); gretl_matrix_set(Q, i, j, x); ...
extract_Q
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int extract_lhs_and_op(const char **ps, parser *p, char *opstr) { char *v3; _BOOL4 quoted; int i; int n; int err; int lhlen; char *lhs; const char *s; char *test; s = *ps; quoted = 0; n = 0; err = 0; if (p->targ != 99 && !strchr(s, 61)) { p->flags |= 8u; p->lh.expr = gretl_strdup(s)...
static int extract_lhs_and_op(const char **ps, parser *p, char *opstr) { const char *s = *ps; int quoted = 0; int i, n = 0; int err = 0; #if LHDEBUG fprintf(stderr, "extract_lhs_and_op: input='%s'\n", s); #endif if (p->targ != UNK && strchr(s, '=') == NULL) { p->flags |= P_DECL; p->lh.expr = gret...
extract_lhs_and_op
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int extract_varname(char *targ, const char *src, int *len) { int err; err = 0; *targ = 0; *len = gretl_namechar_spn(src); if (*len > 31) return 14; strncat(targ, src, *len); return err; }
int extract_varname(char *targ, const char *src, int *len) { int err = 0; *targ = '\0'; *len = gretl_namechar_spn(src); if (*len >= VNAMELEN) { err = E_UNKVAR; } else { strncat(targ, src, *len); } return err; }
extract_varname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *factor(parser *p) { int sym; int upsym; NODE *t; if (p->sym == 8) { sym = 1; } else if (p->sym == 7) { sym = 2; } else { sym = p->sym; } if (p->err) return 0; if (sym <= 0 || sym >= 4) { t = powterm(p, 0); if (t) { upsym = p->sym; while (!p->err && (p->sym ==...
static NODE *factor(parser *p) { int sym = p->sym == B_SUB ? U_NEG : p->sym == B_ADD ? U_POS : p->sym; NODE *t; #if SDEBUG fprintf(stderr, "factor: starting...\n"); #endif if (p->err) { return NULL; } if (unary_op(sym) && sym != U_ADDR) { if (p->ch == 0) { context_error(0, p, "factor"); ...
factor
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int factor_check(gnuplot_info *gi, const DATASET *dset) { char *v2; int err; int v3; int T; const double *d; unsigned long v8; v8 = __readfsqword(0x28u); err = 0; v3 = 0; if (*gi->list == 3) { v3 = gi->list[3]; if (!accept_as_discrete(dset, v3, 0)) err = 2; } else { err = 2; }...
static int factor_check(gnuplot_info *gi, const DATASET *dset) { int err = 0; int v3 = 0; if (gi->list[0] != 3) { err = E_DATA; } else { v3 = gi->list[3]; if (!accept_as_discrete(dset, v3, 0)) { err = E_DATA; } } if (err) { gretl_errmsg_set(_("You must supply three variables, the...
factor_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int factorized_boxplot_check(const int *list, const DATASET *dset) { char *v2; int err; err = 0; if (*list != 2) return 2; if (!accept_as_discrete(dset, list[2], 0)) { v2 = gettext( "You must supply two variables, the second of which is discrete"); gretl_errmsg_set(v2); return 2; } ...
static int factorized_boxplot_check(const int *list, const DATASET *dset) { int err = 0; if (list[0] != 2) { err = E_DATA; } else { int v2 = list[2]; if (!accept_as_discrete(dset, v2, 0)) { gretl_errmsg_set(_("You must supply two variables, the second of " "which is ...
factorized_boxplot_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fc_add_eps(Forecast *fc, int n) { int t; int err; err = 0; fc->eps = (double *)malloc(8LL * n); if (!fc->eps) return 12; for (t = 0; t < n; ++t) fc->eps[t] = 0.0; return err; }
static int fc_add_eps(Forecast *fc, int n) { int t, err = 0; fc->eps = malloc(n * sizeof *fc->eps); if (fc->eps == NULL) { err = E_ALLOC; } else { for (t = 0; t < n; t++) { fc->eps[t] = 0.0; } } return err; }
fc_add_eps
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *fc_matrix_from_list(NODE *n, int n1, parser *p) { int v3; gretl_matrix *ret; ret = 0; if (p->dset) v3 = p->dset->t2 - p->dset->t1 + 1; else v3 = 0; if (v3 == n1) return gretl_matrix_data_subset(n->v.ivec, p->dset, p->dset->t1, p->dset->t2, 0, &p...
static gretl_matrix *fc_matrix_from_list(NODE *n, int n1, parser *p) { gretl_matrix *ret = NULL; if (sample_size(p->dset) != n1) { p->err = E_NONCONF; } else { ret = gretl_matrix_data_subset(n->v.ivec, p->dset, p->dset->t1, p->dset->t2, M_MISSING_OK, &p->err); } re...
fc_matrix_from_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void fcast_get_continuous_range(const FITRESID *fr, int *pt1, int *pt2) { int t; int ta; int t1; int t2; t1 = fr->t1; t2 = fr->t2; for (t = t1; t <= t2 && (fabs(fr->actual[t]) > 1.797693134862316e308 || fabs(fr->fitted[t]) > 1.797693134862316e308); ++t) ++t1; for (...
void fcast_get_continuous_range(const FITRESID *fr, int *pt1, int *pt2) { int t, t1 = fr->t1, t2 = fr->t2; for (t = t1; t <= t2; t++) { if (na(fr->actual[t]) || na(fr->fitted[t])) { t1++; } else { break; } } for (t = t2; t >= t1; t--) { if (na(fr->actual[t]) || na(fr->fitted[t])) {...
fcast_get_continuous_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double fcast_get_ldv(Forecast *fc, int i, int t, int lag, const DATASET *dset) { int p; _BOOL4 fc_ok; double ldv; p = t - lag; if (t - lag >= 0) ldv = dset->Z[i][p]; else ldv = NAN; if (fc->method && p >= 0) { fc_ok = fabs(fc->yhat[p]) <= 1.797693134862316e308; if (fc->method == 1) { ...
static double fcast_get_ldv(Forecast *fc, int i, int t, int lag, const DATASET *dset) { int p = t - lag; double ldv; if (p < 0) { ldv = NADBL; } else { ldv = dset->Z[i][p]; } #if AR_DEBUG fprintf(stderr, "fcast_get_ldv: i=%d, t=%d, lag=%d; " "initial...
fcast_get_ldv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fcast_get_limit(const char *s, DATASET *dset) { char *v2; int err; double x; unsigned long v7; v7 = __readfsqword(0x28u); err = 0; if (gretl_is_scalar(s)) x = gretl_scalar_get_value(s, 0); else x = generate_scalar(s, dset, &err); if (x >= 1.0 && x <= (double)dset->n) return (int)(x - ...
static int fcast_get_limit(const char *s, DATASET *dset) { double x; int t, err = 0; if (gretl_is_scalar(s)) { x = gretl_scalar_get_value(s, NULL); } else { x = generate_scalar(s, dset, &err); } if (x < 1 || x > dset->n) { gretl_error_clear(); gretl_errmsg_set(_("Observation number out of ...
fcast_get_limit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fcast_get_t2max(const int *list, const int *dvlags, const MODEL *pmod, const DATASET *dset, int ftype) { int i; int t; int all_ok; int vi; const double *ay; ay = 0; if (pmod->ci == 8 && !ftype) ay = dset->Z[gretl_model_get_depvar(pmod)]; for (t = pmod->t2; t < dset->n; ++t) ...
static int fcast_get_t2max(const int *list, const int *dvlags, const MODEL *pmod, const DATASET *dset, int ftype) { const double *ay = NULL; int i, vi, t; if (pmod->ci == ARMA && ftype == FC_STATIC) { int yno = gretl_model_get_depvar(pmod); ay = dset->Z[yno]; } for (t = p...
fcast_get_t2max
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fcast_make_midas_laglists(midas_term *mterms, int nmidas, DATASET *dset) { int err; int i; midas_term *mt; int *mlist; unsigned long v9; v9 = __readfsqword(0x28u); err = 0; for (i = 0; i < nmidas && !err; ++i) { mt = &mterms[i]; mlist = make_midas_laglist(mt, dset, &err); if (!err) { ...
static int fcast_make_midas_laglists(midas_term *mterms, int nmidas, DATASET *dset) { midas_term *mt; int *mlist; int i, err = 0; for (i = 0; i < nmidas && !err; i++) { mt = &mterms[i]; mlist = make_midas_laglist(mt, dset, &err); if (!err) { if (!prelag(mt...
fcast_make_midas_laglists
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fcast_not_feasible(const MODEL *pmod, const DATASET *dset) { char *v2; char *v3; char *v4; int ret; ret = 2; if (pmod->ci != 93 || (pmod->opt & 2) == 0) { if (pmod->submask) { if (dset->submask) { if (submasks_match(dset, pmod)) { return 0; } else if (!fullset || ful...
int fcast_not_feasible(const MODEL *pmod, const DATASET *dset) { int ret = E_DATA; if (pmod->ci == PANEL && (pmod->opt & OPT_B)) { ; } else if (pmod->submask == NULL) { if (dset->submask == NULL) { ret = 0; } else if (dataset_is_cross_section(dset)) { ret = 0; } else { gretl_...
fcast_not_feasible
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void fcast_print_x(double x, int n, int pmax, PRN *prn) { if (pmax == 666 || fabs(x) > 1.797693134862316e308) gretl_printxn(x, n, prn); else pprintf(prn, "%*.*f", n - 2, pmax, x); }
static void fcast_print_x(double x, int n, int pmax, PRN *prn) { if (pmax != PMAX_NOT_AVAILABLE && !na(x)) { pprintf(prn, "%*.*f", n - 2, pmax, x); } else { gretl_printxn(x, n, prn); } }
fcast_print_x
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void fcast_print_y_data(const double *x, const double *y, int t0, int t1, int t2, FILE *fp) { double v6; int i; int n; int t; n = t2 - t0 + 1; for (i = 0; i < n; ++i) { t = t0 + i; if (t0 + i < t1) v6 = NAN; else v6 = y[t]; fprintf(fp, "%.10g ", x[t]); ...
static void fcast_print_y_data(const double *x, const double *y, int t0, int t1, int t2, FILE *fp) { int i, t, n = t2 - t0 + 1; double yt; for (i = 0; i < n; i++) { t = t0 + i; yt = t < t1 ? NADBL : y[t]; fprintf(fp, "%.10g ", x[t]); write_gp_dataval(yt, fp, 1); }...
fcast_print_y_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double fcast_transform(double xb, const MODEL *pmod, int t, const double *offset, double lmax) { int v5; double v6; double v7; int ci; double yf; ci = pmod->ci; yf = xb; switch (ci) { case 133: if (xb < 0.0) return 0.0; return yf; case 70: if (!gretl_model_g...
static double fcast_transform(double xb, const MODEL *pmod, int t, const double *offset, double lmax) { int ymin, ci = pmod->ci; double yf = xb; if (ci == TOBIT) { if (xb < 0.0) { yf = 0.0; } } else if (ci == LOGIT) { if (gretl_model_get_int(pmod, "ordered")) { ...
fcast_transform
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *fcstats_node(NODE *l, NODE *m, NODE *r, parser *p) { int v4; int v5; int v6; int v7; gretlopt Fopt; gretlopt Fopta; int free_Fmat; int n; gretl_matrix *Fmat; const double *x; const double *y; NODE *ret; ret = get_aux_node(p, 57, 0, 2); if ((p->flags & 2) != 0) { Fmat = 0; x = ...
static NODE *fcstats_node(NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (starting(p)) { gretl_matrix *Fmat = NULL; const double *x = NULL, *y = NULL; gretlopt Fopt = OPT_D; int U2, free_Fmat = 0; int n = 0, n2 = 0; if (l->t == SERIES || m->t == SERIES || m->t =...
fcstats_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fcstats_sample_check(const double *y, const double *f, int *pt1, int *pt2, int *nmiss) { int t1; int t2; int t; int ta; int tb; int tc; int err; t1 = *pt1; t2 = *pt2; err = 0; for (t = *pt1; t <= t2 && (fabs(y[t]) > 1.797693134862316e308 || ...
static int fcstats_sample_check(const double *y, const double *f, int *pt1, int *pt2, int *nmiss) { int t1 = *pt1; int t2 = *pt2; int t, err = 0; for (t = t1; t <= t2; t++) { if (na(y[t]) || na(f[t])) { t1++; } else { break; } } for (t = t2; t >= t1;...
fcstats_sample_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fdjac2_(S_fp fcn, int m, int n, int quality, double *x, double *fvec, double *fjac, int ldfjac, int *iflag, double epsfcn, double *wa, void *p) { void *v13; double v14; void *pa; double *waa; double epsfcna; int *iflaga; double *fjaca; double *fveca; double *xa; int quali...
int fdjac2_(S_fp fcn, int m, int n, int quality, double *x, double *fvec, double *fjac, int ldfjac, int *iflag, double epsfcn, double *wa, void *p) { double eps = sqrt(DBL_EPSILON); double h, temp; int i, j, user_eps = 0; if (epsfcn >= DBL_EPSILON) { user_eps = 1; eps = sqrt(eps...
fdjac2_
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fdjac_allocate(int m, int n, gretl_matrix **J, double **w, double **f) { *J = gretl_matrix_alloc(m, n); if (!*J) return 12; *w = (double *)malloc(8LL * m); *f = (double *)malloc(8LL * m); if (*w && *f) return 0; else return 12; }
static int fdjac_allocate(int m, int n, gretl_matrix **J, double **w, double **f) { *J = gretl_matrix_alloc(m, n); if (*J == NULL) { return E_ALLOC; } *w = malloc(m * sizeof **w); *f = malloc(m * sizeof **f); if (*w == NULL || *f == NULL) { return E_ALLOC; } return 0...
fdjac_allocate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double fdtr(double a, double b, double x) { if (a >= 1.0 && b >= 1.0 && x >= 0.0) return incbet(a * 0.5, b * 0.5, a * x / (b + a * x)); mtherr("fdtr", 1); return 0.0; }
double fdtr(double a, double b, double x) { double w; if (a < 1 || b < 1 || x < 0.0) { mtherr("fdtr", CEPHES_DOMAIN); return 0.0; } w = a * x; w = w / (b + w); return incbet(0.5 * a, 0.5 * b, w); }
fdtr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double fdtrc(double a, double b, double x) { if (a >= 1.0 && b >= 1.0 && x >= 0.0) return incbet(b * 0.5, a * 0.5, b / (a * x + b)); mtherr("fdtrc", 1); return 0.0; }
double fdtrc(double a, double b, double x) { double w; if (a < 1 || b < 1 || x < 0.0) { mtherr("fdtrc", CEPHES_DOMAIN); return 0.0; } w = b / (b + a * x); return incbet(0.5 * b, 0.5 * a, w); }
fdtrc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double fdtri(double a, double b, double y) { double v4; double v5; if (a >= 1.0 && b >= 1.0 && y > 0.0 && y <= 1.0) { if (incbet(b * 0.5, a * 0.5, 0.5) <= y && y >= 0.001) { v5 = incbi(a * 0.5, b * 0.5, 1.0 - y); return b * v5 / ((1.0 - v5) * a); } else { v4 = incbi(b * 0.5, a * 0.5, y)...
double fdtri(double a, double b, double y) { double w, x; if (a < 1 || b < 1 || y <= 0.0 || y > 1.0) { mtherr("fdtri", CEPHES_DOMAIN); return 0.0; } w = incbet(0.5 * b, 0.5 * a, 0.5); if (w > y || y < 0.001) { w = incbi(0.5 * b, 0.5 * a, y); x = (b - b * w) / (a * w); } else { w = inc...
fdtri
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *fe_units_list(const panelmod_t *pan) { int v1; int i; int ia; int j; int n; int *ulist; n = 0; for (i = 0; i < pan->nunits; ++i) { if (pan->unit_obs[i] > 0) ++n; } ulist = gretl_list_new(n); if (ulist) { j = 1; for (ia = 0; ia < pan->nunits; ++ia) { if (pan->unit_obs[...
static int *fe_units_list(const panelmod_t *pan) { int *ulist = NULL; int i, j, n = 0; for (i = 0; i < pan->nunits; i++) { if (pan->unit_obs[i] > 0) { n++; } } ulist = gretl_list_new(n); if (ulist != NULL) { j = 1; for (i = 0; i < pan->nunits; i++) { if (pan->unit_obs[i] > 0) ...
fe_units_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void femod_regular_vcv(MODEL *pmod) { int i; int n; double s2; if (pmod->vcv) { n = pmod->ncoeff * (pmod->ncoeff + 1) / 2; s2 = pmod->sigma * pmod->sigma; for (i = 0; i < n; ++i) pmod->vcv[i] = pmod->vcv[i] * s2; } else { makevcv(pmod, pmod->sigma); } }
static void femod_regular_vcv(MODEL *pmod) { if (pmod->vcv == NULL) { makevcv(pmod, pmod->sigma); } else { int i, k = pmod->ncoeff; int n = k * (k + 1) / 2; double s2 = pmod->sigma * pmod->sigma; for (i = 0; i < n; i++) { pmod->vcv[i] *= s2; } } }
femod_regular_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
DATASET *fetch_full_dataset() { return fullset; }
DATASET *fetch_full_dataset(void) { return fullset; }
fetch_full_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *fevd_node(NODE *l, NODE *m, NODE *r, parser *p) { char *FEVD_matrix; GretlObjType otype; int shock; int targ; NODE *ret; void *ptr; unsigned long v13; v13 = __readfsqword(0x28u); ret = get_aux_node(p, 57, 0, 2); if (ret) { targ = node_get_int(l, p); shock = 0; if (!p->err && m && ...
static NODE *fevd_node(NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL) { int targ = node_get_int(l, p); int shock = 0; if (!p->err && !null_node(m)) { shock = node_get_int(m, p); } if (!p->err && !null_node(r) && r->t != BUNDLE) { p->err = E...
fevd_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int few_vals(int t1, int t2, const double *x, double *ratio) { int v4; int match; int i; int n; int nv; double test[34]; *(_QWORD *)&test[33] = __readfsqword(0x28u); n = 0; nv = 0; while (t1 <= t2) { if (fabs(x[t1]) <= 1.797693134862316e308) { match = 0; for (i = 0; i < nv; ++i) { ...
static int few_vals(int t1, int t2, const double *x, double *ratio) { double test[FEW_VALS]; int match; int i, t, n = 0, nv = 0; for (t = t1; t <= t2; t++) { if (!na(x[t])) { match = 0; for (i = 0; i < nv; i++) { if (x[t] == test[i]) { match = 1; break; } ...
few_vals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fft_allocate(double **ffx, complex_double **ffz, gretl_matrix **ret, int r, int c, int inverse, int newstyle) { *ffx = (double *)fftw_malloc(8LL * r); if (!*ffx) return 12; *ffz = (complex_double *)fftw_malloc(16LL * (r / 2 + 1 + r % 2)); if (*ffz) { if (!newstyle || inverse) ...
static int fft_allocate(double **ffx, double complex **ffz, gretl_matrix **ret, int r, int c, int inverse, int newstyle) { *ffx = fftw_malloc(r * sizeof **ffx); if (*ffx == NULL) { return E_ALLOC; } *ffz = fftw_malloc((r / 2 + 1 + r % 2) * sizeof **ffz); if (*ffz == NULL) { f...
fft_allocate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fft_is_hermitian(const gretl_matrix *y) { int i; int n2; if (!row_is_real(y, 0)) return 0; n2 = y->rows / 2; if ((y->rows & 1) == 0 && !row_is_real(y, n2)) return 0; for (i = 1; i < n2; ++i) { if (!rows_are_conjugate(y, i, y->rows - i)) return 0; } return 1; }
static int fft_is_hermitian(const gretl_matrix *y) { if (!row_is_real(y, 0)) { return 0; } else { int i, k, n2 = y->rows / 2; if (y->rows % 2 == 0 && !row_is_real(y, n2)) { return 0; } for (i = 1; i < n2; i++) { k = y->rows - i; if (!rows_are_conjugate(y, i, k)) { ret...
fft_is_hermitian
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void figure_colsep(int namelen, int ncols, int *w, int *colsep) { int j; int n; n = ncols * *colsep + namelen; for (j = 0; j < ncols; ++j) n += w[j]; if (66 - n > ncols) ++*colsep; }
static void figure_colsep(int namelen, int ncols, int *w, int *colsep) { int j, n = namelen + ncols * *colsep; for (j = 0; j < ncols; j++) { n += w[j]; } n = 68 - (n + 2); if (n > ncols) { *colsep += 1; } }
figure_colsep
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gchar *file_get_content(const char *fname, gsize *bytes, PRN *prn, int *err) { GError *gerr; gchar *buf[2]; buf[1] = (gchar *)__readfsqword(0x28u); gerr = 0; buf[0] = 0; if ((unsigned int)g_file_get_contents(fname, buf, bytes, &gerr)) { pprintf(prn, "got content, %lu bytes\n", *bytes); } else { *...
static gchar *file_get_content(const char *fname, gsize *bytes, PRN *prn, int *err) { GError *gerr = NULL; gchar *buf = NULL; int ok; ok = g_file_get_contents(fname, &buf, bytes, &gerr); if (ok) { pprintf(prn, "got content, %" G_GSIZE_FORMAT " bytes\n", *bytes); } else {...
file_get_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int file_set_content(const char *fname, const gchar *buf, gsize buflen) { int err; GError *gerr[2]; gerr[1] = (GError *)__readfsqword(0x28u); gerr[0] = 0; err = 0; if (!(unsigned int)g_file_set_contents(fname, buf, buflen, gerr)) { err = 11; if (gerr[0]) { gretl_errmsg_set(gerr[0]->message); ...
static int file_set_content(const char *fname, const gchar *buf, gsize buflen) { GError *gerr = NULL; int ok, err = 0; ok = g_file_set_contents(fname, buf, buflen, &gerr); if (!ok) { err = E_FOPEN; if (gerr != NULL) { gretl_errmsg_set(gerr->message); g_error_free(gerr); } } return...
file_set_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_E_matrix(gretl_matrix *E, const MODEL *pmod, const int *endolist, const int *reglist, const int *instlist, const char *missmask, const DATASET *dset) { int err; int i; int ny; gretl_matrix *X; gretl_matrix *Y; int *ylist; unsigned long v18; v18 = __readfsqwo...
static int fill_E_matrix(gretl_matrix *E, const MODEL *pmod, const int *endolist, const int *reglist, const int *instlist, const char *missmask, const DATASET *dset) { gretl_matrix *Y = NULL; gretl_matrix *X = NULL; int ny, *ylist; int i...
fill_E_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void fill_cset_t(const DATASET *dset, int *startday, DATASET *cset, int cset_t, int compfac, int qmonth) { int v6; int y; int p; int pstart; int effn; int ndays; int i; int j; int k; int t; int t0; int s; double zsum; const double *z; double zbar; int idx[32]; double c...
static void fill_cset_t(const DATASET *dset, int *startday, DATASET *cset, int cset_t, int compfac, int qmonth) { char obs[OBSLEN]; double cvec[30]; int idx[30]; const double *z; int y, p, pstart = 0; int effn, ndays = 0; int i, j, k, s, t, t0; double zsum = 0.0; t0 = *startda...
fill_cset_t
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_dataset_dates_series(const DATASET *dset, double *x) { int pd; int T; int err; int i; int N; double sd0; double *dest; size_t bytes; err = 0; if (dset && dset->structure == 2) { pd = dset->panel_pd; sd0 = dset->panel_sd0; T = dset->pd; } else { pd = dset->pd; sd0 = ds...
int fill_dataset_dates_series(const DATASET *dset, double *x) { double sd0; int pd, T; int err = 0; if (dataset_is_panel(dset)) { pd = dset->panel_pd; sd0 = dset->panel_sd0; T = dset->pd; } else { pd = dset->pd; sd0 = dset->sd0; T = dset->n; } if (dataset_has_panel_time(dset)) ...
fill_dataset_dates_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_day_of_week_array(double *dow, const double *y, const double *m, const double *d, const DATASET *dset) { double *v5; int err; int yt; int julian; int t; int mt; int dt; unsigned long v16; v16 = __readfsqword(0x28u); err = 0; for (t = dset->t1; t <= dset->t2 && ...
int fill_day_of_week_array(double *dow, const double *y, const double *m, const double *d, const DATASET *dset) { int yt, mt, dt; int julian; int t, err = 0; for (t = dset->t1; t <= dset->t2 && !err; t++) { julian = 0; yt = (int)y[t]; if (yt < 0) { yt = -yt; j...
fill_day_of_week_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_fcstats_column(gretl_matrix *m, const double *y, const double *f, int T, gretlopt opt, int col) { double v6; double *v7; int Ta; int do_theil; int ok_T; int t; int err; int show_MSE; int do_U2; double ME; double MEa; double MSE; double MSEa; double MAE; dou...
static int fill_fcstats_column(gretl_matrix *m, const double *y, const double *f, int T, gretlopt opt, int col) { double ME, MSE, MAE, MPE, MAPE, U; double Unum, Uden1, Uden2; double fe, u[2]; int do_theil = 0; int do_U2 = (opt & OPT_T); int ok_T = T; int t, err = 0; ME =...
fill_fcstats_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void fill_hat_vec(gretl_matrix *Q, gretl_matrix *h) { double v2; int t; int i; double ht; for (t = 0; t < Q->rows; ++t) { ht = 0.0; for (i = 0; i < Q->cols; ++i) { v2 = Q->val[i * Q->rows + t]; ht = v2 * v2 + ht; } h->val[t] = ht; } }
static void fill_hat_vec(gretl_matrix *Q, gretl_matrix *h) { int t, i; for (t = 0; t < Q->rows; t++) { double q, ht = 0.0; for (i = 0; i < Q->cols; i++) { q = gretl_matrix_get(Q, t, i); ht += q * q; } h->val[t] = ht; } }
fill_hat_vec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_isoweek_array(double *wknum, const double *y, const double *m, const double *d, const DATASET *dset) { int v5; int err; int t; int yt; int mt; int dt; unsigned long v15; v15 = __readfsqword(0x28u); err = 0; for (t = dset->t1; t <= dset->t2 && !err; ++t) { yt = (i...
int fill_isoweek_array(double *wknum, const double *y, const double *m, const double *d, const DATASET *dset) { int yt, mt, dt; int t, err = 0; for (t = dset->t1; t <= dset->t2 && !err; t++) { yt = (int)y[t]; mt = (int)m[t]; dt = (int)d[t]; wknum[t] = iso_week_number(yt, mt...
fill_isoweek_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_monthlen_array(double *mlen, int t1, int t2, int wkdays, int mo, int yr, const double *movec, const double *yrvec, int julian) { int err; int t; unsigned long v16; v16 = __readfsqword(0x28u); err = 0; if (!movec && !yrvec) return 17; for (t = t...
int fill_monthlen_array(double *mlen, int t1, int t2, int wkdays, int mo, int yr, const double *movec, const double *yrvec, int julian) { int t, err = 0; if (movec == NULL && yrvec == NULL) { return E_INVARG; } for (t = t1; t <= t2; t++) { if (movec != N...
fill_monthlen_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_op_model(MODEL *pmod, const int *list, const DATASET *dset, op_container *OC, int fncount, int grcount) { double v6; double *v7; int v8; int err; int correct; int i; int s; int t; int npar; int nx; int v; double Xb; gretl_matrix *H; char tmp[24]; unsigned long v2...
static int fill_op_model(MODEL *pmod, const int *list, const DATASET *dset, op_container *OC, int fncount, int grcount) { gretl_matrix *H = NULL; int npar = OC->k; int nx = OC->nx; int correct = 0; double Xb; int i, s, t, v; int err = 0; H = ordered_hessian_inverse(OC, &err); ...
fill_op_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_permutation_vector(gretl_vector *v, int n) { int rows; char *v4; unsigned int na; int i; int ia; int k; unsigned int u; int *pool; na = n; if (n <= 0) return 17; if (v) { if (v->cols == 1) { rows = v->rows; } else if (v->rows == 1) { rows = v->cols; } else { ...
int fill_permutation_vector(gretl_vector *v, int n) { int *pool = NULL; int n_tail; unsigned u; int i, k; if (n <= 0) { return E_INVARG; } k = gretl_vector_get_length(v); if (k <= 0 || k > n) { gretl_errmsg_sprintf(_("Invalid number of draws %d"), k); return E_INVARG; } pool = malloc(...
fill_permutation_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fill_system_forecast(FITRESID *fr, int i, int yno, GRETL_VAR *var, equation_system *sys, const gretl_matrix *F, DATASET *dset) { int s; int t; int ta; int nf; int err; int m; m = F->cols / 2; err = 0; strcpy(fr->depvar, dset->varname[yno]); for ...
static int fill_system_forecast(FITRESID *fr, int i, int yno, GRETL_VAR *var, equation_system *sys, const gretl_matrix *F, DATASET *dset) { int m = F->cols / 2; int s, t, nf; int err = 0; strcpy(fr->depvar, dset->varname[yno]); for (t = fr->t0;...
fill_system_forecast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void fill_xymd(double *targ, double x) { int rem; *targ = floor(x / 10000.0); rem = (int)(x - *targ * 10000.0); targ[1] = (double)(rem / 100); targ[2] = (double)rem - 100.0 * targ[1]; }
static void fill_xymd(double *targ, double x) { int rem; targ[0] = floor(x / 10000); rem = x - 10000 * targ[0]; targ[1] = floor(rem / 100); targ[2] = rem - 100 * targ[1]; }
fill_xymd
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int filter_comments(char *s, CMD *cmd) { int v3; CmdFlags v4; _BOOL4 quoted; int ignore; int j; int filt; char *p; char tmp[65544]; unsigned long v11; v11 = __readfsqword(0x28u); p = s; quoted = 0; ignore = cmd->flags & 1; j = 0; filt = 0; if (strlen(s) <= 0xFFFF) { while (*p && (qu...
static int filter_comments(char *s, CMD *cmd) { char tmp[MAXLINE]; char *p = s; int quoted = 0; int ignore = (cmd->flags & CMD_IGNORE); int j = 0, filt = 0; if (strlen(s) >= MAXLINE) { cmd->err = E_TOOLONG; return 0; } while (*p) { if (!quoted && !ignore && *p == '#') { break; } ...
filter_comments
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *filter_matrix(gretl_matrix *X, gretl_vector *A, gretl_vector *C, double y0, gretl_matrix *x0, int *err) { int i; int ia; int j; int r; int c; gretl_matrix *Y; double *a; double *b; r = X->rows; c = X->cols; if (X && X->is_complex == 1 || A && A->is_comple...
gretl_matrix *filter_matrix(gretl_matrix *X, gretl_vector *A, gretl_vector *C, double y0, gretl_matrix *x0, int *err) { int r = X->rows; int c = X->cols; gretl_matrix *Y = NULL; double *a = NULL, *b = NULL; int i, j; if (gretl_is_complex(X) || gretl_is_complex(A) || gretl_is_com...
filter_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int filter_series(const double *x, double *y, const DATASET *dset, gretl_vector *A, gretl_vector *C, double y0, gretl_vector *x0) { int t1; int t2; int err; unsigned long v14; v14 = __readfsqword(0x28u); t1 = dset->t1; t2 = dset->t2; err = series_adjust_sample(x, &t1...
int filter_series(const double *x, double *y, const DATASET *dset, gretl_vector *A, gretl_vector *C, double y0, gretl_vector *x0) { int t1 = dset->t1; int t2 = dset->t2; int err; err = series_adjust_sample(x, &t1, &t2); if (!err) { err = filter_vector(x, y, t1, t2, A,...
filter_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int filter_vector(const double *x, double *y, int t1, int t2, gretl_vector *A, gretl_vector *C, double y0, gretl_vector *x0) { int rows; int cols; int v11; int v12; double v13; int v14; int t; int ta; int tb; int tc; int s; int sa; int i; int ia; int amax; int cmax; i...
static int filter_vector(const double *x, double *y, int t1, int t2, gretl_vector *A, gretl_vector *C, double y0, gretl_vector *x0) { int t, s, i, n; int amax, cmax; double xlag, ylag; double coef, *e; int x0len = 0; int err = 0; if (gretl_is_null_matrix(...
filter_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_3d_plot_input_file(FILE *fp) { int err; err = 0; if (!fp) return 1; fclose(fp); graph_file_written = 1; return err; }
int finalize_3d_plot_input_file(FILE *fp) { int err = 0; if (fp != NULL) { fclose(fp); graph_file_written = 1; } else { err = 1; } return err; }
finalize_3d_plot_input_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void finalize_autocorr_test(MODEL *pmod, ModelTest *test, gretlopt opt, PRN *prn) { if ((opt & 0x100) == 0) { if ((opt & 0x10000) != 0) pputc(prn, 10); gretl_model_test_print_direct(test, 1, prn); } if ((opt & 0x40000) != 0) maybe_add_test_to_model(pmod, test); else...
static void finalize_autocorr_test(MODEL *pmod, ModelTest *test, gretlopt opt, PRN *prn) { if (!(opt & OPT_I)) { if (opt & OPT_Q) { pputc(prn, '\n'); } gretl_model_test_print_direct(test, 1, prn); } if (opt & OPT_S) { maybe_add_test_to_model(pmod, test); ...
finalize_autocorr_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_fractint(const double *x, const double *dens, int t1, int t2, int width, const char *vname, gretlopt opt, PRN *prn) { int v8; char *v9; char *v10; double d; char *v12; char *v13; char *v14; char *v15; double v16; char *v17; char *v18; double se; double v21; ...
static int finalize_fractint(const double *x, const double *dens, int t1, int t2, int width, const char *vname, gretlopt opt, PRN *prn) { struct fractint_test ft; gretl_matrix *result = NULL; int do_GPH = opt & (OPT_G | OPT_A); int do_LWE = !(opt & OPT_G...
finalize_fractint
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_hausman_test(panelmod_t *pan, int ci, PRN *prn) { char *v3; int mdiff; int err; mdiff = 0; err = 0; if (pan->bdiff && pan->Sigma) { mdiff = 1; err = bXb(pan); } else if (fabs(pan->H) > 1.797693134862316e308) { err = 2; } if (ci == 95) { if (!err || mdiff && err == 43) ...
static int finalize_hausman_test(panelmod_t *pan, int ci, PRN *prn) { int mdiff = 0, err = 0; if (pan->bdiff != NULL && pan->Sigma != NULL) { mdiff = 1; err = bXb(pan); } else if (na(pan->H)) { err = E_DATA; } if (ci == PANSPEC) { if (!err || (mdiff && err == E_NOTPD)) { save_panspe...
finalize_hausman_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_ivreg_model(MODEL *pmod, MODEL *ols, const int *biglist, const int *mlist, int **ilist, const double **Z, int rv) { int err; int t; int yno; int *endolist; unsigned long v15; v15 = __readfsqword(0x28u); yno = mlist[1]; err = 0; pmod->ci =...
static int finalize_ivreg_model(MODEL *pmod, MODEL *ols, const int *biglist, const int *mlist, int **ilist, const double **Z, int rv) { int *endolist; int yno = mlist[1]; int t, err = 0; pmod->ci = IVREG; pmod->opt = OPT_G; pmod->list = gretl...
finalize_ivreg_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void finalize_liml_model(MODEL *pmod, equation_system *sys) { gretlopt opt; qmemcpy(pmod, *(const void **)sys->models, sizeof(MODEL)); gretl_model_destroy_data_item(pmod, "tslsX"); gretl_model_destroy_data_item(pmod, "endog"); gretl_model_destroy_data_item(pmod, "method"); gretl_model_destroy_data_item(pmo...
static void finalize_liml_model(MODEL *pmod, equation_system *sys) { *pmod = *sys->models[0]; #if SYSDEBUG display_model_data_items(pmod); #endif gretl_model_destroy_data_item(pmod, "tslsX"); gretl_model_destroy_data_item(pmod, "endog"); gretl_model_destroy_data_item(pmod, "method"); gretl_model_destroy_d...
finalize_liml_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_midas_model(MODEL *pmod, midas_info *mi, const char *param, gretlopt opt, const DATASET *dset) { char *v5; int mixed; int i; int ia; int err; int type0; mixed = 0; gretl_model_smpl_init(pmod, dset); v5 = gretl_strdup(param); gretl_model_set_string_as_data(pmod,...
static int finalize_midas_model(MODEL *pmod, midas_info *mi, const char *param, gretlopt opt, const DATASET *dset) { int type0, mixed = 0; int i, err = 0; gretl_model_smpl_init(pmod, dset); gretl_model_set_string_as_data(pmod, "midas_spec", gretl_strdup(param)); if (pmod->ci...
finalize_midas_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_nls_model(MODEL *pmod, nlspec *spec, int perfect, int *glist) { int err; DATASET *dset; dset = spec->dset; pmod->ci = spec->ci; pmod->t1 = spec->t1; pmod->t2 = spec->t2; pmod->full_n = dset->n; pmod->smpl.t1 = spec->dset->t1; pmod->smpl.t2 = spec->dset->t2; err = add_GNR_std_errs_to_mo...
int finalize_nls_model(MODEL *pmod, nlspec *spec, int perfect, int *glist) { DATASET *dset = spec->dset; int err = 0; pmod->ci = spec->ci; pmod->t1 = spec->t1; pmod->t2 = spec->t2; pmod->full_n = dset->n; pmod->smpl.t1 = spec->dset->t1; pmod->smpl.t2 = spec->dset->t2; err = add_GNR_std_errs_to_mode...
finalize_nls_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void finalize_panel_datainfo(DATASET *dset, int nperiods) { int pdp; int den; pdp = nperiods; for (den = 10;; den *= 10) { pdp /= 10; if (!pdp) break; } dset->structure = 2; dset->pd = nperiods; dset->sd0 = 1.0 / (double)den + 1.0; ntolabel(dset->stobs, 0, dset); ntolabel(dset->endobs...
static void finalize_panel_datainfo(DATASET *dset, int nperiods) { int pdp = nperiods; int den = 10.0; while ((pdp = pdp / 10)) { den *= 10; } dset->structure = STACKED_TIME_SERIES; dset->pd = nperiods; dset->sd0 = 1.0 + 1.0 / den; ntolabel(dset->stobs, 0, dset); ntolabel(dset->endobs, dset->n - ...
finalize_panel_datainfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void finalize_panel_subset(DATASET *subset, DATASET *dset, int npad) { int pdp; int den; pdp = subset->pd; for (den = 10;; den *= 10) { pdp /= 10; if (!pdp) break; } subset->sd0 = 1.0 / (double)den + 1.0; ntolabel(subset->stobs, 0, subset); ntolabel(subset->endobs, subset->n - 1, subset);...
static void finalize_panel_subset(DATASET *subset, DATASET *dset, int npad) { int pdp = subset->pd; int den = 10.0; while ((pdp = pdp / 10)) { den *= 10; } subset->sd0 = 1.0 + 1.0 / den; ntolabel(subset->stobs, 0, subset); ntolabel(subset->endobs, subset->n - 1, subset); if (dset->pangrps != NULL...
finalize_panel_subset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int finalize_plot_input_file(FILE *fp) { int err; if (!fp) return 1; fclose(fp); err = gnuplot_make_graph(); if (!err) set_plot_produced(); return err; }
int finalize_plot_input_file(FILE *fp) { int err; if (fp != NULL) { fclose(fp); err = gnuplot_make_graph(); if (!err) { set_plot_produced(); } } else { err = 1; } return err; }
finalize_plot_input_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int find_file_in_dir(const char *fname, const char *dirname, char *fullname, int maxdepth, int depth) { int depthb; int found; GDir *dir; const char *dname; const char *dnamea; stat sbuf; char tmp[4104]; unsigned long v16; v16 = __readfsqword(0x28u); found = 0; dir = gretl_op...
static int find_file_in_dir(const char *fname, const char *dirname, char *fullname, int maxdepth, int depth) { char tmp[FILENAME_MAX]; const gchar *dname; struct stat sbuf; GDir *dir; int found = 0; dir = gretl_opendir(dirname); if (dir == NULL) { return 0; } while (...
find_file_in_dir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int find_function_package_help(const char *targ, PRN *prn, int *err) { int n_dirs; int i; int found; char *gfn; char *pdf; char **dnames; GDir *dir; unsigned long v12; v12 = __readfsqword(0x28u); gfn = 0; pdf = 0; dnames = 0; n_dirs = 0; found = 0; dnames = get_plausible_search_dirs(FUNCS...
static int find_function_package_help(const char *targ, PRN *prn, int *err) { char *gfn = NULL; char *pdf = NULL; char **dnames = NULL; int i, n_dirs = 0; int found = 0; dnames = get_plausible_search_dirs(FUNCS_SEARCH, &n_dirs); for (i = 0; i < n_dirs && !found; i++) { GDir *dir = gretl_opendir(dnam...
find_function_package_help
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int find_gretlpre(const char *path, const char *localname) { int gotit; char test[520]; unsigned long v5; v5 = __readfsqword(0x28u); gotit = 0; if (*localname) { sprintf(test, "%s%s", path, localname); if (!gretl_test_fopen(test, "r")) { strcpy(tex_preamble_file, test); gotit = 1; }...
static int find_gretlpre(const char *path, const char *localname) { char test[MAXLEN]; int err, gotit = 0; if (*localname != '\0') { sprintf(test, "%s%s", path, localname); err = gretl_test_fopen(test, "r"); if (!err) { strcpy(tex_preamble_file, test); gotit = 1; } } if (!gotit)...
find_gretlpre
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double find_hoare(double *a, int n, int h) { int v3; int v4; int l; int r; int i; int j; double x; double w; l = 0; r = n - 1; while (l < r) { x = a[h]; i = l; j = r; while (j >= i) { while (x > a[i]) ++i; while (a[j] > x) --j; if (i <= j) { ...
static double find_hoare(double *a, int n, int h) { double w, x; int l = 0; int r = n - 1; int i, j; while (l < r) { x = a[h]; i = l; j = r; while (j >= i) { while (a[i] < x) i++; while (x < a[j]) j--; if (i <= j) { w = a[i]; a[i++] = a[j]; ...
find_hoare
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double find_hoare_inexact(double *a, double p, double xmin, double xmax, double frac, int n, int hf, int hc) { int i; int ia; double high; double low; if (p >= 0.5) { low = find_hoare(a, n, hf); for (ia = hc; ia < n; ++ia) { if (xmax > a[ia]) xmax = a[ia]; ...
static double find_hoare_inexact(double *a, double p, double xmin, double xmax, double frac, int n, int hf, int hc) { double tmp, high, low; int i; if (p < 0.5) { high = find_hoare(a, n, hc); tmp = xmin; for (i = 0; i < hc; i++) { if (a[i] > tmp) { tmp =...
find_hoare_inexact
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int find_in_subdir(const char *topdir, char *fname, int flags) { int found; GDir *dir; const gchar *dname; char finddir[520]; unsigned long v9; v9 = __readfsqword(0x28u); found = 0; make_finddir(finddir, topdir); dir = gretl_opendir(finddir); if (dir) { while (!found) { dname = (const gch...
static int find_in_subdir(const char *topdir, char *fname, int flags) { GDir *dir; const gchar *dname; char finddir[MAXLEN]; int found = 0; make_finddir(finddir, topdir); dir = gretl_opendir(finddir); if (dir != NULL) { while (!found && (dname = g_dir_read_name(dir))) { if (got_subdir(finddir,...
find_in_subdir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int find_pkg_in_dir(const char *targ, GDir *dir, const char *path, char **gfn, char **pdf) { int found; const char *basename; const char *basenamea; char test[128]; char fullname[520]; unsigned long v14; v14 = __readfsqword(0x28u); found = 0; fullname[0] = 0; if (is_functions_di...
static int find_pkg_in_dir(const char *targ, GDir *dir, const char *path, char **gfn, char **pdf) { const gchar *basename; char fullname[MAXLEN]; char test[128]; int found = 0; *fullname = '\0'; if (is_functions_dir(path)) { while ((basename = g_dir_read_name(dir)) != NULL &...
find_pkg_in_dir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
stacker *find_smatch(const char *oname) { char *name; int i; stacker *smatch; MODEL *pmod; smatch = 0; if (oname && *oname) { for (i = 0; i < n_obj; ++i) { name = gretl_object_get_name(ostack[i].ptr, (GretlObjType)ostack[i].type); if (!strcmp(oname, name)) { smatch = &ostack[i]; ...
static stacker *find_smatch(const char *oname) { stacker *smatch = NULL; if (oname == NULL || *oname == '\0') { if (genr_model.ptr != NULL) { smatch = &genr_model; } else { smatch = &last_model; } } else { const char *test; int i; for (i = 0; i < n_obj; i++) { test = gr...
find_smatch
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GretlType find_target_in_parentage(LOOPSET *loop, const char *s) { int i; char lfmt[16]; char afmt[32]; char vname[40]; unsigned long v8; v8 = __readfsqword(0x28u); sprintf(lfmt, "list %%%d[^ =]", 31); sprintf(afmt, "strings %%%d[^ =]", 31); while (1) { loop = loop->parent; if (!loop) b...
static GretlType find_target_in_parentage(LOOPSET *loop, const char *s) { char lfmt[16], afmt[18], vname[VNAMELEN]; int i; sprintf(lfmt, "list %%%d[^ =]", VNAMELEN - 1); sprintf(afmt, "strings %%%d[^ =]", VNAMELEN - 1); while ((loop = loop->parent) != NULL) { for (i = 0; i < loop->n_cmds; i++) { i...
find_target_in_parentage
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int find_time_var(const DATASET *dset) { int i; int v; const char *tnames[5]; unsigned long v5; v5 = __readfsqword(0x28u); tnames[0] = "year"; tnames[1] = "Year"; tnames[2] = "period"; tnames[3] = "Period"; tnames[4] = 0; for (i = 0; tnames[i]; ++i) { v = series_index(dset, tnames[i]); if...
static int find_time_var(const DATASET *dset) { const char *tnames[] = {"year", "Year", "period", "Period", NULL}; int i, v; for (i = 0; tnames[i] != NULL; i++) { v = series_index(dset, tnames[i]); if (v < dset->v) { return v; } } return 0; }
find_time_var
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double find_x1(double x0, double y0, double *py1, ZFUNC zfunc, void *data) { double v5; double v6; int v7; int negbad; unsigned int i; int warnsave; double x1; double a; double srch[17]; *(_QWORD *)&srch[15] = __readfsqword(0x28u); srch[0] = -0.01; srch[1] = 0.025; srch[2] = -0.05; srch[3] ...
static double find_x1(double x0, double y0, double *py1, ZFUNC zfunc, void *data) { double srch[] = {-0.01, 0.025, -0.05, 0.10, -0.25, 0.50, -1.01, 2.5, -5, 10, -50, 100, -500, 1000}; double x1, y1, a = x0; int warnsave, negbad = 0; int i; warnsave = libset...
find_x1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int first_available_index(joinspec *jspec) { int i; for (i = 6; i < jspec->ncols; ++i) { if (!jspec->colnums[i]) return i; } return -1; }
static int first_available_index(joinspec *jspec) { int i; for (i = JOIN_TARG; i < jspec->ncols; i++) { if (jspec->colnums[i] == 0) { return i; } } return -1; }
first_available_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int first_missing_index(const double *x, int t1, int t2) { while (t1 <= t2) { if (fabs(x[t1]) > 1.797693134862316e308) return t1; ++t1; } return -1; }
int first_missing_index(const double *x, int t1, int t2) { int t; for (t = t1; t <= t2; t++) { if (na(x[t])) { return t; } } return -1; }
first_missing_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fishers_exact_test(const Xtab *tab, PRN *prn) { char *v3; int err; double a; double b; double c; double d; double PL; double PR; double P2; double n; double E0; double P0; double Pi; unsigned long v16; v16 = __readfsqword(0x28u); err = 0; if (tab->rows != 2 || tab->cols != 2) ...
int fishers_exact_test(const Xtab *tab, PRN *prn) { double a, b, c, d, n, E0; double P0, Pi, PL, PR, P2; int err = 0; if (tab->rows != 2 || tab->cols != 2) { return E_DATA; } if (tab->n > 1000) { return E_DATA; } a = tab->f[0][0]; b = tab->f[0][1]; c = tab->f[1][0]; d = tab->f[1][1]; ...
fishers_exact_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fit_resid_add_sderr(FITRESID *fr) { int t; int err; err = 0; fr->sderr = (double *)malloc(8LL * fr->nobs); if (!fr->sderr) return 12; for (t = 0; t < fr->nobs; ++t) fr->sderr[t] = NAN; return err; }
static int fit_resid_add_sderr(FITRESID *fr) { int t, err = 0; fr->sderr = malloc(fr->nobs * sizeof *fr->sderr); if (fr->sderr == NULL) { err = E_ALLOC; } else { for (t = 0; t < fr->nobs; t++) { fr->sderr[t] = NADBL; } } return err; }
fit_resid_add_sderr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int fit_resid_head(const FITRESID *fr, const DATASET *dset, int obslen, PRN *prn) { unsigned int k; char *v5; unsigned int v6; char *v7; char *v8; char *v9; char *v10; double sigma; int v12; char *v13; char *v14; int utf_width; char *v16; int v17; int ywidth; _BOOL4 ks...
static int fit_resid_head(const FITRESID *fr, const DATASET *dset, int obslen, PRN *prn) { char label[32]; char obs1[OBSLEN], obs2[OBSLEN]; int kstep = fr->method == FC_KSTEP; int ywidth; if (kstep) { ntolabel(obs1, fr->model_t1, dset); pprintf(prn, _("Recursive %d-step ahea...
fit_resid_head
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FITRESID *fit_resid_new_for_model(const MODEL *pmod, const DATASET *dset, int t1, int t2, int pre_n, int *err) { _BOOL4 v7; FITRESID *fr; if (t1 >= 0 && t2 >= 0 && t2 >= t1) { fr = fit_resid_new_with_length(dset->n, 0); if (fr) { fr->t1 = t1; fr->t2 = t2; ...
static FITRESID *fit_resid_new_for_model(const MODEL *pmod, const DATASET *dset, int t1, int t2, int pre_n, int *err) { FITRESID *fr; if (t1 < 0 || t2 < 0 || t2 < t1) { *err = E_OBS; return NULL; } fr = fit_resid_new_with_length(dset->n, 0); if (fr == NULL) ...
fit_resid_new_for_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FITRESID *fit_resid_new_for_system(int asy, const DATASET *dset, int t1, int t2, int pre_n, int *err) { FITRESID *fr; if (t1 >= 0 && t2 >= 0 && t2 >= t1) { fr = fit_resid_new_with_length(dset->n, 1); if (fr) { fr->t1 = t1; fr->t2 = t2; if (pre_n <= 0) ...
static FITRESID *fit_resid_new_for_system(int asy, const DATASET *dset, int t1, int t2, int pre_n, int *err) { FITRESID *fr; if (t1 < 0 || t2 < 0 || t2 < t1) { *err = E_OBS; return NULL; } fr = fit_resid_new_with_length(dset->n, 1); if (fr == NULL) { *e...
fit_resid_new_for_system
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0