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
void NextIrredPoly(Polynomial *pl, int nth) { int i; int max_deg; max_deg = 0; for (i = 0; i <= 9; ++i) { if (irredpolylist[nth][i]) max_deg = i; pl->x[i] = irredpolylist[nth][i]; } pl->deg = max_deg; }
void NextIrredPoly(Polynomial *pl, int nth) { int i, max_deg; for (max_deg = 0, i = 0; i <= MAX_IRRED_DEG; i++) { if (irredpolylist[nth][i]) max_deg = i; pl->x[i] = irredpolylist[nth][i]; } pl->deg = max_deg; }
NextIrredPoly
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void ODBC_info_clear_read() { int i; free(gretl_odinfo.query); gretl_odinfo.query = 0; doubles_array_free(gretl_odinfo.X, gretl_odinfo.nvars); gretl_odinfo.X = 0; strings_array_free(gretl_odinfo.S, gretl_odinfo.nrows); gretl_odinfo.S = 0; gretl_string_table_destroy(gretl_odinfo.gst); gretl_odinfo.gst...
static void ODBC_info_clear_read(void) { int i; free(gretl_odinfo.query); gretl_odinfo.query = NULL; doubles_array_free(gretl_odinfo.X, gretl_odinfo.nvars); gretl_odinfo.X = NULL; strings_array_free(gretl_odinfo.S, gretl_odinfo.nrows); gretl_odinfo.S = NULL; gretl_string_table_destroy(gretl_odinfo.g...
ODBC_info_clear_read
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int OLS_demean_detrend(double *y, int offset, int T, DetCode det, PRN *prn) { const char *v6; double *ya; int t; int ta; int tb; int tc; int xcols; int err; gretl_matrix *yd; gretl_matrix *Xd; gretl_matrix *b; xcols = 1; if (det == UR_QUAD_TREND) { xcols = 3; } else if (det == UR_TREND)...
static int OLS_demean_detrend(double *y, int offset, int T, DetCode det, PRN *prn) { gretl_matrix *yd = NULL; gretl_matrix *Xd = NULL; gretl_matrix *b = NULL; int t, xcols = 1; int err = 0; if (det == UR_QUAD_TREND) { xcols = 3; } else if (det == UR_TREND) { xcols = ...
OLS_demean_detrend
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
Polynomial *PolynomialDup(Polynomial *pl) { int i; Polynomial *pt; pt = NewPoly(pl->deg); for (i = pl->deg; i >= 0; --i) pt->x[i] = pl->x[i]; return pt; }
static Polynomial *PolynomialDup(Polynomial *pl) { Polynomial *pt; int i; pt = NewPoly(pl->deg); for (i = pl->deg; i >= 0; i--) pt->x[i] = pl->x[i]; return pt; }
PolynomialDup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void PolynomialMod(Polynomial *wara, const Polynomial *waru) { int i; int ia; int deg_diff; while (wara->deg >= waru->deg) { deg_diff = wara->deg - waru->deg; for (i = 0; i <= waru->deg; ++i) wara->x[i + deg_diff] ^= waru->x[i]; for (ia = wara->deg; ia >= 0 && !wara->x[ia]; --ia) ; ...
static void PolynomialMod(Polynomial *wara, const Polynomial *waru) { int i; int deg_diff; while (wara->deg >= waru->deg) { deg_diff = wara->deg - waru->deg; for (i = 0; i <= waru->deg; i++) { wara->x[i + deg_diff] ^= waru->x[i]; } for (i = wara->deg; i >= 0; i--) { if (wara->x[i]) ...
PolynomialMod
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
Polynomial *PolynomialMult(Polynomial *p0, Polynomial *p1) { int i; int j; Polynomial *p; if (p0->deg < 0 || p1->deg < 0) return NewPoly(-1); p = NewPoly(p0->deg + p1->deg); for (i = 0; i <= p1->deg; ++i) { if (p1->x[i]) { for (j = 0; j <= p0->deg; ++j) p->x[i + j] ^= p0->x[j]; } ...
static Polynomial *PolynomialMult(Polynomial *p0, Polynomial *p1) { int i, j; Polynomial *p; if ((p0->deg < 0) || (p1->deg < 0)) { p = NewPoly(-1); return p; } p = NewPoly(p0->deg + p1->deg); for (i = 0; i <= p1->deg; i++) { if (p1->x[i]) { for (j = 0; j <= p0->deg; j++) { p->x[i...
PolynomialMult
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int QLR_graph(const double *testvec, int t1, int t2, const DATASET *dset, int df_0, int robust) { char *v7; char *v8; char *v9; int err; int t; const char *title; double critval; const double *x; FILE *fp; double (*qlr_critval)(int); const char *titles[2]; unsigned long v21; v21...
static int QLR_graph(const double *testvec, int t1, int t2, const DATASET *dset, int df, int robust) { const double *x = gretl_plotx(dset, OPT_NONE); const char *titles[] = {N_("Chow F-test for break"), N_("Robust Wald test for break")}; const char *title; double (...
QLR_graph
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int QLR_plot_wanted(gretlopt opt) { _BOOL4 ret; const char *plotparm; ret = gretl_in_batch_mode() == 0; if ((opt & 0x100000) != 0) { plotparm = get_optval_string(105, OPT_U); if (plotparm) return strcmp(plotparm, "none") != 0; } return ret; }
static int QLR_plot_wanted(gretlopt opt) { int ret = !gretl_in_batch_mode(); if (opt & OPT_U) { const char *plotparm = get_optval_string(QLRTEST, OPT_U); if (plotparm != NULL) { if (!strcmp(plotparm, "none")) { ret = 0; } else { ret = 1; } } } return ret; }
QLR_plot_wanted
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void QLR_print_result(double test, double pval, const char *datestr, int dfn, int dfd, int robust, PRN *prn) { char *v7; char *v8; char *v9; char *v10; double testa; testa = test; v7 = gettext("Quandt likelihood ratio test for structural break at an " "unknown point,\...
static void QLR_print_result(double test, double pval, const char *datestr, int dfn, int dfd, int robust, PRN *prn) { pputs(prn, _("Quandt likelihood ratio test for structural break at an " "unknown point,\nwith 15 percent trimming")); pputs(prn, ":\n"); if (robust) { ...
QLR_print_result
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double QLR_pval(double X2, int df_0, double p1, double p2) { double (*qlr_asy_pvalue)(double, int, double); if (X2 < 0.0 || df_0 <= 0 || p1 <= 0.0 || p1 >= p2 || p2 >= 1.0) return NAN; qlr_asy_pvalue = (double (*)(double, int, double))get_plugin_function("qlr_asy_pvalue"); if (qlr_asy_pvalue) ret...
double QLR_pval(double X2, int df, double p1, double p2) { double (*qlr_asy_pvalue)(double, int, double); double lamda, pval; if (X2 < 0 || df <= 0 || p1 <= 0 || p2 <= p1 || p2 >= 1) { return NADBL; } qlr_asy_pvalue = get_plugin_function("qlr_asy_pvalue"); if (qlr_asy_pvalue == NULL) { return NAD...
QLR_pval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int QLR_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { return real_chow_test(0, pmod, dset, 105, (gretlopt)(opt | 0x80000), prn); }
int QLR_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { return real_chow_test(0, pmod, dset, QLRTEST, opt | OPT_T, prn); }
QLR_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int QR_OLS_work(gretl_matrix *Q, gretl_matrix *R) { integer rows; char uplo; char diag; integer k; int err; integer info; int r; unsigned long v10; v10 = __readfsqword(0x28u); if (R) rows = R->rows; else rows = 0; k = rows; err = gretl_matrix_QR_decomp(Q, R); if (err) return err...
static int QR_OLS_work(gretl_matrix *Q, gretl_matrix *R) { integer k = gretl_matrix_rows(R); int r, err; err = gretl_matrix_QR_decomp(Q, R); if (err) { return err; } r = gretl_check_QR_rank(R, &err, NULL); if (err) { return err; } if (r < k) { err = E_SINGULAR; } else { char uplo...
QR_OLS_work
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int QR_decomp_plus(gretl_matrix *Q, gretl_matrix *R, int *rank, int *warn) { integer rows; char uplo; char diag; integer k; int err; integer info; int r; double rcond[2]; *(_QWORD *)&rcond[1] = __readfsqword(0x28u); if (R) rows = R->rows; else rows = 0; k = rows; rcond[0] = 0.0; if ...
static int QR_decomp_plus(gretl_matrix *Q, gretl_matrix *R, int *rank, int *warn) { integer k = gretl_matrix_rows(R); double rcond = 0; int r, err; if (warn != NULL) { *warn = 0; } err = gretl_matrix_QR_decomp(Q, R); if (err) { return err; } r = gretl_check_QR_rank...
QR_decomp_plus
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int QR_solve(gretl_matrix *A, gretl_matrix *B) { integer m; integer n; integer lda; integer nrhs; integer rank; integer info; integer lwork; int err; int zfunc; int wsz; int i; double rcond; double *work; double *rwork; integer *jpvt; gretl_matrix *C; unsigned long v19; v19 = __read...
static int QR_solve(gretl_matrix *A, gretl_matrix *B) { integer m, n, lda, nrhs; integer rank, info = 0; integer lwork = -1; integer *jpvt = NULL; double *work = NULL; double *rwork = NULL; double rcond = QR_RCOND_MIN; int zfunc = 0; int wsz = 1; int i, err = 0; lda = m = A->rows; n = A->cols; ...
QR_solve
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void QprimeY(double *y, int T) { double v2; int t; for (t = 0; t < T - 2; ++t) { v2 = y[t + 1]; y[t] = y[t + 2] - (v2 + v2) + y[t]; } }
static void QprimeY(double *y, int T) { int t; for (t = 0; t < T - 2; t++) { y[t] += y[t + 2] - 2 * y[t + 1]; } }
QprimeY
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void R_data_out(const DATASET *dset, const int *list, int digits, FILE *fp) { const char *string_for_obs; int v5; int print_markers; int t; int i; int vi; double xt; print_markers = 0; if (dset->S) print_markers = markers_are_unique(dset); for (t = dset->t1; t <= dset->t2; ++t) { if (print_...
static void R_data_out(const DATASET *dset, const int *list, int digits, FILE *fp) { int print_markers = 0; double xt; int t, i, vi; if (dset->S != NULL) { print_markers = markers_are_unique(dset); } for (t = dset->t1; t <= dset->t2; t++) { if (print_markers) { fprintf...
R_data_out
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_LR_lag_test(GRETL_VAR *var, const gretl_matrix *E) { double v2; double v3; double v4; double v6; double v7; double v8; double v9; int err; int T; int g; int m; int k; double test_ldet; double ll; double AIC; double BIC; double HQC; unsigned long v20; v20 = __readfsqword(0x...
int VAR_LR_lag_test(GRETL_VAR *var, const gretl_matrix *E) { double test_ldet; int err = 0; test_ldet = gretl_VAR_ldet(var, E, &err); if (!err) { double ll, AIC, BIC, HQC; int T = var->T; int g = var->neqns; int m = var->ncoeff - g; int k = g * m; var->LR = T * (test_ldet - var->ldet)...
VAR_LR_lag_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_RTF_row_spec(int ncols, PRN *prn) { int i; int cellx; cellx = 800; pputs(prn, "{\\trowd \\trqc \\trgaph60\\trleft-30\\trrh262"); for (i = 0; i < ncols; ++i) { pprintf(prn, "\\cellx%d", cellx); cellx += 1600; } pputc(prn, 10); }
static void VAR_RTF_row_spec(int ncols, PRN *prn) { int lcol = 800, colwid = 1600; int i, cellx = lcol; pputs(prn, "{\\trowd \\trqc \\trgaph60\\trleft-30\\trrh262"); for (i = 0; i < ncols; i++) { pprintf(prn, "\\cellx%d", cellx); cellx += colwid; } pputc(prn, '\n'); }
VAR_RTF_row_spec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_XTX_matrix(GRETL_VAR *var) { var->XTX = gretl_zero_matrix_new(var->X->cols, var->X->cols); if (!var->XTX) return 12; gretl_matrix_multiply_mod(var->X, GRETL_MOD_TRANSPOSE, var->X, GRETL_MOD_NONE, var->XTX, GRETL_MOD_NONE); return gretl_invert_matrix(var->XTX); }
static int VAR_add_XTX_matrix(GRETL_VAR *var) { int k = var->X->cols; int err = 0; var->XTX = gretl_zero_matrix_new(k, k); if (var->XTX == NULL) { err = E_ALLOC; } else { gretl_matrix_multiply_mod(var->X, GRETL_MOD_TRANSPOSE, var->X, GRETL_MOD_NONE, var->XTX, GRETL_MOD_...
VAR_add_XTX_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_basic_matrices(GRETL_VAR *v) { int err; err = 0; v->Y = gretl_matrix_alloc(v->T, v->neqns); v->E = gretl_matrix_alloc(v->T, v->neqns); if (!v->Y || !v->E) err = 12; if (!err && v->ncoeff > 0) { v->X = gretl_matrix_alloc(v->T, v->ncoeff); v->B = gretl_matrix_alloc(v->ncoeff, v->neqns...
static int VAR_add_basic_matrices(GRETL_VAR *v) { int err = 0; v->Y = gretl_matrix_alloc(v->T, v->neqns); v->E = gretl_matrix_alloc(v->T, v->neqns); if (v->Y == NULL || v->E == NULL) { err = E_ALLOC; } if (!err && v->ncoeff > 0) { v->X = gretl_matrix_alloc(v->T, v->ncoeff); v->B = gretl_matri...
VAR_add_basic_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_fcast_variance(GRETL_VAR *var, gretl_matrix *F, int n_static) { int n_statica; int i; int j; int s; int sa; int err; int n; int k; gretl_matrix *se; double vti; n_statica = n_static; se = 0; n = var->neqns; err = 0; if (n_static < 0) { fprintf(stderr, "n_static = %d\n", n_...
static int VAR_add_fcast_variance(GRETL_VAR *var, gretl_matrix *F, int n_static) { gretl_matrix *se = NULL; double ftj, vti; int k, n = var->neqns; int i, j, s; int err = 0; if (n_static < 0) { fprintf(stderr, "n_static = %d\n", n_static); n_static = 0; } k = ...
VAR_add_fcast_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_forecast(GRETL_VAR *var, int t1, int t2, const DATASET *dset, gretlopt opt) { int v6; int i; int j; int ja; int k; int s; int t; int lag; int m; int miss; int tdyn; int vj; int p; double fti; double xti; double xtia; double xtid; const MODEL *pmod; ...
static int VAR_add_forecast(GRETL_VAR *var, int t1, int t2, const DATASET *dset, gretlopt opt) { const MODEL *pmod; double fti, xti, xtid; int tdyn, nf = t2 - t1 + 1; int i, j, k, s, t, p; int lag, vj, m = 0; int fcols; fcols = 2 * var->neqns; var->F = gretl_zero_matrix_new...
VAR_add_forecast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_models(GRETL_VAR *var, const DATASET *dset) { int i; int ia; int err; int n; n = var->neqns; err = 0; if (var->models) { for (i = 0; i < n; ++i) clear_model(var->models[i]); } else { var->models = gretl_model_array_new(n); if (!var->models) err = 12; } if (var->m...
static int VAR_add_models(GRETL_VAR *var, const DATASET *dset) { int n = var->neqns; int i, err = 0; if (var->models != NULL) { for (i = 0; i < n; i++) { clear_model(var->models[i]); } } else { var->models = gretl_model_array_new(n); if (var->models == NULL) { err = E_ALLOC; } ...
VAR_add_models
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_roots(GRETL_VAR *var) { int err; unsigned long v3; v3 = __readfsqword(0x28u); err = 0; if (var->A) { var->L = gretl_general_matrix_eigenvals(var->A, &err); if (err) { gretl_matrix_free(var->L); var->L = 0; } return err; } else { fwrite("VAR_add_roots: var->A is m...
static int VAR_add_roots(GRETL_VAR *var) { int err = 0; if (var->A == NULL) { fprintf(stderr, "VAR_add_roots: var->A is missing\n"); return E_DATA; } var->L = gretl_general_matrix_eigenvals(var->A, &err); #if 0 gretl_matrix_print(var->A, "Companion form matrix"); gretl_matrix_print(var->L, "Ei...
VAR_add_roots
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_add_stats(GRETL_VAR *var, int code) { double v2; double v3; double v4; double v6; double v7; double v8; double v9; int err; int T; int g; int p; int k; gretl_matrix *E1; unsigned long v16; v16 = __readfsqword(0x28u); E1 = 0; err = 0; if (var->order > 1 && code == 1) E1 =...
static int VAR_add_stats(GRETL_VAR *var, int code) { gretl_matrix *E1 = NULL; int err = 0; if (var->order > 1 && code == VAR_ESTIMATE) { E1 = VAR_short_residuals(var, &err); } var->S = gretl_matrix_alloc(var->neqns, var->neqns); if (var->S == NULL) { err = E_ALLOC; } if (!err) { gretl_mat...
VAR_add_stats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_allocate_cholesky_matrix(GRETL_VAR *var) { int err; err = 0; if (var->C) return 0; var->C = gretl_zero_matrix_new(var->neqns, var->neqns); if (!var->C) return 12; return err; }
static int VAR_allocate_cholesky_matrix(GRETL_VAR *var) { int n = var->neqns; int err = 0; if (var->C != NULL) { return 0; } var->C = gretl_zero_matrix_new(n, n); if (var->C == NULL) { err = E_ALLOC; } return err; }
VAR_allocate_cholesky_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_allocate_companion_matrix(GRETL_VAR *var) { int err; int j; int n; int dim; err = 0; if (var->A) return 0; n = var->neqns; dim = ((var->ci == 138) + var->order) * n; var->A = gretl_zero_matrix_new(dim, dim); if (!var->A) return 12; for (j = 0; j < dim - n; ++j) var->A->val[j +...
static int VAR_allocate_companion_matrix(GRETL_VAR *var) { int n, dim, err = 0; if (var->A != NULL) { return 0; } n = var->neqns; dim = n * effective_order(var); var->A = gretl_zero_matrix_new(dim, dim); if (var->A == NULL) { err = E_ALLOC; } else { int j, jmax = dim - n; for (j = 0...
VAR_allocate_companion_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_allocate_residuals_matrix(GRETL_VAR *var) { int err; err = 0; if (var->E) return 0; var->E = gretl_zero_matrix_new(var->T, var->neqns); if (!var->E) return 12; return err; }
static int VAR_allocate_residuals_matrix(GRETL_VAR *var) { int err = 0; if (var->E != NULL) { return 0; } var->E = gretl_zero_matrix_new(var->T, var->neqns); if (var->E == NULL) { err = E_ALLOC; } return err; }
VAR_allocate_residuals_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_check_df_etc(GRETL_VAR *v, const DATASET *dset, gretlopt opt) { int order; int err; err = 0; v->T = v->t2 - v->t1 + 1; if (v->lags) order = *v->lags; else order = v->order; v->ncoeff = order * v->neqns; if (v->xlist) v->ncoeff += *v->xlist; if (v->ci == 138) { if ((opt & 0x200...
static int VAR_check_df_etc(GRETL_VAR *v, const DATASET *dset, gretlopt opt) { int nl, err = 0; v->T = v->t2 - v->t1 + 1; nl = var_n_lags(v); v->ncoeff = nl * v->neqns; if (v->xlist != NULL) { v->ncoeff += v->xlist[0]; } if (v->ci == VECM) { if (!(opt & OPT_N) && !(opt & OPT_R)) { v->de...
VAR_check_df_etc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *VAR_coeff_matrix_from_VECM(GRETL_VAR *var, int Atrans) { int v2; _BOOL4 v3; double *v5; int v6; int v7; int v8; int v9; int v10; int nb; int i; int j; int ja; int jb; int jc; int k; int col; int order; int nexo; int utrend; int ndelta; int nseas; int nr; int n...
gretl_matrix *VAR_coeff_matrix_from_VECM(GRETL_VAR *var, int Atrans) { gretl_matrix *C0 = NULL; gretl_matrix *rbeta = NULL; gretl_matrix *B = var->B; int order = var->order + 1; int nexo = (var->xlist != NULL) ? var->xlist[0] : 0; int utrend = jcode(var) == J_UNREST_TREND; int ndelta = var->order * var->n...
VAR_coeff_matrix_from_VECM
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_depvar_name(GRETL_VAR *var, int i, const char *yname) { MODEL *pmod; pmod = var->models[i]; if (var->ci == 135) { pmod->depvar = gretl_strdup(yname); } else { pmod->depvar = (char *)malloc(0x20u); if (pmod->depvar) { strcpy(pmod->depvar, "d_"); strncat(pmod->depvar, yname, 0x1Du...
static int VAR_depvar_name(GRETL_VAR *var, int i, const char *yname) { MODEL *pmod = var->models[i]; if (var->ci == VAR) { pmod->depvar = gretl_strdup(yname); } else { pmod->depvar = malloc(VNAMELEN); if (pmod->depvar != NULL) { strcpy(pmod->depvar, "d_"); strncat(pmod->depvar, yname, VNA...
VAR_depvar_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_do_lagsel(GRETL_VAR *var, const DATASET *dset, gretlopt opt, PRN *prn) { double v5; double v6; double v7; double v8; double *v9; double v10; double *v11; double v12; double v13; double v14; double v15; int err; int minlag; int use_QR; int j; int m; int c; int p; int r; in...
int VAR_do_lagsel(GRETL_VAR *var, const DATASET *dset, gretlopt opt, PRN *prn) { gretl_matrix *crittab = NULL; gretl_matrix *lltab = NULL; gretl_matrix *E = NULL; int p = var->order; int r = p - 1; int T = var->T; int n = var->neqns; double best[N_IVALS] = {var->AIC, var->BIC, var->HQC}; int best_row...
VAR_do_lagsel
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_dw_rho(MODEL *pmod) { int t; int s; double xx; double ut1; double u11; double ut; double u1; xx = 0.0; ut1 = 0.0; u11 = 0.0; for (t = pmod->t1; t <= pmod->t2; ++t) { s = t - 1; if (t - 1 >= 0 && fabs(pmod->uhat[s]) <= 1.797693134862316e308) { ut = pmod->uhat[t]; u1 = ...
static void VAR_dw_rho(MODEL *pmod) { double ut, u1; double xx = 0; double ut1 = 0, u11 = 0; int t, s; for (t = pmod->t1; t <= pmod->t2; t++) { s = t - 1; if (s >= 0 && !na(pmod->uhat[s])) { ut = pmod->uhat[t]; u1 = pmod->uhat[s]; xx += (ut - u1) * (ut - u1); ut1 += ut * u1; ...
VAR_dw_rho
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_fill_X(GRETL_VAR *v, int p, const DATASET *dset) { int v3; int v4; double *v5; double v6; int v7; double v8; int v9; int v10; int i; int ia; int ib; int j; int s; int sa; int sb; int sc; int t; int ta; int tb; int tc; int td; int k; int per; _BOOL4 diff; int vi...
void VAR_fill_X(GRETL_VAR *v, int p, const DATASET *dset) { const double *x; int diff = (v->ci == VECM); int i, j, s, t, vi; int k = 0; if (v->detflags & DET_CONST) { s = 0; for (t = v->t1; t <= v->t2; t++) { gretl_matrix_set(v->X, s++, k, 1.0); } k++; } for (i = 0; i < v->neqns; i...
VAR_fill_X
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_fill_Y(GRETL_VAR *v, const DATASET *dset) { int v2; int i; int s; int t; int vi; for (i = 0; i < v->neqns; ++i) { vi = v->ylist[i + 1]; s = 0; for (t = v->t1; t <= v->t2; ++t) { v2 = s++; v->Y->val[i * v->Y->rows + v2] = dset->Z[vi][t]; } } if (v->Y) { gretl_mat...
static void VAR_fill_Y(GRETL_VAR *v, const DATASET *dset) { int i, vi, s, t; for (i = 0; i < v->neqns; i++) { vi = v->ylist[i + 1]; s = 0; for (t = v->t1; t <= v->t2; t++) { gretl_matrix_set(v->Y, s++, i, dset->Z[vi][t]); } } if (v->Y != NULL) { gretl_matrix_set_t1(v->Y, v->t1); ...
VAR_fill_Y
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *VAR_get_hvec(const gretl_matrix *X, const gretl_matrix *XTX, int *err) { int t; int T; gretl_matrix *Xt; gretl_matrix *hvec; T = X->rows; Xt = gretl_matrix_alloc(1, X->cols); hvec = gretl_matrix_alloc(T, 1); if (Xt && hvec) { for (t = 0; t < T && !*err; ++t)...
static gretl_matrix *VAR_get_hvec(const gretl_matrix *X, const gretl_matrix *XTX, int *err) { gretl_matrix *hvec; gretl_matrix *Xt; int t, T = X->rows; int k = X->cols; double ht; Xt = gretl_matrix_alloc(1, k); hvec = gretl_column_vector_alloc(T); if (Xt == NULL || hv...
VAR_get_hvec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_get_tdyn(GRETL_VAR *var, int t1, int t2, gretlopt opt) { if ((opt & 8) == 0) { if ((opt & 0x40000) != 0) return t2 + 1; else return var->t2 + 1; } return t1; }
static int VAR_get_tdyn(GRETL_VAR *var, int t1, int t2, gretlopt opt) { int td; if (opt & OPT_D) { td = t1; } else if (opt & OPT_S) { td = t2 + 1; } else { td = var->t2 + 1; } return td; }
VAR_get_tdyn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_info_end_row(PRN *prn) { if (tex_format(prn)) { pputs(prn, "\\\\\n"); } else if (rtf_format(prn)) { pputs(prn, "\\intbl \\row\n"); } else { pputc(prn, 10); } }
static void VAR_info_end_row(PRN *prn) { if (tex_format(prn)) { pputs(prn, "\\\\\n"); } else if (rtf_format(prn)) { pputs(prn, "\\intbl \\row\n"); } else { pputc(prn, '\n'); } }
VAR_info_end_row
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_info_end_table(PRN *prn) { if (tex_format(prn)) { pputs(prn, "\\end{longtable}\n\n"); } else if (rtf_format(prn)) { pputs(prn, "}\n"); } else { pputc(prn, 10); } }
static void VAR_info_end_table(PRN *prn) { if (tex_format(prn)) { pputs(prn, "\\end{longtable}\n\n"); } else if (rtf_format(prn)) { pputs(prn, "}\n"); } else { pputc(prn, '\n'); } }
VAR_info_end_table
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_info_header_block(int code, int v, int block, const DATASET *dset, PRN *prn) { char *v5; char *v6; char *v7; const char *v8; char *v9; char *v10; char *v11; int v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; int tex; int rtf; ...
static void VAR_info_header_block(int code, int v, int block, const DATASET *dset, PRN *prn) { int tex = tex_format(prn); int rtf = rtf_format(prn); char vname[48]; if (tex) { pputs(prn, "\\vspace{1em}\n\n"); if (code == IRF) { pprintf(prn, _("Responses to a one-...
VAR_info_header_block
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_info_print_period(int t, PRN *prn) { if (tex_format(prn)) { pprintf(prn, "%d & ", t); } else if (rtf_format(prn)) { pprintf(prn, "\\intbl \\qc %d\\cell ", t); } else { pprintf(prn, " %3d ", t); } }
static void VAR_info_print_period(int t, PRN *prn) { if (tex_format(prn)) { pprintf(prn, "%d & ", t); } else if (rtf_format(prn)) { pprintf(prn, "\\intbl \\qc %d\\cell ", t); } else { pprintf(prn, " %3d ", t); } }
VAR_info_print_period
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_info_print_vname(int i, int v, int endrow, int width, const DATASET *dset, PRN *prn) { char *v6; int tex; int rtf; char vname[40]; unsigned long v14; v14 = __readfsqword(0x28u); tex = tex_format(prn); rtf = rtf_format(prn); if (tex) { v6 = tex_escape(vname, dset...
static void VAR_info_print_vname(int i, int v, int endrow, int width, const DATASET *dset, PRN *prn) { int tex = tex_format(prn); int rtf = rtf_format(prn); char vname[32]; if (tex) { pprintf(prn, " %s ", tex_escape(vname, dset->varname[v])); if (endrow) { pputs(p...
VAR_info_print_vname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *VAR_list_composite(const int *ylist, const int *xlist, const int *rlist) { int v4; int v5; int v6; int v7; int v8; int v9; int i; int ia; int ib; int k; int ka; long n; int *big; n = *(unsigned int *)ylist; if (xlist && *xlist > 0) LODWORD(n) = *xlist + 1 + n; if (rlist) { ...
int *VAR_list_composite(const int *ylist, const int *xlist, const int *rlist) { int *big = NULL; int i, k, n = ylist[0]; if (xlist != NULL && xlist[0] > 0) { n += xlist[0] + 1; } if (rlist != NULL && rlist[0] > 0) { n += rlist[0] + 1; if (xlist == NULL || xlist[0] == 0) { n++; } } ...
VAR_list_composite
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_make_lists(GRETL_VAR *v, const int *list, const DATASET *dset) { int err; int *tmp[2]; tmp[1] = (int *)__readfsqword(0x28u); err = 0; if (gretl_list_has_separator(list)) { err = gretl_list_split_on_separator(list, &v->ylist, &v->xlist); } else { v->ylist = gretl_list_copy(list); if (!v-...
static int VAR_make_lists(GRETL_VAR *v, const int *list, const DATASET *dset) { int err = 0; #if VDEBUG printlist(list, "VAR_make_lists: incoming list"); #endif if (gretl_list_has_separator(list)) { err = gretl_list_split_on_separator(list, &v->ylist, &v->xlist); } else { v->ylist = gretl_list_copy(li...
VAR_make_lists
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *VAR_matrix_from_models(const GRETL_VAR *var, int idx, int *err) { int v4; double *coeff; int i; int ia; int j; int ja; int k; int mcol; int cnum; gretl_matrix *m; const MODEL *pmod; const MODEL *pmoda; if (idx != 68 || var->ci == 138 && var->order) { if (idx == 68) m =...
static gretl_matrix *VAR_matrix_from_models(const GRETL_VAR *var, int idx, int *err) { gretl_matrix *m = NULL; const MODEL *pmod; double x; int i, j; if (idx == M_VECG) { if (var->ci != VECM || var->order == 0) { *err = E_BADSTAT; return NULL; }...
VAR_matrix_from_models
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_omit_check(GRETL_VAR *var, const int *omitlist, gretlopt opt) { int v3; int err; if (omitlist) v3 = *omitlist; else v3 = 0; err = 0; if (!v3 && (opt & 0x80010) == 0) return 20; if ((opt & 0x80000) != 0 && (var->detflags & 2) == 0) return 38; if ((opt & 0x10) != 0 && (var->detfla...
static int VAR_omit_check(GRETL_VAR *var, const int *omitlist, gretlopt opt) { int nx = omitlist == NULL ? 0 : omitlist[0]; int err = 0; if (nx == 0 && !(opt & (OPT_T | OPT_E))) { err = E_NOOMIT; } else if ((opt & OPT_T) && !(var->detflags & DET_TREND)) { err = E_BADOPT; } else if ((opt & OPT_E) &&...
VAR_omit_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_omit_driver(CMD *cmd, DATASET *dset, PRN *prn) { int err; GRETL_VAR *var; GRETL_VAR *vnew; unsigned long v8; v8 = __readfsqword(0x28u); var = (GRETL_VAR *)get_last_model(0); err = 0; if ((cmd->opt & 0x400000) != 0) return gretl_VAR_wald_omit_test(var, cmd->list, dset, cmd->opt, prn); vnew...
static int VAR_omit_driver(CMD *cmd, DATASET *dset, PRN *prn) { GRETL_VAR *var = get_last_model(NULL); int err = 0; if (cmd->opt & OPT_W) { err = gretl_VAR_wald_omit_test(var, cmd->list, dset, cmd->opt, prn); } else { GRETL_VAR *vnew; vnew = gretl_VAR_omit_test(var, cmd->list, dset, cmd->opt, pr...
VAR_omit_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_portmanteau_test(GRETL_VAR *var) { int v1; int s; int j; unsigned int n; int err; gretl_matrix *C00; gretl_matrix *C0j; gretl_matrix *et; gretl_matrix *ej; gretl_matrix *L; gretl_matrix *R; gretl_matrix *Tmp; double LB; gretl_matrix_block *B; double trj; unsigned long v17; v17...
int VAR_portmanteau_test(GRETL_VAR *var) { gretl_matrix_block *B; gretl_matrix *C00, *C0j; gretl_matrix *et, *ej; gretl_matrix *L, *R, *Tmp; int k, n = var->neqns; double trj, LB = 0.0; int s, j, err = 0; var->LB = NADBL; var->LBs = 0; if (var->ci == VECM && jrank(var) < var->neqns) { return 0...
VAR_portmanteau_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_print_LB_stat(const GRETL_VAR *var, PRN *prn) { char *v2; double LB; int LBs; char *v5; char *v6; double v7; int v8; char *v9; char *v10; double v11; int v12; char *v13; int df_0; double pv; df_0 = var->neqns * var->neqns * (var->LBs - (var->order + (var->ci == 138))); pv = chi...
static void VAR_print_LB_stat(const GRETL_VAR *var, PRN *prn) { int k = var->order + (var->ci == VECM); int df = var->neqns * var->neqns * (var->LBs - k); double pv = chisq_cdf_comp(df, var->LB); if (df <= 0) { return; } if (tex_format(prn)) { pprintf(prn, "\\noindent\n%s: LB(%d) = %g, %s = %d [%....
VAR_print_LB_stat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_retrieve_equations(xmlNodePtr node, xmlDocPtr doc, MODEL **models, int neqns, const DATASET *dset) { int v5; int err; int i; xmlNodePtr cur; MODEL *pmod; unsigned long v14; v14 = __readfsqword(0x28u); cur = node->children; i = 0; err = 0; while (cur && !err) { ...
static int VAR_retrieve_equations(xmlNodePtr node, xmlDocPtr doc, MODEL **models, int neqns, const DATASET *dset) { xmlNodePtr cur = node->xmlChildrenNode; int i = 0, err = 0; while (cur != NULL && !err) { MODEL *pmod; if (!xmlStrcmp(cu...
VAR_retrieve_equations
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_retrieve_jinfo(xmlNodePtr node, xmlDocPtr doc, GRETL_VAR *var) { int prop_as_int; int v4; int v5; int v6; gretl_matrix *matrix; gretl_matrix *v9; gretl_matrix *v10; gretl_matrix *v11; gretl_matrix *v12; gretl_matrix *v13; gretl_matrix *v14; gretl_matrix *v15; gretl_matrix *v16; gretl...
static int VAR_retrieve_jinfo(xmlNodePtr node, xmlDocPtr doc, GRETL_VAR *var) { xmlNodePtr cur = node->xmlChildrenNode; JohansenInfo *jinfo; int ID, code, rank; int seas; int got = 0; int err = 0; got += gretl_xml_get_prop_as_int(node, "ID", &ID); got += gretl_xml_get_prop_as_int(node, "code", &code); ...
VAR_retrieve_jinfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_robust_vcv(GRETL_VAR *var, gretl_matrix *V, MODEL *pmod, int hcv, int k) { int err; gretl_matrix *XOX; VCVInfo vi; unsigned long v11; v11 = __readfsqword(0x28u); XOX = 0; memset(&vi, 0, sizeof(vi)); err = 0; if (var->robust == 2) XOX = var_hac_xox(var, k, &vi, &err); ...
static int VAR_robust_vcv(GRETL_VAR *var, gretl_matrix *V, MODEL *pmod, int hcv, int k) { gretl_matrix *XOX = NULL; VCVInfo vi = {0}; int err = 0; if (var->robust == VAR_HAC) { XOX = var_hac_xox(var, k, &vi, &err); } else { XOX = var_hc_xox(var, k, hcv, &err); } if (!er...
VAR_robust_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_set_sample(GRETL_VAR *v, const DATASET *dset) { int i; int ia; int ib; int ic; int id; int ie; int ig; int ih; int ii; int t; int ta; int tb; int err; int miss; int p; int miss_0; _BOOL4 diff; int s; int vi; diff = v->ci == 138; err = 0; for (t = dset->t1; t <= dset-...
static int VAR_set_sample(GRETL_VAR *v, const DATASET *dset) { int diff = (v->ci == VECM) ? 1 : 0; int i, vi, t, err = 0; for (t = dset->t1; t <= dset->t2; t++) { int miss = 0, p, s = t - (v->order + diff); for (i = 1; i <= v->ylist[0] && !miss; i++) { vi = v->ylist[i]; if (na(dset->Z[vi][t]...
VAR_set_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *VAR_short_residuals(GRETL_VAR *var, int *err) { int order; int j; int t; int k; int g; int nl; gretl_matrix *E; gretl_matrix *X; gretl_matrix *B; g = var->ncoeff - var->neqns; E = gretl_matrix_alloc(var->T, var->neqns); X = gretl_matrix_alloc(var->T, g); B = gretl_matrix_alloc(g...
static gretl_matrix *VAR_short_residuals(GRETL_VAR *var, int *err) { gretl_matrix *X = NULL; gretl_matrix *B = NULL; gretl_matrix *E = NULL; double x; int g = var->ncoeff - var->neqns; int j, t, k, nl; E = gretl_matrix_alloc(var->T, var->neqns); X = gretl_matrix_alloc(var->T, g); B = gretl_matrix_al...
VAR_short_residuals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VAR_wald_omit_tests(GRETL_VAR *var) { int order; double *Fvals; int v4; double *v5; int v6; double *v7; int v8; double *v9; int v10; int F_err; int dim; int i; int j; int k; int m; int any_F_err; int err; int ii; int jj; int jpos; int ipos; int hcv; int p; int n; in...
int VAR_wald_omit_tests(GRETL_VAR *var) { gretl_matrix *V = NULL; gretl_matrix *C = NULL; gretl_vector *b = NULL; int hcv = libset_get_int(HC_VERSION); int p = (var->lags != NULL) ? var->lags[0] : var->order; int n = var->neqns; int g = var->ncoeff; int dim = (p > n) ? p : n; int i, j, k, m = 0; int...
VAR_wald_omit_tests
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VAR_write_A_matrix(GRETL_VAR *v, GretlMatrixMod mod) { double *v2; int i; int ii; int j; int k; int lag; int n; int dim; double bij; n = v->neqns; dim = n * v->order; for (j = 0; j < n; ++j) { ii = 0; lag = 0; k = 0; for (i = 0; i < dim; ++i) { if (v->lags && !in_gret...
void VAR_write_A_matrix(GRETL_VAR *v, GretlMatrixMod mod) { int i, ii, j, k, lag; int n = v->neqns; int dim = n * v->order; double bij; for (j = 0; j < n; j++) { k = lag = ii = 0; for (i = 0; i < dim; i++) { if (lag_wanted(v, lag + 1)) { bij = gretl_matrix_get(v->B, ii + v->ifc, j); ...
VAR_write_A_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int VECM_add_forecast(GRETL_VAR *var, int t1, int t2, const DATASET *dset, gretlopt opt) { int v5; int v7; int v8; double v9; int v10; int v11; int v12; int v13; int v14; int v15; int i; int j; int ja; int jb; int jc; int k; int s; int t; int m; int col; i...
static int VECM_add_forecast(GRETL_VAR *var, int t1, int t2, const DATASET *dset, gretlopt opt) { gretl_matrix *B = NULL; double s0 = 0, s1 = 1; int order = effective_order(var); int nexo = (var->xlist != NULL) ? var->xlist[0] : 0; int nseas = var->jinfo->seasonals; int tdyn, nf...
VECM_add_forecast
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void VECM_fill_Y(GRETL_VAR *v, const DATASET *dset, gretl_matrix *Y) { double v3; int v4; int i; int ia; int s; int sa; int t; int ta; int tb; int k; _BOOL4 trend; int vi; const double *yi; k = 0; for (i = 0; i < v->neqns; ++i) { yi = dset->Z[v->ylist[i + 1]]; k = v->neqns + i; ...
static void VECM_fill_Y(GRETL_VAR *v, const DATASET *dset, gretl_matrix *Y) { const double *yi; int i, vi, s, t; int k = 0; for (i = 0; i < v->neqns; i++) { vi = v->ylist[i + 1]; yi = dset->Z[vi]; k = i + v->neqns; s = 0; for (t = v->t1; t <= v->t2; t++) { gretl_matrix_set(Y, s, i, yi...
VECM_fill_Y
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *VECM_get_EC_matrix(const GRETL_VAR *v, const DATASET *dset, int *err) { int v3; int k; int j; int t; int rank; int T; gretl_matrix *EC; if (v->jinfo) v3 = v->jinfo->rank; else v3 = 0; rank = v3; if (v3) { if (v->X) { if (v->X->cols ...
gretl_matrix *VECM_get_EC_matrix(const GRETL_VAR *v, const DATASET *dset, int *err) { gretl_matrix *EC = NULL; double x; int rank, k, k0; int j, t, T; rank = jrank(v); if (rank == 0) { *err = E_BADSTAT; return NULL; } if (v->X == NULL) { fprintf(stderr, "VE...
VECM_get_EC_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int XTX_XTy(const int *list, int t1, int t2, const DATASET *dset, int nwt, double rho, int pwe, double *xpx, double *xpy, double *ysum, double *ypy, const char *mask) { int v12; int v14; int v15; int v16; int v17; int pwea; int i; int ia; int ib; int ic; int j; int ja; ...
static int XTX_XTy(const int *list, int t1, int t2, const DATASET *dset, int nwt, double rho, int pwe, double *xpx, double *xpy, double *ysum, double *ypy, const char *mask) { int yno = list[1]; int lmin = (xpy != NULL) ? 2 : 1; int lmax = list[0]; int qdiff = (rho != 0.0);...
XTX_XTy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void abort_execution(ExecState *s) { s->cmd->savename[0] = 0; gretl_cmd_destroy_context(s->cmd); errmsg(48, s->prn); }
static void abort_execution(ExecState *s) { *s->cmd->savename = '\0'; gretl_cmd_destroy_context(s->cmd); errmsg(E_STOP, s->prn); }
abort_execution
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void abort_loop_execution(ExecState *s) { s->cmd->savename[0] = 0; gretl_cmd_destroy_context(s->cmd); errmsg(48, s->prn); }
static void abort_loop_execution(ExecState *s) { *s->cmd->savename = '\0'; gretl_cmd_destroy_context(s->cmd); errmsg(E_STOP, s->prn); }
abort_loop_execution
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int accept_as_discrete(const DATASET *dset, int v, int strict) { int d; if (series_is_discrete(dset, v)) return 1; d = gretl_isdiscrete(dset->t1, dset->t2, dset->Z[v]); if (strict) return d > 1; else return d > 0; }
int accept_as_discrete(const DATASET *dset, int v, int strict) { if (series_is_discrete(dset, v)) { return 1; } else { int d = gretl_isdiscrete(dset->t1, dset->t2, dset->Z[v]); return strict ? d > 1 : d > 0; } }
accept_as_discrete
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *acf_matrix(const double *x, int order, const DATASET *dset, int n, int *err) { char *v6; gretl_matrix *v7; double *v8; int m; int k; int t; int T; int t1; int t2; gretl_matrix *A; double xbar; if (dset) { t1 = dset->t1; t2 = dset->t2; while (fa...
gretl_matrix *acf_matrix(const double *x, int order, const DATASET *dset, int n, int *err) { gretl_matrix *A = NULL; double xbar; int m, k, t, T; int t1, t2; if (dset != NULL) { t1 = dset->t1; t2 = dset->t2; while (na(x[t1])) t1++; while (na(x[t2])) t2--;...
acf_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int active_(int *n, double *l, double *u, int *nbd, double *x, int *iwhere, logical *prjctd, logical *cnstnd, logical *boxed) { int *iwherea; double *xa; int *nbda; double *ua; double *la; int i__; int i__a; int nbdd; int i__1; int i__1a; iwherea = iwhere - 1; xa = x - 1; nbda = n...
static int active_(int *n, double *l, double *u, int *nbd, double *x, int *iwhere, logical *prjctd, logical *cnstnd, logical *boxed) { int i__1; int i__, nbdd; --iwhere; --x; --nbd; --u; --l; nbdd = 0; *prjctd = 0; *cnstnd = 0; *boxed = 1; i__1 = *n; fo...
active_
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add(int nnn, Vector *u, Vector *v) { int i; int diff; int diffa; diff = (v->start - u->start + nnn) % nnn; for (i = 0; i < nnn - diff; ++i) u->cf[i] ^= v->cf[i + diff]; diffa = diff - nnn; while (i < nnn) { u->cf[i] ^= v->cf[i + diffa]; ++i; } u->next ^= v->next; }
static void add(int nnn, Vector *u, Vector *v) { int i; int diff = (v->start - u->start + nnn) % nnn; for (i = 0; i < nnn - diff; i++) { u->cf[i] ^= v->cf[i + diff]; } diff = diff - nnn; for (; i < nnn; i++) { u->cf[i] ^= v->cf[i + diff]; } u->next ^= v->next; }
add
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_GNR_std_errs_to_model(MODEL *pmod, const int *list) { int err; if (pmod->errcode == 44) err = add_partial_std_errs_to_model(pmod, list); else err = add_full_std_errs_to_model(pmod); pmod->errcode = err; return err; }
static int add_GNR_std_errs_to_model(MODEL *pmod, const int *list) { int err; if (pmod->errcode == E_JACOBIAN) { pmod->errcode = err = add_partial_std_errs_to_model(pmod, list); } else { pmod->errcode = err = add_full_std_errs_to_model(pmod); } return err; }
add_GNR_std_errs_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_allocated_ufunc(ufunc *fun) { int nf; ufunc **myfuns; nf = n_ufuns; myfuns = (ufunc **)realloc(ufuns, 8LL * (n_ufuns + 1)); if (!myfuns) return 12; ufuns = myfuns; myfuns[nf] = fun; ++n_ufuns; return 0; }
static int add_allocated_ufunc(ufunc *fun) { int nf = n_ufuns; ufunc **myfuns; myfuns = realloc(ufuns, (nf + 1) * sizeof *myfuns); if (myfuns == NULL) { return E_ALLOC; } ufuns = myfuns; ufuns[nf] = fun; n_ufuns++; #if PKG_DEBUG fprintf(stderr, "add_allocated_ufunc: name '%s', n_ufuns = %d\n",...
add_allocated_ufunc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_aux_list_to_sys(equation_system *sys, const char *line, DATASET *dset, int which) { size_t v5; int err; int *list; unsigned long v10; v10 = __readfsqword(0x28u); err = 0; if (which) { if (which != 1) return 2; if (sys->ilist) { gretl_errmsg_set("Only on...
static int add_aux_list_to_sys(equation_system *sys, const char *line, DATASET *dset, int which) { int *list; int err = 0; if (which == ENDOG_LIST) { if (sys->ylist != NULL) { gretl_errmsg_set("Only one list of endogenous variables may be given"); return 1; } ...
add_aux_list_to_sys
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_auxiliary_scalar(const char *name, double val) { double *px; px = (double *)malloc(8u); if (!px) return 12; *px = val; return real_user_var_add(name, GRETL_TYPE_DOUBLE, px, OPT_NONE); }
int add_auxiliary_scalar(const char *name, double val) { double *px = malloc(sizeof *px); int err; if (px == NULL) { err = E_ALLOC; } else { *px = val; err = real_user_var_add(name, GRETL_TYPE_DOUBLE, px, OPT_NONE); } return err; }
add_auxiliary_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_coeffs_to_model(MODEL *pmod, double *coeff) { int i; for (i = 0; i < pmod->ncoeff; ++i) pmod->coeff[i] = coeff[i]; }
static void add_coeffs_to_model(MODEL *pmod, double *coeff) { int i; for (i = 0; i < pmod->ncoeff; i++) { pmod->coeff[i] = coeff[i]; } }
add_coeffs_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_daily_date_strings(char *selected, const DATASET *dset, DATASET *subset) { int v3; int t; int i; int err; i = 0; err = dataset_allocate_obs_markers(subset); if (!err) { subset->markers = 2; for (t = 0; t < dset->n; ++t) { if (selected[t]) { v3 = i+...
static int add_daily_date_strings(char *selected, const DATASET *dset, DATASET *subset) { int err, t, i = 0; err = dataset_allocate_obs_markers(subset); if (!err) { subset->markers = DAILY_DATE_STRINGS; for (t = 0; t < dset->n; t++) { if (selected[t]) { nt...
add_daily_date_strings
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_dataset_colnames(gretl_matrix *M, const int *list, const DATASET *dset) { int v3; int i; int nv; char **S; if (list) nv = *list; else nv = dset->v - 1; if (nv == M->cols) { S = strings_array_new(nv); if (S) { for (i = 1; i <= nv; ++i) { if ...
static void add_dataset_colnames(gretl_matrix *M, const int *list, const DATASET *dset) { int i, vi, nv; char **S = NULL; int err = 0; if (list != NULL) { nv = list[0]; } else { nv = dset->v - 1; } if (nv != M->cols) { return; } S = strings_array_new(n...
add_dataset_colnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_dataset_to_model(MODEL *pmod, const DATASET *dset, gretlopt opt) { DATASET *auxiliary_dataset; char opta; int maxv; int sn; int t; DATASET *srcset; char *mask; opta = opt; mask = 0; sn = 0; if (gretl_is_between_model(pmod)) { if (pmod->dataset) return 0; else return 2;...
int add_dataset_to_model(MODEL *pmod, const DATASET *dset, gretlopt opt) { const DATASET *srcset; char *mask = NULL; int maxv, sn = 0; if (gretl_is_between_model(pmod)) { if (pmod->dataset != NULL) { return 0; } else { return E_DATA; } } if (pmod->dataset != NULL) { destroy_d...
add_dataset_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_diffvars_to_test(ModelTest *test, const int *list, const DATASET *dset) { int i; int ia; int len; int err; char *vnames; len = 0; err = 0; for (i = 1; i <= *list; ++i) len += strlen(dset->varname[list[i]]) + 1; vnames = (char *)malloc(len); if (!vnames) retu...
static int add_diffvars_to_test(ModelTest *test, const int *list, const DATASET *dset) { char *vnames; int i, len = 0; int err = 0; for (i = 1; i <= list[0]; i++) { len += strlen(dset->varname[list[i]]) + 1; } vnames = malloc(len); if (vnames == NULL) { err = 1; ...
add_diffvars_to_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_empty_list(fncall *call, fn_param *fp, DATASET *dset) { int err; int tmp[1]; unsigned long v6; v6 = __readfsqword(0x28u); err = 0; if (!dset || !dset->n) return 42; tmp[0] = 0; copy_list_as_arg(fp->name, tmp, &err); return err; }
static int add_empty_list(fncall *call, fn_param *fp, DATASET *dset) { int err = 0; if (dset == NULL || dset->n == 0) { err = E_NODATA; } else { int tmp[] = {0}; copy_list_as_arg(fp->name, tmp, &err); } return err; }
add_empty_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_equations_from_lists(equation_system *sys, const int *LY, const int *LX, gretl_array *AX_0, const DATASET *dset) { int **lists; int v7; int **v8; int v9; int err; int nx; int n; int i; int j; int g; int nx_0; int *list; int *list_0; int *l0; int **L; ...
static int add_equations_from_lists(equation_system *sys, const int *LY, const int *LX, gretl_array *AX, const DATASET *dset) { int nx, n = sys->neqns; int g = LY[0]; int i, j, err = 0; if (AX != NULL && gretl_array_get_length(AX) != g) { ...
add_equations_from_lists
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_equations_from_matrix(equation_system *sys, const gretl_matrix *m, const DATASET *dset) { int **lists; int v5; int err; int n; int i; int **L; int *list; unsigned long v12; v12 = __readfsqword(0x28u); n = sys->neqns; err = 0; L = (int **)realloc(sys->lists,...
static int add_equations_from_matrix(equation_system *sys, const gretl_matrix *m, const DATASET *dset) { int *list, **L; int n = sys->neqns; int i, err = 0; L = realloc(sys->lists, (n + m->rows) * sizeof *sys->lists); if (L == NULL) { ...
add_equations_from_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_fcast_to_dataset(FITRESID *fr, const char *vname, DATASET *dset, PRN *prn) { char *v4; char *v5; int err; int t; int oldv; int v; oldv = dset->v; err = 0; v = series_index(dset, vname); if (v == dset->v) { if (check_varname(vname)) { err = 2; } else { ...
static int add_fcast_to_dataset(FITRESID *fr, const char *vname, DATASET *dset, PRN *prn) { int oldv = dset->v; int v, err = 0; v = series_index(dset, vname); if (v == dset->v) { if (check_varname(vname)) { err = E_DATA; } else { err = dataset_add_series(ds...
add_fcast_to_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_fcstats_rownames(gretl_matrix *m, gretlopt opt) { int i; int ns; char **rownames; const char *S[9]; unsigned long v6; v6 = __readfsqword(0x28u); S[0] = "ME"; S[1] = "RMSE"; S[2] = "MAE"; S[3] = "MPE"; S[4] = "MAPE"; S[5] = "U1"; S[6] = "UM"; S[7] = "UR"; S[8] = "UD"; ns = m->ro...
static void add_fcstats_rownames(gretl_matrix *m, gretlopt opt) { const char *S[] = {"ME", "RMSE", "MAE", "MPE", "MAPE", "U1", "UM", "UR", "UD"}; int i, ns = m->rows; char **rownames = strings_array_new(ns); if (rownames != NULL) { for (i = 0; i < ns; i++) { if (i == 5 && (opt...
add_fcstats_rownames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_fit_resid_to_nls_model(MODEL *pmod, nlspec *spec, int perfect) { double *v4; int s; int t; int T; int yno; DATASET *dset; double *tmp; double *tmpa; dset = spec->dset; T = dset->n; yno = spec->dv; tmp = (double *)realloc(pmod->uhat, 8LL * T); if (!tmp) return 12; pmod->uhat = tm...
static int add_fit_resid_to_nls_model(MODEL *pmod, nlspec *spec, int perfect) { DATASET *dset = spec->dset; int T = dset->n; int yno = spec->dv; double *tmp; int s, t; int err = 0; tmp = realloc(pmod->uhat, T * sizeof *tmp); if (tmp == NULL) { return E_ALLOC; } else { pmod->uhat = tmp; } ...
add_fit_resid_to_nls_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_full_std_errs_to_model(MODEL *pmod) { double *v2; int i; int err; int k; double tstat_max; double abst; tstat_max = 0.0; if (!pmod->vcv) { err = makevcv(pmod, pmod->sigma); if (err) return err; } for (i = 0; i < pmod->ncoeff; ++i) { k = ijton(i, i, pmod->ncoeff); if (p...
static int add_full_std_errs_to_model(MODEL *pmod) { double abst, tstat_max = 0; int i, k, err = 0; if (pmod->vcv == NULL) { err = makevcv(pmod, pmod->sigma); if (err) { return err; } } for (i = 0; i < pmod->ncoeff; i++) { k = ijton(i, i, pmod->ncoeff); if (pmod->vcv[k] < 0.0) { ...
add_full_std_errs_to_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_gretl_include(int lang, gretlopt opt, FILE *fp) { const gchar *ddir; ddir = get_export_dotdir(); switch (lang) { case 5: fwrite("from gretl_io import gretl_dotdir, gretl_loadmat, gretl_export\n", 1u, 0x3Fu, fp); break; case 2: if (strchr(ddir, 32)) fprintf(fp, "#include ...
static void add_gretl_include(int lang, gretlopt opt, FILE *fp) { const char *ddir = get_export_dotdir(); if (lang == LANG_PYTHON) { fputs("from gretl_io import gretl_dotdir, gretl_loadmat, " "gretl_export\n", fp); return; } #ifdef G_OS_WIN32 if (lang == LANG_STATA) { fprintf(...
add_gretl_include
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_gross_midas_coeffs(MODEL *pmod, midas_info *mi) { double *v2; int v3; int v4; int v5; double v6; int v7; double *val; int v9; int v10; int err; int j; int k; int nt; int row; int p; int i; gretl_matrix *C; gretl_matrix *theta; const double *b; gretl_matrix *hfb; midas_t...
static int add_gross_midas_coeffs(MODEL *pmod, midas_info *mi) { const double *b = pmod->coeff + mi->nx; gretl_matrix *hfb, *C = NULL; int j, k = 0, nt = 0; int row = 0; int err = 0; for (j = 0; j < mi->nmidas; j++) { nt += mi->mterms[j].nlags; } hfb = gretl_column_vector_alloc(nt); if (hfb == N...
add_gross_midas_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_identity_to_sys(equation_system *sys, const char *line, DATASET *dset) { int err; int ni; identity *ident; identity **pident; unsigned long v8; v8 = __readfsqword(0x28u); ni = sys->nidents; err = 0; ident = parse_identity(line, dset, &err); if (!ident) return err; pident = (identity *...
static int add_identity_to_sys(equation_system *sys, const char *line, DATASET *dset) { identity **pident; identity *ident; int ni = sys->nidents; int err = 0; ident = parse_identity(line, dset, &err); if (ident == NULL) return err; pident = realloc(sys->idents, (ni + ...
add_identity_to_sys
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_ldvinfo(boot *b, int n) { ldvinfo *ldv; ldv = (ldvinfo *)malloc(0x18u); if (!ldv) return 12; ldv->xcol = (int *)malloc(4LL * n); ldv->lag = (int *)malloc(4LL * n); if (ldv->xcol && ldv->lag) { ldv->n = n; b->ldv = ldv; return 0; } else { free_ldvinfo(ldv); return 12; } }
static int add_ldvinfo(boot *b, int n) { ldvinfo *ldv; ldv = malloc(sizeof *ldv); if (ldv == NULL) { return E_ALLOC; } ldv->xcol = malloc(n * sizeof *ldv->xcol); ldv->lag = malloc(n * sizeof *ldv->lag); if (ldv->xcol == NULL || ldv->lag == NULL) { free_ldvinfo(ldv); return E_ALLOC; } l...
add_ldvinfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_leverage_values_to_dataset(DATASET *dset, gretl_matrix *m, gretlopt opt, int flags) { int rows; int v6; int v7; char flagsa; int addvars; int t; int j; int t_0; int j_0; int t_1; int j_1; int overwrite; int t1; int t2; int v; int v_0; int v_1;...
int add_leverage_values_to_dataset(DATASET *dset, gretl_matrix *m, gretlopt opt, int flags) { int overwrite = (opt & OPT_O); int t1, t2; int addvars = 0; if (flags & SAVE_LEVERAGE) addvars++; if (flags & SAVE_INFLUENCE) addvars++; if (flags & SAVE_DFFITS) addv...
add_leverage_values_to_dataset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_loop_genr(LOOPSET *loop, int lno, CMD *cmd, DATASET *dset, PRN *prn) { loop_command *v5; int err; gretlopt gopt; GretlType gtype; const char *line; unsigned long v11; v11 = __readfsqword(0x28u); gtype = cmd->gtype; line = cmd->vstart; gopt = OPT_NONE; err = 0; if ((cmd->opt & 0x4000) !=...
static int add_loop_genr(LOOPSET *loop, int lno, CMD *cmd, DATASET *dset, PRN *prn) { GretlType gtype = cmd->gtype; const char *line = cmd->vstart; gretlopt gopt = OPT_NONE; int err = 0; if (cmd->opt & OPT_O) { gopt |= OPT_O; } loop->cmds[lno].genr = genr_compile(line, dset,...
add_loop_genr
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_midas_matrices(midas_info *mi, const DATASET *dset) { _BOOL4 v3; double v4; int err; int init_err; int i; int use_c; gretl_matrix *X; gretl_matrix *b; gretl_matrix *y; gretl_matrix *c; double bzi; char tmp[24]; unsigned long v15; v15 = __readfsqword(0x28u); X = 0; b = 0; y = 0...
static int add_midas_matrices(midas_info *mi, const DATASET *dset) { gretl_matrix *X = NULL; gretl_matrix *b = NULL; gretl_matrix *y = NULL; gretl_matrix *c = NULL; int init_err = 0; int err = 0; if (mi->nx > 0) { X = gretl_matrix_data_subset(mi->xlist, dset, dset->t1, dset->t2, ...
add_midas_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_more_loop_commands(LOOPSET *loop) { int v1; int totcmds; loop_command *cmds; v1 = loop->n_cmds + 1; if (v1 < 0) v1 = loop->n_cmds + 32; totcmds = 32 * ((v1 >> 5) + 1); cmds = (loop_command *)realloc(loop->cmds, 32LL * totcmds); if (!cmds) return 12; loop->cmds = cmds; loop_cmds_init...
static int add_more_loop_commands(LOOPSET *loop) { int nb = 1 + (loop->n_cmds + 1) / LOOP_BLOCK; int totcmds = nb * LOOP_BLOCK; loop_command *cmds; cmds = realloc(loop->cmds, totcmds * sizeof *cmds); if (cmds == NULL) { return E_ALLOC; } loop->cmds = cmds; loop_cmds_init(loop, loop->n_cmds, totcm...
add_more_loop_commands
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_new_cols_to_Z(nlspec *s, const gretl_matrix *M, int oldecols) { int k; int j; int n; int err; int oldZcols; gretl_matrix *Z; char *mask; unsigned long v12; v12 = __readfsqword(0x28u); Z = s->oc->Z; oldZcols = Z->cols; err = 0; if (Z->rows != M->rows) return 36; n = Z->cols + M->...
static int add_new_cols_to_Z(nlspec *s, const gretl_matrix *M, int oldecols) { gretl_matrix *Z = s->oc->Z; int oldZcols = Z->cols; char *mask; int j, k, n; int err = 0; if (Z->rows != M->rows) { return E_NONCONF; } n = Z->cols + M->cols; #if GMM_DEBUG fprintf(stderr, "add_new_cols_to_Z: old Z c...
add_new_cols_to_Z
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_new_vars_to_full(DATASET *dset) { double **v2; int v3; double v4; int i; int ia; int t; int s; int err; int V1; long V0; double **newZ; V1 = dset->v; V0 = *(_QWORD *)&fullset->v; err = 0; if (dset->v <= fullset->v) return 0; if (!dset->submask) return 31; newZ = (doubl...
static int add_new_vars_to_full(DATASET *dset) { int V1 = dset->v; int V0 = fullset->v; int N = fullset->n; double **newZ = NULL; int i, t, s; int err = 0; if (V1 <= V0) { return 0; } if (dset->submask == NULL) { return E_NOMERGE; } #if SUBDEBUG fprintf(stderr, "add_new_vars_to_full:\n"...
add_new_vars_to_full
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_nls_coeffs(MODEL *pmod, nlspec *spec) { pmod->ncoeff = spec->ncoeff; pmod->full_n = 0; pmod->errcode = gretl_model_allocate_storage(pmod); if (!pmod->errcode) add_coeffs_to_model(pmod, spec->coeff); return pmod->errcode; }
static int add_nls_coeffs(MODEL *pmod, nlspec *spec) { pmod->ncoeff = spec->ncoeff; pmod->full_n = 0; pmod->errcode = gretl_model_allocate_storage(pmod); if (!pmod->errcode) { add_coeffs_to_model(pmod, spec->coeff); } return pmod->errcode; }
add_nls_coeffs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_obs(int n, DATASET *dset, gretlopt opt, PRN *prn) { char *v4; char *v5; char *v6; int err; if (complex_subsampled()) { v4 = gettext("The data set is currently sub-sampled.\n"); pprintf(prn, v4); return 2; } else if (n > 0) { if ((opt & 0x80000) != 0) { err = panel_dataset_exte...
static int add_obs(int n, DATASET *dset, gretlopt opt, PRN *prn) { int err = 0; if (complex_subsampled()) { pprintf(prn, _("The data set is currently sub-sampled.\n")); err = E_DATA; } else if (n <= 0) { err = E_PARSE; } else if (opt & OPT_T) { err = panel_dataset_extend_time(dset, n); if ...
add_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_obs_marker(DATASET *dset, int n) { char **v2; int err; char **S; S = (char **)realloc(dset->S, 8LL * n); err = 0; if (!S) return 12; dset->S = S; v2 = &dset->S[n - 1]; *v2 = (char *)malloc(0x10u); if (!dset->S[n - 1]) return 12; strcpy(dset->S[n - 1], "NA"); return err; }
static int add_obs_marker(DATASET *dset, int n) { char **S = realloc(dset->S, n * sizeof *S); int err = 0; if (S == NULL) { err = E_ALLOC; } else { dset->S = S; dset->S[n - 1] = malloc(OBSLEN); if (dset->S[n - 1] == NULL) { err = E_ALLOC; } else { strcpy(dset->S[n - 1], "NA"); ...
add_obs_marker
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_obs_markers_from_file(DATASET *dset, const char *fname) { long v3; long v4; int done; int t; int err; int t_0; int i; int T; char **S; FILE *fp; char marker[32]; char line[136]; unsigned long v15; v15 = __readfsqword(0x28u); done = 0; err = 0; fp = gretl_fopen(fname, "r"); i...
int add_obs_markers_from_file(DATASET *dset, const char *fname) { char **S = NULL; FILE *fp; char line[128], marker[32]; int done = 0; int t, err = 0; fp = gretl_fopen(fname, "r"); if (fp == NULL) { return E_FOPEN; } S = strings_array_new_with_length(dset->n, OBSLEN); if (S == NULL) { fclo...
add_obs_markers_from_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_oc_cols(nlspec *s, int current_cols, int add_cols) { int err; int j; colsrc *cols; err = 0; cols = (colsrc *)realloc(s->oc->ecols, 40LL * (current_cols + add_cols)); if (!cols) return 12; for (j = 0; j < add_cols; ++j) { cols[current_cols + j].v = 0; cols[current_cols + j].j = j; ...
static int add_oc_cols(nlspec *s, int current_cols, int add_cols) { colsrc *cols; int err = 0; cols = realloc(s->oc->ecols, (current_cols + add_cols) * sizeof *cols); if (cols == NULL) { err = E_ALLOC; } else { int j, k; for (j = 0; j < add_cols; j++) { k = current_cols + j; cols[k]...
add_oc_cols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_old_vecm_restriction(gretl_restriction *rset, char letter) { int err; GRETL_VAR *vecm; const gretl_matrix *Ra; const gretl_matrix *qa; const gretl_matrix *R; const gretl_matrix *q; vecm = (GRETL_VAR *)rset->obj; err = 0; if (letter == 98) { R = gretl_VECM_R_matrix(vecm); q = gretl_VEC...
static int add_old_vecm_restriction(gretl_restriction *rset, char letter) { GRETL_VAR *vecm = rset->obj; int err = 0; if (letter == 'b') { const gretl_matrix *R = gretl_VECM_R_matrix(vecm); const gretl_matrix *q = gretl_VECM_q_matrix(vecm); rset->R = gretl_matrix_copy(R); if (rset->R == NULL) { ...
add_old_vecm_restriction
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void add_omit_attach(COMPARE *cmp, MODEL *pmod, const DATASET *dset) { ModelTestType v3; ModelTest *mtest; if (cmp->ci == 89) v3 = GRETL_TEST_OMIT; else v3 = GRETL_TEST_ADD; mtest = model_test_new(v3); if (mtest) { model_test_set_teststat(mtest, cmp->stat); model_test_set_dfn(mtest, cmp->df...
static void add_omit_attach(struct COMPARE *cmp, MODEL *pmod, const DATASET *dset) { int tcode = (cmp->ci == OMIT) ? GRETL_TEST_OMIT : GRETL_TEST_ADD; ModelTest *mtest = model_test_new(tcode); if (mtest != NULL) { model_test_set_teststat(mtest, cmp->stat); model_test_set_dfn(m...
add_omit_attach
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int add_omit_save(CMD *cmd, MODEL *pmod) { int ret; ret = 1; if (cmd->ci == 1) return (cmd->opt & 0x800) == 0; if (cmd->ci == 89) { if ((cmd->opt & 0x400000) != 0) { return 0; } else if ((cmd->opt & 1) == 0 && cmd->list && pmod->list) { return *cmd->list != *pmod->list - 1; } } ...
static int add_omit_save(CMD *cmd, MODEL *pmod) { int ret = 1; if (cmd->ci == ADD) { if (cmd->opt & OPT_L) { ret = 0; } } else if (cmd->ci == OMIT) { if (cmd->opt & OPT_W) { ret = 0; } else if (!(cmd->opt & OPT_A)) { if (cmd->list != NULL && pmod->list != NULL && cm...
add_omit_save
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0