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 *kalman_matrix_name(int sym) { int i; for (i = 0; i <= 9; ++i) { if (sym == K_input_mats[i].sym) return K_input_mats[i].name; } return "matrix"; }
static const char *kalman_matrix_name(int sym) { int i; for (i = 0; i < K_MMAX; i++) { if (K_input_mats[i].sym == sym) { return K_input_mats[i].name; } } return "matrix"; }
kalman_matrix_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
kalman *kalman_new(gretl_matrix *S, gretl_matrix *P, gretl_matrix *F, gretl_matrix *A, gretl_matrix *H, gretl_matrix *Q, gretl_matrix *R, gretl_matrix *y, gretl_matrix *x, gretl_matrix *m, gretl_matrix *E, int *err) { kalman *K; *err = 0; if (y && F && H &...
kalman *kalman_new(gretl_matrix *S, gretl_matrix *P, gretl_matrix *F, gretl_matrix *A, gretl_matrix *H, gretl_matrix *Q, gretl_matrix *R, gretl_matrix *y, gretl_matrix *x, gretl_matrix *m, gretl_matrix *E, int *err) { kalman *K; *err = 0; if (y == NULL ||...
kalman_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
kalman *kalman_new_empty(int flags) { kalman *K; K = (kalman *)malloc(0x1C0u); if (K) { K->Pini = 0; K->Sini = K->Pini; K->S1 = 0; K->S0 = K->S1; K->P1 = 0; K->P0 = K->P1; K->LL = 0; K->e = 0; K->Blk = 0; K->H = 0; K->A = K->H; K->F = K->A; K->R = 0; K->Q =...
static kalman *kalman_new_empty(int flags) { kalman *K = malloc(sizeof *K); if (K != NULL) { K->Sini = K->Pini = NULL; K->S0 = K->S1 = NULL; K->P0 = K->P1 = NULL; K->LL = NULL; K->e = NULL; K->Blk = NULL; K->F = K->A = K->H = NULL; K->Q = K->R = NULL; K->B = K->C = NULL; K->...
kalman_new_empty
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
kalman *kalman_new_minimal(gretl_matrix **M, int *copy, int nmat, int *err) { int flags; gretl_matrix **v6; int i; kalman *K; gretl_matrix **targ[5]; unsigned long v12; v12 = __readfsqword(0x28u); *err = 0; if (*M && M[1] && M[2] && M[3]) { K = kalman_new_empty(516); if (K) { targ[0] = ...
kalman *kalman_new_minimal(gretl_matrix *M[], int copy[], int nmat, int *err) { gretl_matrix **targ[5]; kalman *K; int i; *err = 0; if (M[0] == NULL || M[1] == NULL || M[2] == NULL || M[3] == NULL) { fprintf(stderr, "kalman_new_minimal: nmat=%d, y=%p, H=%p, F=%p, Q=%p\n", nmat, (void *)M[0],...
kalman_new_minimal
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix **kalman_output_matrix(kalman *K, const char *key) { gretl_matrix **pm; pm = 0; if (!strcmp(key, "prederr")) return &K->E; if (!strcmp(key, "pevar")) return &K->V; if (!strcmp(key, "state")) return &K->S; if (!strcmp(key, "stvar")) return &K->P; if (!strcmp(key, "gain")) ...
static gretl_matrix **kalman_output_matrix(kalman *K, const char *key) { gretl_matrix **pm = NULL; if (!strcmp(key, "prederr")) { pm = &K->E; } else if (!strcmp(key, "pevar")) { pm = &K->V; } else if (!strcmp(key, "state")) { pm = &K->S; } else if (!strcmp(key, "stvar")) { pm = &K->P; } els...
kalman_output_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *kalman_output_scalar(kalman *K, const char *key) { double v3; int i; int idx; idx = -1; for (i = 0; i <= 8; ++i) { if (!strcmp(key, kalman_output_scalar_names[i])) { idx = i; break; } } if (idx < 0) return 0; switch (idx) { case 0: if ((K->flags & 0x10) != 0) ...
static double *kalman_output_scalar(kalman *K, const char *key) { static double retval[K_N_SCALARS]; int i, idx = -1; for (i = 0; i < K_N_SCALARS; i++) { if (!strcmp(key, kalman_output_scalar_names[i])) { idx = i; break; } } if (idx < 0) { return NULL; } switch (idx) { case K...
kalman_output_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void kalman_record_state(kalman *K) { if (K->S) load_to_row(K->S, K->S0, K->t); if (K->P) load_to_vech(K->P, K->P0, K->r, K->t); }
static void kalman_record_state(kalman *K) { if (K->S != NULL) { load_to_row(K->S, K->S0, K->t); } if (K->P != NULL) { load_to_vech(K->P, K->P0, K->r, K->t); } }
kalman_record_state
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_refresh_matrices(kalman *K, PRN *prn) { int cross_update; int i; int err; gretl_matrix **mptr[6]; unsigned long v7; v7 = __readfsqword(0x28u); mptr[0] = &K->F; mptr[1] = &K->A; mptr[2] = &K->H; mptr[3] = &K->Q; mptr[4] = &K->R; mptr[5] = &K->mu; cross_update = 0; err = 0; if ((...
static int kalman_refresh_matrices(kalman *K, PRN *prn) { gretl_matrix **mptr[] = {&K->F, &K->A, &K->H, &K->Q, &K->R, &K->mu}; int cross_update = 0; int i, err = 0; if (kalman_xcorr(K)) { mptr[3] = &K->B; mptr[4] = &K->C; } if (K->matcall != NULL) { err = kalman_update_matrices(K, prn); } ...
kalman_refresh_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_revise_variance(kalman *K) { int err; err = 0; if (!K->B || !K->C) return missing_matrix_error("'statevar' or 'obsvar'"); if (!K->cross) err = kalman_add_crossinfo(K); if (!err) err = kalman_update_crossinfo(K, 0); if (err) { fprintf(stderr, "kalman_revise_variance: err = %d\n", ...
static int kalman_revise_variance(kalman *K) { int err = 0; if (K->B == NULL || K->C == NULL) { return missing_matrix_error("'statevar' or 'obsvar'"); } #if 0 fprintf(stderr, "kalman_revise_variance\n"); gretl_matrix_print(K->B, "B"); gretl_matrix_print(K->C, "C"); #endif if (K->cross == NULL...
kalman_revise_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_serialize(void *kptr, PRN *prn) { int i; int ia; int ib; const char *name; const char *namea; double *px; gretl_matrix **pm; const gretl_matrix *m; if (kptr) { pputs(prn, "<gretl-kalman>\n"); for (i = 0; i <= 9; ++i) { m = k_input_matrix_by_id((kalman *)kptr, K_input_mats[i]....
int kalman_serialize(void *kptr, PRN *prn) { kalman *K = kptr; const gretl_matrix *m; gretl_matrix **pm; double *px; const char *name; int i, err = 0; if (K == NULL) { fputs("kalman_serialize: got NULL\n", stderr); return E_DATA; } pputs(prn, "<gretl-kalman>\n"); for (i = 0; i < K_MMAX; i...
kalman_serialize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void kalman_set_Ax(kalman *K, int *missobs) { double v2; int i; int j; double xjt; double axi; for (i = 0; i < K->n; ++i) { axi = 0.0; for (j = 0; j < K->k; ++j) { if (K->ifc) { if (j) v2 = K->x->val[K->x->rows * (j - 1) + K->t]; else v2 = 1.0; xjt ...
static void kalman_set_Ax(kalman *K, int *missobs) { double xjt, axi; int i, j; for (i = 0; i < K->n; i++) { axi = 0.0; for (j = 0; j < K->k; j++) { if (K->ifc) { xjt = (j == 0) ? 1.0 : gretl_matrix_get(K->x, K->t, j - 1); } else { xjt = gretl_matrix_get(K->x, K->t, j); ...
kalman_set_Ax
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void kalman_set_dimensions(kalman *K) { int rows; int v2; int cols; int v4; int v5; if (K->F) rows = K->F->rows; else rows = 0; K->r = rows; if (K->A) v2 = K->A->rows; else v2 = 0; K->k = v2; if (K->y) cols = K->y->cols; else cols = 0; K->n = cols; if ((K->flags & ...
static void kalman_set_dimensions(kalman *K) { K->r = gretl_matrix_rows(K->F); K->k = gretl_matrix_rows(K->A); K->n = gretl_matrix_cols(K->y); if (!kalman_simulating(K)) { K->T = gretl_matrix_rows(K->y); } K->okT = K->T; K->p = (K->B != NULL) ? gretl_matrix_cols(K->B) : 0; }
kalman_set_dimensions
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_set_initial_MSE_matrix(kalman *K, const gretl_matrix *P) { return gretl_matrix_copy_values(K->P0, P); }
int kalman_set_initial_MSE_matrix(kalman *K, const gretl_matrix *P) { return gretl_matrix_copy_values(K->P0, P); }
kalman_set_initial_MSE_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_set_initial_state_vector(kalman *K, const gretl_matrix *S) { return gretl_matrix_copy_values(K->S0, S); }
int kalman_set_initial_state_vector(kalman *K, const gretl_matrix *S) { return gretl_matrix_copy_values(K->S0, S); }
kalman_set_initial_state_vector
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void kalman_set_nonshift(kalman *K, int n) { K->nonshift = n; }
void kalman_set_nonshift(kalman *K, int n) { K->nonshift = n; }
kalman_set_nonshift
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void kalman_set_options(kalman *K, int opts) { K->flags |= opts; }
void kalman_set_options(kalman *K, int opts) { K->flags |= opts; }
kalman_set_options
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_simulate(kalman *K, const gretl_matrix *U, const gretl_matrix *Sim0, gretl_matrix *Y, gretl_matrix *S, PRN *prn) { int missobs; int obs_offset; int obsdist; int tmin; int err; gretl_matrix *et; gretl_matrix *yt; unsigned long v18; v18 = __readfsqword(0x28u); et = 0; ...
static int kalman_simulate(kalman *K, const gretl_matrix *U, const gretl_matrix *Sim0, gretl_matrix *Y, gretl_matrix *S, PRN *prn) { gretl_matrix *yt, *et = NULL; int obs_offset = 0; int obsdist = 0; int tmin = 0; int err = 0; yt = gretl_zero_matrix_new...
kalman_simulate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *kalman_smooth(kalman *K, gretl_matrix **pP, gretl_matrix **pU, int *err) { int v5; int nr; int nn; gretl_matrix *S; gretl_matrix *P; gretl_matrix *E; gretl_matrix *V; gretl_matrix *G; if (!pP) { if (pU) { *err = ensure_U_matrix(K); if (*err) ...
gretl_matrix *kalman_smooth(kalman *K, gretl_matrix **pP, gretl_matrix **pU, int *err) { gretl_matrix *E, *S, *P = NULL; gretl_matrix *G, *V; int nr, nn; if (pP == NULL && pU != NULL) { *err = ensure_U_matrix(K); if (*err) { return NULL; } } nr = (K->r * K->r...
kalman_smooth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_update_crossinfo(kalman *K, int mode) { int err; err = 0; if (!mode || matrix_is_varying(K, 3)) err = gretl_matrix_multiply_mod(K->B, GRETL_MOD_NONE, K->B, GRETL_MOD_TRANSPOSE, K->cross->BB, GRETL_MOD_NONE); if (!err && (!mo...
static int kalman_update_crossinfo(kalman *K, int mode) { int err = 0; if (mode == UPDATE_INIT || matrix_is_varying(K, K_Q)) { err = gretl_matrix_multiply_mod(K->B, GRETL_MOD_NONE, K->B, GRETL_MOD_TRANSPOSE, K->cross->BB, GRETL_MOD_NONE);...
kalman_update_crossinfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kalman_update_matrices(kalman *K, PRN *prn) { int err; ufunc *uf; fncall *fc; uf = get_user_function_by_name(K->matcall); if (uf) { if (!K->varying) check_for_matrix_updates(K, uf); fc = fncall_new(uf, 0); err = push_anon_function_arg(fc, GRETL_TYPE_BUNDLE_REF, K->b); if (!err) ...
static int kalman_update_matrices(kalman *K, PRN *prn) { ufunc *uf; fncall *fc; int err = 0; uf = get_user_function_by_name(K->matcall); if (uf == NULL) { gretl_errmsg_sprintf("Couldn't find function '%s'", K->matcall); return E_DATA; } if (K->varying == NULL) { check_for_matrix_updates(K, ...
kalman_update_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kendall_tau(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { char *v4; char *v6; char *v7; char *v8; double v9; char *v10; char *v11; double v12; double v13; char *v14; int t; int nn; int T; int err; int vx; int vy; double tau; double z; double *rx; double *ry;...
int kendall_tau(const int *list, const DATASET *dset, gretlopt opt, PRN *prn) { struct xy_pair *xy = NULL; int T = dset->t2 - dset->t1 + 1; const double *x, *y; double tau, z; int vx, vy; int t, nn = 0; int err = 0; if (list == NULL || list[0] != 2) { pputs(prn, _("This command requires two variabl...
kendall_tau
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *kendall_tau_func(const double *x, const double *y, int n, int *err) { double *v5; int i; int nn; double z; double tau; gretl_matrix *ret; xy_pair *xy; unsigned long v14; v14 = __readfsqword(0x28u); ret = 0; tau = NAN; nn = 0; for (i = 0; i < n; ++i...
gretl_matrix *kendall_tau_func(const double *x, const double *y, int n, int *err) { gretl_matrix *ret = NULL; struct xy_pair *xy; double z, tau = NADBL; int i, nn = 0; for (i = 0; i < n; i++) { if (!na(x[i]) && !na(y[i])) { nn++; } } if (nn < 2) { *err = ...
kendall_tau_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double kernel_bandwidth(const double *x, int n) { double v2; double q1; double q3; double n5; double s; double r; unsigned long v9; v9 = __readfsqword(0x28u); n5 = pow((double)n, -0.2); s = j_gretl_stddev(0, n - 1, x); quartiles(x, n, &q1, &q3); r = (q3 - q1) / 1.349; if (r <= 0.0 || s <= r) ...
double kernel_bandwidth(const double *x, int n) { double s, w, q1, q3, r; double n5 = pow((double)n, -0.20); s = gretl_stddev(0, n - 1, x); quartiles(x, n, &q1, &q3); r = (q3 - q1) / 1.349; w = (r > 0 && r < s) ? r : s; #if 0 fprintf(stderr, "Silverman bandwidth: s=%g, q1=%g, q3=%g, IQR=%g, w=%g\n", ...
kernel_bandwidth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gint key_compare(gdouble a, gdouble b) { if (a - b > 0.0) return 1; if (a == b) return 0; return -1; }
static gint key_compare(gdouble a, gdouble b) { if (isnan(a)) { return isnan(b) ? 0 : 1; } else if (isnan(b)) { return -1; } return a - b > 0 ? 1 : a == b ? 0 : -1; }
key_compare
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int key_types_error(int lstr, int rstr) { char *v2; if (lstr) v2 = gettext("%s: string key on left but numeric on right"); else v2 = gettext("%s: string key on right but numeric on left"); gretl_errmsg_sprintf(v2, "join"); return 37; }
static int key_types_error(int lstr, int rstr) { if (lstr) { gretl_errmsg_sprintf(_("%s: string key on left but numeric on right"), "join"); } else { gretl_errmsg_sprintf(_("%s: string key on right but numeric on left"), "join"); } return E_TYPES; }
key_types_error
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int koopman_smooth(kalman *K, int dkstyle) { unsigned int v3; int i; int ia; int ib; int ic; int t; int ta; int tb; int tc; int err; gretl_matrix *u; gretl_matrix *D; gretl_matrix *L; gretl_matrix *R; gretl_matrix *r0; gretl_matrix *r1; gretl_matrix *r2; gretl_matrix *N1; gretl_mat...
static int koopman_smooth(kalman *K, int dkstyle) { gretl_matrix_block *B, *BX = NULL; gretl_matrix *u, *D, *L, *R; gretl_matrix *r0, *r1, *r2, *N1, *N2; gretl_matrix *n1 = NULL; gretl_matrix *Vvt = NULL; gretl_matrix *Vwt = NULL; gretl_matrix *DC = NULL; gretl_matrix *KN = NULL; gretl_matrix *RHS = N...
koopman_smooth
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *kpss_crit_node(NODE *l, NODE *r, parser *p) { int T; int trend; NODE *ret; ret = get_aux_node(p, 57, 0, 2); if (ret) { if ((p->flags & 2) != 0) { T = node_get_int(l, p); trend = node_get_int(r, p); if (!p->err) ret->v.str = (char *)kpss_critvals(T, trend, &p->err); } ...
static NODE *kpss_crit_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL && starting(p)) { int T = node_get_int(l, p); int trend = node_get_int(r, p); if (!p->err) { ret->v.m = kpss_critvals(T, trend, &p->err); } } return ret; }
kpss_crit_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double kpss_critval(double alpha, int T, int trend) { double b[4]; *(_QWORD *)&b[3] = __readfsqword(0x28u); kpss_parms(alpha, trend, b); return b[1] / (double)T + b[0]; }
static double kpss_critval(double alpha, int T, int trend) { double b[2]; kpss_parms(alpha, trend, b); return b[0] + b[1] / T; }
kpss_critval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *kpss_critvals(int T, int trend, int *err) { double *val; double *v4; double *v5; gretl_matrix *m; m = 0; if (T > 4) { m = gretl_matrix_alloc(1, 3); if (m) { val = m->val; *val = kpss_critval(0.1, T, trend); v4 = m->val + 1; *v4 = kpss_critval(0.05, T, trend); ...
gretl_matrix *kpss_critvals(int T, int trend, int *err) { gretl_matrix *m = NULL; if (T < 5) { *err = E_TOOFEW; } else { m = gretl_matrix_alloc(1, 3); if (m == NULL) { *err = E_ALLOC; } else { m->val[0] = kpss_critval(0.10, T, trend); m->val[1] = kpss_critval(0.05, T, trend); ...
kpss_critvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double kpss_interp(double s, int T, int trend) { double c10; double c01; double c05; c10 = kpss_critval(0.1, T, trend); if (c10 > s) return 1.1; c01 = kpss_critval(0.01, T, trend); if (s > c01) return -1.0; c05 = kpss_critval(0.05, T, trend); if (s <= c05) return 0.05 * (c05 - s) / (c05 -...
static double kpss_interp(double s, int T, int trend) { double c10, c05, c01; double pv; c10 = kpss_critval(.10, T, trend); if (s < c10) { return PV_GT10; } c01 = kpss_critval(.01, T, trend); if (s > c01) { return PV_LT01; } c05 = kpss_critval(.05, T, trend); if (s > c05) { pv = .01 +...
kpss_interp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void kpss_parms(double a, int trend, double *b) { int v3; double v4; double b0_level[4]; double b1_level[4]; double b0_trend[4]; double b1_trend[3]; unsigned long v9; v9 = __readfsqword(0x28u); b0_level[0] = 0.74404; b0_level[1] = 0.46158; b0_level[2] = 0.34742; b1_level[0] = -0.9912; b1_leve...
static void kpss_parms(double a, int trend, double *b) { const double b0_level[] = {0.74404, 0.46158, 0.34742}; const double b1_level[] = {-0.99120, 0.01642, 0.19814}; const double b0_trend[] = {0.21787, 0.14797, 0.11925}; const double b1_trend[] = {-0.25128, 0.03270, 0.10244}; int i = (a == .01) ? 0 : (a == ...
kpss_parms
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int kpss_test(int order, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { int err; int i; int save_t1; int save_t2; int orig_nvars; int v; int vlist[2]; unsigned long v16; v16 = __readfsqword(0x28u); save_t1 = dset->t1; save_t2 = dset->t2; orig_nvars = dset->v; err = 0;...
int kpss_test(int order, const int *list, DATASET *dset, gretlopt opt, PRN *prn) { int save_t1 = dset->t1; int save_t2 = dset->t2; int orig_nvars = dset->v; int err = 0; if (multi_unit_panel_sample(dset)) { err = panel_kpss_test(order, list[1], dset, opt, prn); } else { int i, v, vli...
kpss_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ksmooth_refresh_matrices(kalman *K, PRN *prn) { int cross_update; int i; int err; int ii; int idx[2]; gretl_matrix **mptr[2]; unsigned long v9; v9 = __readfsqword(0x28u); mptr[0] = &K->Q; mptr[1] = &K->R; idx[0] = 3; idx[1] = 4; cross_update = 0; err = 0; if ((K->flags & 0x80) != 0) {...
static int ksmooth_refresh_matrices(kalman *K, PRN *prn) { gretl_matrix **mptr[] = {&K->Q, &K->R}; int idx[] = {K_Q, K_R}; int cross_update = 0; int i, ii, err = 0; if (kalman_xcorr(K)) { mptr[0] = &K->B; mptr[1] = &K->C; } if (K->matcall != NULL) { err = kalman_update_matrices(K, prn); } ...
ksmooth_refresh_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int labels_differ(const char *s1, const char *s2) { int nv; nv = (s1 != 0) + (s2 != 0); if (nv == 1) return 1; if (nv == 2) return strcmp(s1, s2) != 0; return 0; }
static int labels_differ(const char *s1, const char *s2) { int nv = (s1 != NULL) + (s2 != NULL); if (nv == 1) { return 1; } else if (nv == 2) { return strcmp(s1, s2) != 0; } else { return 0; } }
labels_differ
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MODEL *lad_model(MODEL *__return_ptr retstr, const int *list, DATASET *dset, gretlopt opt) { MODEL v5; gretlopt opta; DATASET *dseta; const int *lista; MODEL *v9; int (*lad_driver)(MODEL *, DATASET *, gretlopt); MODEL mod; unsigned long v12; v9 = retstr; lista = list; dseta = dse...
MODEL lad_model(const int *list, DATASET *dset, gretlopt opt) { MODEL mod; int (*lad_driver)(MODEL *, DATASET *, gretlopt); mod = lsq(list, dset, OLS, OPT_A); if (mod.errcode) { return mod; } lad_driver = get_plugin_function("lad_driver"); if (lad_driver == NULL) { mod.errcode = E_FOPEN; r...
lad_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void lag_calc(double *y, const double *x, int k, int t1, int t2, int op, double mul, parser *p) { int s; while (t1 <= t2) { s = t1 - k; if (p->dset && p->dset->structure == 2 && s / p->dset->pd != t1 / p->dset->pd) s = -1; if (s >= 0 && s < p->dset->n) { if (op == 6 &&...
static void lag_calc(double *y, const double *x, int k, int t1, int t2, int op, double mul, parser *p) { int s, t; for (t = t1; t <= t2; t++) { s = t - k; if (dataset_is_panel(p->dset)) { if (s / p->dset->pd != t / p->dset->pd) { s = -1; } } if (s >= 0 && s...
lag_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lag_from_label(int v, const DATASET *dset, int *lag) { char pm; int pv; const char *test; char fmt[32]; char vname[40]; unsigned long v11; v11 = __readfsqword(0x28u); test = series_get_label(dset, v); pv = 0; if (!test) return 0; sprintf(fmt, "= %%%d[^(](t %%c %%d)", 31); if ((unsigned ...
static int lag_from_label(int v, const DATASET *dset, int *lag) { const char *test = series_get_label(dset, v); char pm, fmt[20], vname[VNAMELEN]; int pv = 0; if (test == NULL) { return 0; } sprintf(fmt, "= %%%d[^(](t %%c %%d)", VNAMELEN - 1); if (sscanf(test, fmt, vname, &pm, lag) == 3) { pv =...
lag_from_label
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lag_info_from_prelag_list(midas_term *mt, const int *list, const DATASET *dset) { int v3; int i; int maxp; int mf; int m1; int p1; int p; mf = series_get_midas_freq(dset, list[1]); m1 = series_get_lag(dset, list[1]); p1 = series_get_midas_period(dset, list[1]); m...
static int lag_info_from_prelag_list(midas_term *mt, const int *list, const DATASET *dset) { int mf = series_get_midas_freq(dset, list[1]); int m1 = series_get_lag(dset, list[1]); int p1 = series_get_midas_period(dset, list[1]); int i, p, maxp = 0; if (mf > 0) { maxp ...
lag_info_from_prelag_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lag_trunc_param(int kern, int prewhitened, int T) { if (kern) { if (kern == 1) return (int)pow((double)T, 0.16); else return (int)pow((double)T, 0.08); } else if (prewhitened) { return (int)(pow((double)T / 100.0, 0.2222222222222222) * 3.0); } else { return (int)(pow((double)T / 10...
static int lag_trunc_param(int kern, int prewhitened, int T) { if (kern == KERNEL_BARTLETT) { if (prewhitened) { return (int)(3.0 * pow(T / 100.0, 2.0 / 9)); } else { return (int)(4.0 * pow(T / 100.0, 2.0 / 9)); } } else if (kern == KERNEL_PARZEN) { return (int)pow((double)T, 4.0 / 25)...
lag_trunc_param
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lag_wanted(int p, const gretl_matrix *v, int n) { int ret; int i; ret = 1; if (v) { ret = 0; for (i = 0; i < n; ++i) { if (v->val[i] == (double)p) return 1; } } return ret; }
static int lag_wanted(int p, const gretl_matrix *v, int n) { int ret = 1; if (v != NULL) { int i; ret = 0; for (i = 0; i < n; i++) { if (v->val[i] == p) { ret = 1; break; } } } return ret; }
lag_wanted
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int laggenr(int v, int lag, DATASET *dset) { char *v3; char *v4; if (lag <= dset->n && -lag <= dset->n) { if (v) { if (lag) return get_transform(65, v, lag, 0.0, dset, 29, dset->v, 0); else return v; } else { v4 = gettext("The constant cannot be lagged"); gretl_err...
int laggenr(int v, int lag, DATASET *dset) { int lno; if (lag > dset->n || -lag > dset->n) { gretl_errmsg_sprintf(_("Invalid lag order %d"), lag); lno = -1; } else if (v == 0) { gretl_errmsg_set(_("The constant cannot be lagged")); lno = -1; } else if (lag == 0) { lno = v; } else { ln...
laggenr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *laggenr_from_to(int v, int fromlag, int tolag, DATASET *dset, int *err) { int i; int nlags; int p; int count_down; int lv; int *llist; count_down = 0; if (fromlag <= tolag) { nlags = tolag - fromlag + 1; } else { nlags = fromlag - tolag + 1; count_down = 1; } if (nlags > 0) { ...
int *laggenr_from_to(int v, int fromlag, int tolag, DATASET *dset, int *err) { int *llist; int i, lv, nlags = -1; int p, count_down = 0; if (fromlag > tolag) { nlags = fromlag - tolag + 1; count_down = 1; } else { nlags = tolag - fromlag + 1; } if (nlags <= 0) { *err = E_DATA; return...
laggenr_from_to
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *lags_from_laglist(const int *llist, int *err) { int *lags; lags = 0; if (*llist) { lags = gretl_list_copy(llist); if (!lags) *err = 12; } else { *err = 2; } if (lags) { gretl_list_sort(lags); if (lags[1] <= 0) { *err = 2; free(lags); return 0; } } re...
static int *lags_from_laglist(const int *llist, int *err) { int *lags = NULL; if (llist[0] == 0) { *err = E_DATA; } else { lags = gretl_list_copy(llist); if (lags == NULL) { *err = E_ALLOC; } } if (lags != NULL) { gretl_list_sort(lags); if (lags[1] < 1) { *err = E_DATA; ...
lags_from_laglist
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lagsel_get_min_lag(int p, int *err) { int m; m = get_optval_int(135, OPT_M, err); if (!*err && (m < 0 || m > p)) *err = 17; return m; }
static int lagsel_get_min_lag(int p, int *err) { int m = get_optval_int(VAR, OPT_M, err); if (!*err && (m < 0 || m > p)) { *err = E_INVARG; } return m; }
lagsel_get_min_lag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void landscape_modify_line(char *line) { char *p; char *pa; char *pb; char *rem; char *rema; if (!strstr(line, "landscape")) { p = strstr(line, "documentclass"); if (p) { if (p[13] == 91) { pa = strchr(p, 93); if (pa) { rem = gretl_strdup(pa); if (rem) { ...
static void landscape_modify_line(char *line) { char *p, *rem; if (strstr(line, "landscape")) { return; } p = strstr(line, "documentclass"); if (p != NULL) { if (*(p + 13) == '[') { p = strchr(p, ']'); if (p != NULL) { rem = gretl_strdup(p); if (rem != NULL) { ...
landscape_modify_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *lang_code_from_id(int langid) { int i; for (i = 0; i <= 22; ++i) { if (langid == langs[i].id) return langs[i].code; } return 0; }
const char *lang_code_from_id(int langid) { int i; for (i = 0; i < LANG_MAX; i++) { if (langid == langs[i].id) { return langs[i].code; } } return NULL; }
lang_code_from_id
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lang_id_from_name(const char *s) { int i; for (i = 0; i <= 22; ++i) { if (!strcmp(s, langs[i].name)) return langs[i].id; } return 0; }
int lang_id_from_name(const char *s) { if (s != NULL || *s != '\0') { int i; for (i = 0; i < LANG_MAX; i++) { if (!strcmp(s, langs[i].name)) { return langs[i].id; } } } return 0; }
lang_id_from_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *lang_string_from_id(int langid) { int i; for (i = 0; i <= 22; ++i) { if (langid == langs[i].id) return langs[i].name; } return 0; }
const char *lang_string_from_id(int langid) { int i; for (i = 0; i < LANG_MAX; i++) { if (langid == langs[i].id) { return langs[i].name; } } return NULL; }
lang_string_from_id
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lapack_cholesky_regress(MODEL *pmod, const DATASET *dset, gretlopt opt) { double v3; int v4; int err; integer T; _BYTE k[12]; gretl_matrix *y; gretl_matrix *X; gretl_matrix *b; *(_DWORD *)&k[8] = 0; err = 0; T = pmod->nobs; *(_QWORD *)k = (unsigned int)(*pmod->list - 1); y = gretl_matrix_...
int lapack_cholesky_regress(MODEL *pmod, const DATASET *dset, gretlopt opt) { integer T, k; gretl_matrix *y = NULL; gretl_matrix *X = NULL; gretl_matrix *b = NULL; gretl_matrix *XTX = NULL; int err = 0; T = pmod->nobs; k = pmod->list[0] - 1; y = gretl_matrix_alloc(T, 1); X = gretl_matrix_alloc(T, ...
lapack_cholesky_regress
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void lapack_free(void *p) { ; }
static void lapack_free(void *p) { return; }
lapack_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *lapack_malloc(size_t sz) { void **addr; void *mem; void *chunk; mem = 0; if (sz <= *(_QWORD *)__tls_get_addr(&qword_397C70)) return *(void **)__tls_get_addr(&lapack_mem_chunk_tlsind); addr = (void **)__tls_get_addr(&lapack_mem_chunk_tlsind); chunk = realloc(*addr, sz); if (chunk) { mem = ...
static void *lapack_malloc(size_t sz) { void *mem = NULL; if (sz > lapack_mem_sz) { void *chunk = realloc(lapack_mem_chunk, sz); if (chunk != NULL) { lapack_mem_chunk = mem = chunk; lapack_mem_sz = sz; } } else { mem = lapack_mem_chunk; } return mem; }
lapack_malloc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void lapack_mem_free() { void **addr; addr = (void **)__tls_get_addr(&lapack_mem_chunk_tlsind); free(*addr); *(_QWORD *)__tls_get_addr(&lapack_mem_chunk_tlsind) = 0; *(_QWORD *)__tls_get_addr(&qword_397C70) = 0; }
void lapack_mem_free(void) { free(lapack_mem_chunk); lapack_mem_chunk = NULL; lapack_mem_sz = 0; }
lapack_mem_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *lapack_realloc(void *p, size_t sz) { return lapack_malloc(sz); }
static void *lapack_realloc(void *p, size_t sz) { return lapack_malloc(sz); }
lapack_realloc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double laplace_cdf(double mu, double b, double x) { if (b <= 0.0) return NAN; if (mu <= x) return 1.0 - 0.5 * exp(-(x - mu) / b); return exp((x - mu) / b) * 0.5; }
double laplace_cdf(double mu, double b, double x) { if (b > 0) { if (x < mu) { return 0.5 * exp((x - mu) / b); } else { return 1 - 0.5 * exp(-(x - mu) / b); } } else { return NADBL; } }
laplace_cdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double laplace_cdf_comp(double mu, double b, double x) { if (b <= 0.0) return NAN; if (mu <= x) return exp(-(x - mu) / b) * 0.5; return 1.0 - 0.5 * exp((x - mu) / b); }
double laplace_cdf_comp(double mu, double b, double x) { if (b > 0) { if (x < mu) { return 1 - 0.5 * exp((x - mu) / b); } else { return 0.5 * exp(-(x - mu) / b); } } else { return NADBL; } }
laplace_cdf_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double laplace_cdf_inverse(double mu, double b, double a) { int v4; double v5; if (b <= 0.0 || a < 0.0 || a > 1.0) return NAN; if (a == 0.0) return -1.0 / 0.0; if (a == 1.0) return 1.0 / 0.0; if (a - 0.5 >= 0.0) v4 = 1; else v4 = -1; v5 = fabs(a - 0.5); return mu - (double)v4 * b ...
double laplace_cdf_inverse(double mu, double b, double a) { if (b <= 0 || a < 0 || a > 1) { return NADBL; } else if (a == 0.0) { return -1.0 / 0.0; } else if (a == 1.0) { return 1.0 / 0.0; } else { int sgn = a - 0.5 < 0 ? -1 : 1; return mu - b * sgn * log(1.0 - 2 * fabs(a - 0.5)); } }
laplace_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double laplace_pdf(double mu, double b, double x) { if (b <= 0.0) return NAN; else return exp(COERCE_DOUBLE(COERCE_UNSIGNED_INT64(fabs(x - mu)) ^ 0x8000000000000000LL) / b) / (b + b); }
double laplace_pdf(double mu, double b, double x) { if (b > 0) { return exp(-fabs(x - mu) / b) / (2 * b); } else { return NADBL; } }
laplace_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int laplace_pdf_array(double mu, double b, double *x, int n) { int i; int ia; int err; err = 0; if (b <= 0.0) { err = 2; for (ia = 0; ia < n; ++ia) x[ia] = NAN; } else { for (i = 0; i < n; ++i) { if (fabs(x[i]) > 1.797693134862316e308) x[i] = NAN; else x[i] = e...
static int laplace_pdf_array(double mu, double b, double *x, int n) { int i, err = 0; if (b > 0) { for (i = 0; i < n; i++) { if (!na(x[i])) { x[i] = exp(-fabs(x[i] - mu) / b) / (2 * b); } else { x[i] = NADBL; } } } else { err = E_DATA; for (i = 0; i < n; i++) { ...
laplace_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *last_model_get_boot_ci(int cnum, const DATASET *dset, int B, double alpha, int method, int studentize, int *err) { gretl_matrix *ret; stacker *smatch; smatch = find_smatch(0); ret = 0; if (smatch && smatch->type == 1) ...
gretl_matrix *last_model_get_boot_ci(int cnum, const DATASET *dset, int B, double alpha, int method, int studentize, int *err) { stacker *smatch = find_smatch(NULL); gretl_matrix *ret = NULL; if (smatch == NULL || smatch->type != GRETL_OBJ...
last_model_get_boot_ci
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double last_model_get_boot_pval(int cnum, const DATASET *dset, int B, int method, int *err) { double ret; stacker *smatch; smatch = find_smatch(0); ret = NAN; if (smatch && smatch->type == 1) return bootstrap_pvalue((const MODEL *)smatch->ptr, dset, cnum, B, method, ...
double last_model_get_boot_pval(int cnum, const DATASET *dset, int B, int method, int *err) { stacker *smatch = find_smatch(NULL); double ret = NADBL; if (smatch == NULL || smatch->type != GRETL_OBJ_EQN) { *err = E_DATA; } else { MODEL *pmod = smatch->ptr; ret = boo...
last_model_get_boot_pval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void *last_model_get_data(const char *key, GretlType *type, int *size, int *copied, int *err) { char *v5; size_t sz; void *ret; stacker *smatch; const MODEL *pmod; unsigned long v14; v14 = __readfsqword(0x28u); smatch = find_smatch(0); ret = 0; if (smatch && smatch->type =...
void *last_model_get_data(const char *key, GretlType *type, int *size, int *copied, int *err) { stacker *smatch = find_smatch(NULL); void *ret = NULL; if (smatch == NULL || smatch->type != GRETL_OBJ_EQN) { *err = E_DATA; } else { const MODEL *pmod = smatch->ptr; size_t sz ...
last_model_get_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *last_model_get_irf_matrix(int targ, int shock, double alpha, const DATASET *dset, int *err) { gretl_matrix *M; stacker *smatch; smatch = find_smatch(0); M = 0; if (smatch && smatch->type == 3) return gretl_VAR_get_impulse_response((GRETL_VAR *)smatch-...
gretl_matrix *last_model_get_irf_matrix(int targ, int shock, double alpha, const DATASET *dset, int *err) { stacker *smatch = find_smatch(NULL); gretl_matrix *M = NULL; if (smatch == NULL || smatch->type != GRETL_OBJ_VAR) { *err = E_BADSTAT; } else { M = gretl_VA...
last_model_get_irf_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *last_model_get_vcv_type() { stacker *smatch; VCVInfo *vi; smatch = find_smatch(0); ret_0[0] = 0; if (smatch) { if (smatch->type == 1) { vi = (VCVInfo *)gretl_model_get_data((const MODEL *)smatch->ptr, "vcv_info"); if (vi) { if (vi->vmaj...
char *last_model_get_vcv_type(void) { stacker *smatch = find_smatch(NULL); static char ret[16]; *ret = '\0'; if (smatch != NULL && smatch->type == GRETL_OBJ_EQN) { const MODEL *pmod = smatch->ptr; VCVInfo *vi; vi = gretl_model_get_data(pmod, "vcv_info"); if (vi != NULL && vi->vmaj == VCV_ML)...
last_model_get_vcv_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int last_model_test_ok(int ci, gretlopt opt, const DATASET *dset, PRN *prn) { char *v4; char *v6; GretlObjType type; int err; int r; void *ptr; GRETL_VAR *var; MODEL *pmod; unsigned long v15; v15 = __readfsqword(0x28u); err = 0; ptr = get_last_model(&type); if (ptr) { switch (type) { ...
int last_model_test_ok(int ci, gretlopt opt, const DATASET *dset, PRN *prn) { GretlObjType type; void *ptr; int err = 0; ptr = get_last_model(&type); if (ptr == NULL) { pputs(prn, _("Can't do this: no model has been estimated yet\n")); return E_DATA; } if (type == GRETL_OBJ_EQN) { MODEL *pmo...
last_model_test_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int last_model_test_uhat(DATASET *dset, gretlopt opt, PRN *prn) { GretlObjType type; int err; void *ptr; unsigned long v8; v8 = __readfsqword(0x28u); err = 0; ptr = get_last_model(&type); if (!ptr) return 2; switch (type) { case GRETL_OBJ_EQN: return model_error_dist((const MODEL *)ptr, dse...
int last_model_test_uhat(DATASET *dset, gretlopt opt, PRN *prn) { GretlObjType type; void *ptr; int err = 0; ptr = get_last_model(&type); if (ptr == NULL) { return E_DATA; } if (type == GRETL_OBJ_EQN) { err = model_error_dist(ptr, dset, opt, prn); } else if (type == GRETL_OBJ_SYS) { err = ...
last_model_test_uhat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void last_result_cleanup() { if (last_result) { if (last_result_type == GRETL_TYPE_MATRIX) { gretl_matrix_free(last_result); } else if (last_result_type == GRETL_TYPE_BUNDLE) { gretl_bundle_destroy((gretl_bundle *)last_result); } } last_result = 0; last_result_type = GRETL_TYPE_NONE; }
void last_result_cleanup(void) { if (last_result != NULL) { if (last_result_type == GRETL_TYPE_MATRIX) { gretl_matrix_free(last_result); } else if (last_result_type == GRETL_TYPE_BUNDLE) { gretl_bundle_destroy(last_result); } } last_result = NULL; last_result_type = 0; }
last_result_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lb_autocorr_test(MODEL *pmod, int order, gretlopt opt, PRN *prn) { char *v5; char *v6; double v7; char *v8; char *v9; int err; int df_0; double pval; double lb; ModelTest *test; unsigned long v17; v17 = __readfsqword(0x28u); pval = NAN; err = 0; df_0 = order - arma_model_get_n_arma_co...
static int lb_autocorr_test(MODEL *pmod, int order, gretlopt opt, PRN *prn) { double lb, pval = NADBL; int df, err = 0; df = order - arma_model_get_n_arma_coeffs(pmod); if (df < 0) { gretl_errmsg_set("Insufficient degrees of freedom for test"); return E_DATA; } lb = ljung_box(order, pmod->t1, pmo...
lb_autocorr_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ldepvar_std_errors(MODEL *pmod, DATASET *dset) { int v3; int v4; MODEL v5; DATASET *dseta; MODEL *pmoda; int vi; int i; int t; int err; int orig_t1; int orig_t2; int origv; int vnew; int vm; double rho; int *list; const double *x; MODEL emod; unsigned long v21; pmoda = pmod;...
static int ldepvar_std_errors(MODEL *pmod, DATASET *dset) { MODEL emod; const double *x; int orig_t1 = dset->t1; int orig_t2 = dset->t2; double rho = gretl_model_get_double(pmod, "rho_gls"); int origv = dset->v; int vnew = pmod->list[0] + 1 - pmod->ifc; int *list; int vi, vm; int i, t; int err = 0...
ldepvar_std_errors
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ldv_lag(boot *bs, int k) { int i; if (bs->ldv) { for (i = 0; i < bs->ldv->n; ++i) { if (k == bs->ldv->xcol[i]) return bs->ldv->lag[i]; } } return 0; }
static int ldv_lag(boot *bs, int k) { if (bs->ldv != NULL) { int i; for (i = 0; i < bs->ldv->n; i++) { if (bs->ldv->xcol[i] == k) { return bs->ldv->lag[i]; } } } return 0; }
ldv_lag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int leads_midas_list(int ID, const DATASET *dset, char *listname) { int i; int ret; int level; int *list; level = gretl_function_depth(); ret = 0; for (i = 0; i < n_vars_0 && !ret; ++i) { if (uvars[i]->type == GRETL_TYPE_LIST && level == uvars[i]->level) { list = (int *)uvars[i]->ptr; if ...
int leads_midas_list(int ID, const DATASET *dset, char *listname) { int level = gretl_function_depth(); int *list; int i, ret = 0; for (i = 0; i < n_vars && !ret; i++) { if (uvars[i]->type == GRETL_TYPE_LIST && uvars[i]->level == level) { list = uvars[i]->ptr; if (list[0] > 2 && list[1] == ID) ...
leads_midas_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int leap_year(int yr) { return (yr & 3) == 0 && yr % 100 || !(yr % 400); }
static int leap_year(int yr) { return (!(yr % 4) && (yr % 100)) || !(yr % 400); }
leap_year
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int least_significant_coeff(const MODEL *pmod) { int i; int k; double tmin; double x; double xa; tmin = 3.2; k = 0; if (!pmod->list || gretl_list_separator_position(pmod->list) > 0) return 0; for (i = pmod->ifc; i < *pmod->list - 1; ++i) { if (pmod->sderr[i] > 0.0) { x = fabs(pmod->coef...
static int least_significant_coeff(const MODEL *pmod) { double x, tmin = 3.2; int i, imax, k = 0; if (pmod->list == NULL || gretl_list_separator_position(pmod->list) > 0) { return 0; } imax = pmod->list[0] - 1; for (i = pmod->ifc; i < imax; i++) { if (pmod->sderr[i] > 0) { x = fabs(pmod->co...
least_significant_coeff
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int legendre_scale(int n, double *x, double *w, double a, double b) { int i; double slp; if (fabs(a) > 1.797693134862316e308 || fabs(b) > 1.797693134862316e308) return 17; if (fabs(b - a) > 2.220446049250313e-16) { slp = (b - a) / 2.0; for (i = 0; i < n; ++i) { x[i] = x[i] * slp + (a + b) / 2...
static int legendre_scale(int n, double *x, double *w, double a, double b) { double shft, slp; int i; if (na(a) || na(b)) { return E_INVARG; } if (fabs(b - a) <= DBL_EPSILON) { fprintf(stderr, "legendre: |b - a| too small\n"); return E_DATA; } shft = (a + b) / 2.0; slp = (b - a) / 2.0; ...
legendre_scale
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int letter_to_int(char c) { int i; const char *s; s = "abcdefghij"; i = 0; while (*s) { if (c == *s) return i; ++s; ++i; } return 0; }
static int letter_to_int(char c) { const char *s = "abcdefghij"; int i = 0; while (*s) { if (c == *s) { return i; } s++; i++; } return 0; }
letter_to_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int leverage_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int err; gretl_matrix *(*model_leverage)(const MODEL *, const DATASET *, gretlopt, PRN *, int *); gretl_matrix *m; unsigned long v10; v10 = __readfsqword(0x28u); err = 0; if (pmod->ci != 88) retu...
int leverage_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { gretl_matrix *(*model_leverage)(const MODEL *, const DATASET *, gretlopt, PRN *, int *); gretl_matrix *m; int err = 0; if (pmod->ci != OLS) { return E_OLSONLY; } model_leverage = get_plugin_functi...
leverage_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int levin_lin_test(int vnum, const int *plist, DATASET *dset, gretlopt opt, PRN *prn) { int err; int save_t1; int save_t2; int (*real_levin_lin)(int, const int *, DATASET *, gretlopt, PRN *); if (!multi_unit_panel_sample(dset) || incompatible_options(opt, OPT_T | OPT_N)) return 3...
int levin_lin_test(int vnum, const int *plist, DATASET *dset, gretlopt opt, PRN *prn) { int (*real_levin_lin)(int, const int *, DATASET *, gretlopt, PRN *); int panelmode; int err = 0; panelmode = multi_unit_panel_sample(dset); if (!panelmode || incompatible_options(opt, OPT_N | OPT_T)) {...
levin_lin_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void lex(parser *p) { char *v1; unsigned int ch; char *v3; prevsyms_0[0] = dword_3AA4E4; dword_3AA4E4 = p->sym; if (p->ch) { while (2) { if (p->ch) { if ((unsigned char)p->ch == 0xE2) { lex_try_utf8(p); } else if (is_greek_letter(p->point - 1)) { getword(p, 1);...
void lex(parser *p) { static int prevsyms[2]; #if LDEBUG if (p->ch) { fprintf(stderr, "lex: p->ch='%c', point='%c'\n", p->ch, *p->point); } else { fprintf(stderr, "lex: p->ch is NUL\n"); } #endif prevsyms[0] = prevsyms[1]; prevsyms[1] = p->sym; if (p->ch == 0) { p->sym = EOT; return; }...
lex
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void lex_try_utf8(parser *p) { unsigned int ch; char *v2; if (*p->point == -120 && *((_BYTE *)p->point + 1) == 0x92) { p->sym = 8; parser_getc(p); parser_getc(p); parser_getc(p); } else { ch = (unsigned char)p->ch; v2 = gettext("Unexpected byte 0x%x\n"); pprintf(p->prn, v2, ch); ...
static void lex_try_utf8(parser *p) { if ((unsigned char)*p->point == 0x88 && (unsigned char)*(p->point + 1) == 0x92) { p->sym = B_SUB; parser_getc(p); parser_getc(p); parser_getc(p); } else { pprintf(p->prn, _("Unexpected byte 0x%x\n"), (unsigned char)p->ch); p->err = E_PARSE; } }
lex_try_utf8
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double lgam(double x) { double v3; double v4; double xb; double p; double pa; double pc; double pb; double q; double qa; double u; double z; double za; double zb; double w; cephes_sgngam = 1; if (fabs(x) > 1.797693134862316e308) return INFINITY; if (x >= -34.0) { if (x >= 13.0...
double lgam(double x) { double p, q, u, w, z; int i; cephes_sgngam = 1; if (isnan(x)) { return x; } if (!isfinite(x)) { return INFINITY; } if (x < -34.0) { q = -x; w = lgam(q); p = floor(q); if (p == q) { lgsing: mtherr_with_arg("lgam", CEPHES_SING, x); return...
lgam
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *lhs_terminal_node(NODE *t, NODE *l, NODE *r, parser *p) { NODE *result; result = get_aux_node(p, 85, 0, 0); result->t = t->t; result->L = l; result->R = r; result->flags |= 0x10u; return result; }
static NODE *lhs_terminal_node(NODE *t, NODE *l, NODE *r, parser *p) { NODE *ret = aux_parent_node(p); ret->t = t->t; ret->L = l; ret->R = r; ret->flags |= LHT_NODE; return ret; }
lhs_terminal_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lhs_type_check(GretlType spec, GretlType rhs, int t) { const char *name; const char *v4; char *v5; int err; err = 0; if (spec && spec != rhs) { if (t == 58) { name = gretl_type_get_name(rhs); v4 = gretl_type_get_name(spec); v5 = gettext("Expected %s but got %s"); } else { ...
static int lhs_type_check(GretlType spec, GretlType rhs, int t) { int err = 0; if (spec != 0 && spec != rhs) { if (t == BUNDLE) { gretl_errmsg_sprintf(_("Expected %s but got %s"), gretl_type_get_name(spec), gretl_type_get_name(rhs)); } else { gretl_errmsg_sprintf(_("S...
lhs_type_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_add_db_data(double **dbZ, SERIESINFO *sinfo, DATASET *dset, CompactMethod cmethod, int dbv, PRN *prn) { SERIESINFO *v7; long v8; long v9; long v10; long v11; int dbva; CompactMethod cmethoda; _BOOL4 v15; int err; int erra; cmethoda = cmethod; dbva = dbv; v15 = dbv ...
static int lib_add_db_data(double **dbZ, SERIESINFO *sinfo, DATASET *dset, CompactMethod cmethod, int dbv, PRN *prn) { int new = (dbv == dset->v); int err = 0; if (sinfo == NULL && dbZ == NULL) { fprintf(stderr, "lib_add_db_data: broken call!\n"); return E_DATA; } if (cmet...
lib_add_db_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_clear_data(ExecState *s, DATASET *dset) { int err; err = 0; if (dset->Z) { err = restore_full_sample(dset, 0); free_Z(dset); } clear_model(s->model); clear_datainfo(dset, 0); libgretl_session_cleanup(1); set_model_count(0); gretl_cmd_destroy_context(s->cmd); return err; }
static int lib_clear_data(ExecState *s, DATASET *dset) { int err = 0; if (dset->Z != NULL) { err = restore_full_sample(dset, NULL); free_Z(dset); } clear_model(s->model); clear_datainfo(dset, CLEAR_FULL); libgretl_session_cleanup(SESSION_CLEAR_DATASET); set_model_count(0); gretl_cmd_destroy_co...
lib_clear_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_join_data(const char *param, const char *filename, DATASET *dset, gretlopt opt, PRN *prn) { _BOOL4 v6; char *v7; char *v8; int seqval; int nvars; int err; int aggr; int midas_pd; int i; int tseries; gretlopt jopt; char **vnames; char *auxname; char *okey; char *fi...
int lib_join_data(const char *param, const char *filename, DATASET *dset, gretlopt opt, PRN *prn) { gretlopt opts[] = {OPT_I, OPT_O, OPT_F, OPT_A, OPT_D, OPT_K, OPT_X, OPT_T, OPT_P, 0}; char *okey = NULL, *filter = NULL; char **vnames = NULL; char *dataname = NULL; char ...
lib_join_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void lib_logo() { printf("\nLibgretl-1.0, revision %d\n", 0); }
void lib_logo(void) { printf("\nLibgretl-1.0, revision %d\n", LIBGRETL_REVISION); }
lib_logo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_open_append(ExecState *s, DATASET *dset, char *newfile, PRN *prn) { char *v5; int err; int erra; gretlopt opt; PRN *vprn; CMD *cmd; const char *buf; OpenOp op; unsigned long v15; v15 = __readfsqword(0x28u); cmd = s->cmd; opt = cmd->opt; memset(&op, 0, sizeof(op)); vprn = prn; *new...
static int lib_open_append(ExecState *s, DATASET *dset, char *newfile, PRN *prn) { CMD *cmd = s->cmd; gretlopt opt = cmd->opt; OpenOp op = {0}; PRN *vprn = prn; int err; *newfile = '\0'; err = open_append_stage_1(cmd, dset, &op, prn); if (cmd->ci == JOIN) { return err;...
lib_open_append
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_run_R_sync(gretlopt opt, PRN *prn) { char *argv[6]; unsigned long v4; v4 = __readfsqword(0x28u); argv[0] = "R"; argv[1] = "--no-save"; argv[2] = "--no-init-file"; argv[3] = "--no-restore-data"; argv[4] = "--slave"; argv[5] = 0; return lib_run_prog_sync(argv, opt, 1, prn); }
static int lib_run_R_sync(gretlopt opt, PRN *prn) { char *argv[] = {"R", "--no-save", "--no-init-file", "--no-restore-data", "--slave", NULL}; return lib_run_prog_sync(argv, opt, LANG_R, prn); }
lib_run_R_sync
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_run_other_sync(gretlopt opt, PRN *prn) { gchar *scriptpath; char *argv[6]; unsigned long v5; v5 = __readfsqword(0x28u); scriptpath = get_foreign_scriptpath(foreign_lang); switch (foreign_lang) { case 2: argv[0] = (char *)gretl_oxl_path(); argv[1] = scriptpath; argv[2] = 0; break; ...
static int lib_run_other_sync(gretlopt opt, PRN *prn) { char *scriptpath; char *argv[6]; int err; scriptpath = (char *)get_foreign_scriptpath(foreign_lang); if (foreign_lang == LANG_OX) { argv[0] = (char *)gretl_oxl_path(); argv[1] = scriptpath; argv[2] = NULL; } else if (foreign_lang == LANG_...
lib_run_other_sync
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_run_prog_sync(char **argv, gretlopt opt, int lang, PRN *prn) { const char *v4; gint status; int err; gchar *sout; gchar *errout; GError *gerr[2]; gerr[1] = (GError *)__readfsqword(0x28u); sout = 0; errout = 0; status = 0; gerr[0] = 0; err = 0; v4 = gretl_workdir(); g_spawn_sync(v4, ...
static int lib_run_prog_sync(char **argv, gretlopt opt, int lang, PRN *prn) { gchar *sout = NULL; gchar *errout = NULL; gint status = 0; GError *gerr = NULL; int err = 0; g_spawn_sync(gretl_workdir(), argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &sout, &errout, &status, &gerr); if (gerr !...
lib_run_prog_sync
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_spread_db_data(double **dbZ, SERIESINFO *sinfo, DATASET *dset, PRN *prn) { int err; DATASET *tmpset[2]; tmpset[1] = (DATASET *)__readfsqword(0x28u); err = 0; if (dset && dset->v) { tmpset[0] = make_import_tmpset(dset, sinfo, dbZ, &err); if (!err) err = do_compact_...
int lib_spread_db_data(double **dbZ, SERIESINFO *sinfo, DATASET *dset, PRN *prn) { int err = 0; if (dset == NULL || dset->v == 0) { gretl_errmsg_set("\"compact=spread\": requires a dataset in place"); err = E_DATA; } else { DATASET *tmpset = make_import_tmpset(dset, sinfo, dbZ,...
lib_spread_db_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int lib_spread_dbnomics_data(DATASET *dset, DATASET *dbset, PRN *prn) { DATASET *dbseta; DATASET *dseta; int err; gretlopt merge_opt; dseta = dset; dbseta = dbset; err = 0; if (dset && dseta->v) { err = do_compact_spread(dbseta, dseta->pd); if (!err) { merge_opt = OPT_X | OPT_U | OPT_K; ...
int lib_spread_dbnomics_data(DATASET *dset, DATASET *dbset, PRN *prn) { int err = 0; if (dset == NULL || dset->v == 0) { gretl_errmsg_set("\"compact=spread\": requires a dataset in place"); err = E_DATA; } else { err = do_compact_spread(dbset, dset->pd); if (!err) { gretlopt merge_opt = (O...
lib_spread_dbnomics_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void libgretl_cleanup() { libgretl_session_cleanup(0); gretl_rand_free(); gretl_functions_cleanup(); libset_cleanup(); gretl_command_hash_cleanup(); gretl_function_hash_cleanup(); lapack_mem_free(); forecast_matrix_cleanup(); stored_options_cleanup(); option_printing_cleanup(); gnuplot_cleanup(); ...
void libgretl_cleanup(void) { libgretl_session_cleanup(SESSION_CLEAR_ALL); gretl_rand_free(); gretl_functions_cleanup(); libset_cleanup(); gretl_command_hash_cleanup(); gretl_function_hash_cleanup(); lapack_mem_free(); forecast_matrix_cleanup(); stored_options_cleanup(); option_printing_cleanup(); ...
libgretl_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void libgretl_init() { int mp_bits; libset_init(); gretl_rand_init(); gretl_xml_init(); gretl_stopwatch_init(); if (!gretl_in_tool_mode()) { blas_init(); num_threads_init(blas_variant); } mp_bits = get_mp_bits(); __gmpf_set_default_prec(mp_bits); }
void libgretl_init(void) { libset_init(); gretl_rand_init(); gretl_xml_init(); gretl_stopwatch_init(); if (!gretl_in_tool_mode()) { blas_init(); num_threads_init(blas_variant); } #if HAVE_GMP mpf_set_default_prec(get_mp_bits()); #endif }
libgretl_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void libgretl_session_cleanup(int mode) { gretl_saved_objects_cleanup(); gretl_transforms_cleanup(); gretl_lists_cleanup(); gretl_tests_cleanup(); gretl_plotx(0, OPT_NONE); setopt_cleanup(); if (mode != 1) destroy_user_vars(); }
void libgretl_session_cleanup(int mode) { gretl_saved_objects_cleanup(); gretl_transforms_cleanup(); gretl_lists_cleanup(); gretl_tests_cleanup(); gretl_plotx(NULL, OPT_NONE); setopt_cleanup(); if (mode != SESSION_CLEAR_DATASET) { destroy_user_vars(); } }
libgretl_session_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void libset_cleanup() { int i; for (i = 0; i < n_states; ++i) free_state((set_state *)state_stack->pdata[i]); g_ptr_array_free(state_stack, 1); state_stack = 0; n_states = 0; state_idx = -1; free(looping); looping = 0; looplen = 0; }
void libset_cleanup(void) { int i; #if PDEBUG fprintf(stderr, "libset_cleanup called\n"); #endif for (i = 0; i < n_states; i++) { free_state(g_ptr_array_index(state_stack, i)); } g_ptr_array_free(state_stack, TRUE); state_stack = NULL; n_states = 0; state_idx = -1; free(looping); looping = N...
libset_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int libset_get_bool(SetKey key) { switch (key) { case R_FUNCTIONS: return globals.R_functions; case R_LIB: return globals.R_lib; case USE_DCMT: return gretl_rand_get_dcmt(); case LOGSTAMP: return globals.logstamp; } if (check_for_state()) return 0; maybe_check_env(key); return flag...
int libset_get_bool(SetKey key) { if (key == R_FUNCTIONS) { return globals.R_functions; } else if (key == R_LIB) { return globals.R_lib; } else if (key == USE_DCMT) { return gretl_rand_get_dcmt(); } else if (key == LOGSTAMP) { return globals.logstamp; } if (check_for_state()) { return ...
libset_get_bool
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double libset_get_double(SetKey key) { double x; double *valp; if (check_for_state()) return NAN; valp = (double *)setkey_get_target(key, SV_DOUBLE); if (valp) { x = *valp; if (fabs(*valp) > 1.797693134862316e308 && (key == NLS_TOLER || key == BFGS_TOLER)) return get_default_nls_tol...
double libset_get_double(SetKey key) { void *valp; if (check_for_state()) { return NADBL; } valp = setkey_get_target(key, SV_DOUBLE); if (valp != NULL) { double x = *(double *)valp; if (na(x) && (key == NLS_TOLER || key == BFGS_TOLER)) { x = get_default_nls_toler(); } return x; ...
libset_get_double
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int libset_get_int(SetKey key) { int *valp; if (check_for_state()) return 0; valp = (int *)setkey_get_target(key, SV_INT); if (valp) { if ((unsigned int)key > QUANTILE_TYPE && ((unsigned int)key <= STATE_VARS_MAX || (unsigned int)key > CSV_DIGITS)) return *valp; else return *(ch...
int libset_get_int(SetKey key) { void *valp; if (check_for_state()) { return 0; } valp = setkey_get_target(key, SV_INT); if (valp != NULL) { #if SVDEBUG fprintf(stderr, "libset_get_int: valp %p\n", valp); #endif if (libset_small_int(key)) { return *(gint8 *)valp; } else { return...
libset_get_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int libset_get_scalar(SetKey key, const char *arg, int *pi, double *px) { int err; int nstatus; double x; unsigned long v10; v10 = __readfsqword(0x28u); x = NAN; err = 0; if (!arg || !*arg) return 15; nstatus = libset_numeric_test(arg, pi, px); if (nstatus == 1) return 17; if (nstatus) { ...
static int libset_get_scalar(SetKey key, const char *arg, int *pi, double *px) { double x = NADBL; int nstatus, err = 0; if (arg == NULL || *arg == '\0') { return E_ARGS; } nstatus = libset_numeric_test(arg, pi, px); if (nstatus == NUMERIC_BAD) { return E_INVARG; } else if (nstatus == NUMERIC_O...
libset_get_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int libset_get_unsigned(const char *arg, unsigned int *pu) { int err; char *test; unsigned long lu; double x; unsigned long v7; v7 = __readfsqword(0x28u); lu = 0; test = 0; x = NAN; err = 0; *__errno_location() = 0; lu = strtoul(arg, &test, 10); if (*test || *__errno_location()) { x = get...
static int libset_get_unsigned(const char *arg, unsigned int *pu) { unsigned long lu = 0; char *test = NULL; double x = NADBL; int err = 0; errno = 0; lu = strtoul(arg, &test, 10); if (*test == '\0' && errno == 0) { if (lu <= UINT_MAX) { *pu = (unsigned)lu; return 0; } else { r...
libset_get_unsigned
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0