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
xtimer *get_xtimer() { guint i; int lev; lev = gretl_function_depth(); if (xtimers) { for (i = 0; xtimers->len > i; ++i) { if (lev == *(_DWORD *)xtimers->pdata[i]) return (xtimer *)xtimers->pdata[i]; } return new_xtimer(lev); } else { xtimers = (GPtrArray *)g_ptr_array_sized_new...
static struct xtimer *get_xtimer(void) { struct xtimer *xt; int i, lev = gretl_function_depth(); if (xtimers == NULL) { xtimers = g_ptr_array_sized_new(1); return new_xtimer(lev); } for (i = 0; i < xtimers->len; i++) { xt = g_ptr_array_index(xtimers, i); if (xt->level == lev) { return ...
get_xtimer
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *getline_node(NODE *l, NODE *r, parser *p) { char *buf; NODE *rs; NODE *ret; size_t len; ret = get_aux_node(p, 54, 0, 0); if (ret && (p->flags & 2) != 0) { buf = 0; rs = 0; if (l->vname) { buf = l->v.str; if (!r || r->t == 85) { bufgets_finalize(buf); ret->v.str...
static NODE *getline_node(NODE *l, NODE *r, parser *p) { NODE *ret = aux_scalar_node(p); if (ret != NULL && starting(p)) { const char *buf = NULL; NODE *rs = NULL; if (l->vname == NULL) { gretl_errmsg_set("getline: the source must be a named string variable"); p->err = E_INVARG; } else...
getline_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int getoct(char *p, int width) { char *v2; char c; int result; result = 0; while (width--) { v2 = p++; c = *v2; if (*v2 != 32) { if (!c) return result; result = 8 * result + c - 48; } } return result; }
static int getoct(char *p, int width) { int result = 0; char c; while (width--) { c = *p++; if (c == ' ') continue; if (c == 0) break; result = result * 8 + (c - '0'); } return result; }
getoct
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *getsymb(int t) { return getsymb_full(t, 0); }
const char *getsymb(int t) { return getsymb_full(t, NULL); }
getsymb
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *getsymb_full(int t, const parser *p) { const char *result; if (t > 256 && t <= 411 || t > 412 && t <= 523 || t > 524 && t <= 628) return funname(t); switch (t) { case 'b': return (const char *)&unk_32C674; case 'D': return (const char *)&unk_32C678; case 'E': return (const char ...
const char *getsymb_full(int t, const parser *p) { if ((t > F1_MIN && t < F1_MAX) || (t > F1_MAX && t < F2_MAX) || (t > F2_MAX && t < FN_MAX)) { return funname(t); } if (t == EOT) { return "EOT"; } if (t == OBS) { return "OBS"; } else if (t == MSL) { return "MSL"; } else if (t == O...
getsymb_full
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gettrend(DATASET *dset, int square) { const char *v2; double v4; char *v5; int t; int v; int idx; v = dset->v; if (square) v2 = "timesq"; else v2 = "time"; idx = series_index(dset, v2); if (idx < v) return idx; if (dataset_add_series(dset, 1)) return 0; for (t = 0; t < dse...
static int gettrend(DATASET *dset, int square) { int idx, t, v = dset->v; double x; idx = series_index(dset, (square) ? "timesq" : "time"); if (idx < v) { return idx; } if (dataset_add_series(dset, 1)) { return 0; } for (t = 0; t < dset->n; t++) { x = (double)t + 1; dset->Z[v][t] = (...
gettrend
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void getword(parser *p, int greek) { int v2; int flags; int i; char word[40]; unsigned long v6; v6 = __readfsqword(0x28u); i = 0; if (greek) { for (i = 0; i <= 1; ++i) { word[i] = p->ch; parser_getc(p); } } else { do { v2 = i++; word[v2] = p->ch; parser_getc(...
static void getword(parser *p, int greek) { char word[32]; int i = 0; if (greek) { for (i = 0; i < 2; i++) { word[i] = p->ch; parser_getc(p); } } else { word[i++] = p->ch; parser_getc(p); #ifdef USE_RLIB if (*word == 'R' && p->ch == '.' && *p->point != '$') { if (libse...
getword
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gfn_file_get_version(const char *fname) { int found; xmlDocPtr doc; xmlNodePtr node; double version; xmlNodePtr sub; unsigned long v7; v7 = __readfsqword(0x28u); doc = 0; version = NAN; if (!gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node)) { found = 0; for (node = node...
double gfn_file_get_version(const char *fname) { xmlDocPtr doc = NULL; xmlNodePtr node; double version = NADBL; int err; err = gretl_xml_open_doc_root(fname, "gretl-functions", &doc, &node); if (!err) { xmlNodePtr sub; int found = 0; node = node->xmlChildrenNode; while (node != NULL && !f...
gfn_file_get_version
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gfn_is_loaded(const char *gfnname) { _BOOL4 ret; gchar *test; ret = 0; if (!strchr(gfnname, 47) && has_suffix(gfnname, ".gfn")) { test = (gchar *)g_strdup(gfnname); *strrchr(test, 46) = 0; ret = get_function_package_by_name(test) != 0; g_free(test); } return ret; }
int gfn_is_loaded(const char *gfnname) { int ret = 0; if (strchr(gfnname, SLASH) == NULL && has_suffix(gfnname, ".gfn")) { gchar *test = g_strdup(gfnname); gchar *p = strrchr(test, '.'); *p = '\0'; if (get_function_package_by_name(test)) { ret = 1; } g_free(test); } return ret;...
gfn_is_loaded
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gfn_version_fail(const char *fname, PRN *prn) { char *v2; int err; FILE *fp; char line[136]; unsigned long v7; v7 = __readfsqword(0x28u); fp = gretl_fopen(fname, "r"); err = 0; if (fp) { if (fgets(line, 128, fp) && !strchr(line, 60) && strstr(line, "requires gretl")) { v2 = gret...
static int gfn_version_fail(const char *fname, PRN *prn) { FILE *fp = gretl_fopen(fname, "r"); int err = 0; if (fp != NULL) { char line[128]; if (fgets(line, sizeof line, fp) && strchr(line, '<') == NULL && strstr(line, "requires gretl") != NULL) { gretl_errmsg_set(gretl_strstrip(line)); ...
gfn_version_fail
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix_block *ghk_block_alloc(int m, int npar) { gretl_matrix *M[8]; unsigned long v4; v4 = __readfsqword(0x28u); memset(M, 0, sizeof(M)); return gretl_matrix_block_new( M, 1, (unsigned int)npar, &M[1], 1, (unsigned int)npar, &M[2], 1, (unsigned int)npar, &M[3], 1, (unsigned int)npar, &M[4]...
static gretl_matrix_block *ghk_block_alloc(int m, int npar) { gretl_matrix_block *B = NULL; gretl_matrix *M[8] = {NULL}; B = gretl_matrix_block_new(&M[0], 1, npar, &M[1], 1, npar, &M[2], 1, npar, &M[3], 1, npar, &M[4], 1, npar, &M[5], 1, m, &M[6], m, 1, &...
ghk_block_alloc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ghk_input_check(const gretl_matrix *C, const gretl_matrix *A, const gretl_matrix *B, const gretl_matrix *U, const gretl_matrix *dP) { if (!C || !C->rows || !C->cols || !A || !A->rows || !A->cols || !B || !B->rows || !B->cols || !U || !U->rows || !U->cols) { return...
static int ghk_input_check(const gretl_matrix *C, const gretl_matrix *A, const gretl_matrix *B, const gretl_matrix *U, const gretl_matrix *dP) { if (gretl_is_null_matrix(C) || gretl_is_null_matrix(A) || gretl_is_null_matrix(B) || gretl_is_null_matrix(U)) { ...
ghk_input_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double ghk_tj(const gretl_matrix *C, const gretl_matrix *a, const gretl_matrix *b, const double *u, gretl_matrix *dWT, gretl_matrix_block *Bk, double huge, int *err) { double v8; double v9; double *val; double v11; int v12; long v13; double v14; double *v15; int inicol; i...
static double ghk_tj(const gretl_matrix *C, const gretl_matrix *a, const gretl_matrix *b, const double *u, gretl_matrix *dWT, gretl_matrix_block *Bk, double huge, int *err) { double phi_min = 1.0e-300; gretl_matrix *dTA = NULL; gretl_matrix *dTB = NULL; gretl_matrix *dm...
ghk_tj
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gini(int varno, DATASET *dset, gretlopt opt, PRN *prn) { unsigned int v5; char *v6; char *v7; char *v8; double v9; char *v10; int n; int err; int fulln; double *lz; double v16; unsigned long v17; v17 = __readfsqword(0x28u); lz = 0; err = 0; v16 = gini_coeff(dset->Z[varno], dset->t1,...
int gini(int varno, DATASET *dset, gretlopt opt, PRN *prn) { double *lz = NULL; double gini; int n, fulln; int err = 0; gini = gini_coeff(dset->Z[varno], dset->t1, dset->t2, &lz, &n, &err); if (err) { return err; } fulln = dset->t2 - dset->t1 - 1; pprintf(prn, "%s\n", dset->varname[varno], n); ...
gini
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gini_coeff(const double *x, int t1, int t2, double **plz, int *pn, int *err) { char *v7; int v8; int t; int ta; int n; int m; double csx; double sumx; double sisx; double *sx; m = t2 - t1 + 1; csx = 0.0; sumx = 0.0; sisx = 0.0; gretl_error_clear(); sx = (double ...
static double gini_coeff(const double *x, int t1, int t2, double **plz, int *pn, int *err) { int m = t2 - t1 + 1; double *sx = NULL; double csx = 0.0, sumx = 0.0, sisx = 0.0; double G; int t, n = 0; gretl_error_clear(); sx = malloc(m * sizeof *sx); if (sx == NULL) { *err ...
gini_coeff
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gchar *glib_recode_buffer(const char *buf, const char *from_set, const char *to_set, gsize bytes, gsize *written, int *err) { GError *gerr; gsize got; gchar *trbuf; unsigned long v11; v11 = __readfsqword(0x28u); trbuf = 0; gerr = 0; got = 0; trbuf =...
static gchar *glib_recode_buffer(const char *buf, const char *from_set, const char *to_set, gsize bytes, gsize *written, int *err) { gchar *trbuf = NULL; GError *gerr = NULL; gsize got = 0; trbuf = g_convert(buf, bytes, to_set, from_set, &got, w...
glib_recode_buffer
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int glyph_count(const char *str) { int i; int ng; glong nu; gunichar *u; unsigned long v6; v6 = __readfsqword(0x28u); ng = 0; u = (gunichar *)g_utf8_to_ucs4_fast(str, -1, &nu); for (i = 0; i < nu; ++i) { if ((unsigned int)g_unichar_iswide(u[i])) { ng += 2; } else if (u[i]) { ++ng;...
static int glyph_count(const char *str) { gunichar *u; glong nu; int i, ng = 0; u = g_utf8_to_ucs4_fast(str, -1, &nu); for (i = 0; i < nu; i++) { if (g_unichar_iswide(u[i])) { ng += 2; } else if (u[i] > 0) { ng++; } } g_free(u); return ng; }
glyph_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_HAC(gretl_matrix *E, gretl_matrix *V, hac_info *hinfo) { double v4; int i; int ia; int err; int j; int T; int k; double w; double aij; err = 0; if (!E) { gretl_matrix_free(W_4); gretl_matrix_free(Tmp_3); gretl_matrix_free(A_2); gretl_matrix_free(E2_1); E2_1 = 0; A_...
static int gmm_HAC(gretl_matrix *E, gretl_matrix *V, hac_info *hinfo) { static gretl_matrix *W; static gretl_matrix *Tmp; static gretl_matrix *A; static gretl_matrix *E2; int T, k; double w; int i, err = 0; if (E == NULL) { gretl_matrix_free(W); gretl_matrix_free(Tmp); gretl_matrix_free(A)...
gmm_HAC
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gmm_HAC_cleanup() { gmm_HAC(0, 0, 0); }
static void gmm_HAC_cleanup(void) { gmm_HAC(NULL, NULL, NULL); }
gmm_HAC_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_add_vcv(MODEL *pmod, nlspec *s) { int cols; gretlopt opt; int iflag; int i; int j; int err; int k; int T; int m; int n; int l; gretl_matrix *V; gretl_matrix *J; gretl_matrix *S; gretl_matrix *m1; gretl_matrix *m2; gretl_matrix *m3; double *wa4; gretl_matrix_block *B; doub...
int gmm_add_vcv(MODEL *pmod, nlspec *s) { gretl_matrix_block *B; gretl_matrix *V, *J, *S; gretl_matrix *m1, *m2, *m3; int i, j, k = s->ncoeff; int T = s->nobs; double *wa4; int m, n; int iflag = 0; double *f; int err = 0; m = gretl_matrix_cols(s->oc->tmp); n = s->ncoeff; wa4 = malloc(m * siz...
gmm_add_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_add_workspace(nlspec *s) { ocset *oc; ocset *v2; int err; int k; k = s->oc->noc; err = 0; oc = s->oc; oc->tmp = gretl_matrix_alloc(s->nobs, k); v2 = s->oc; v2->sum = gretl_matrix_alloc(k, 1); if (!s->oc->tmp || !s->oc->sum) return 12; return err; }
static int gmm_add_workspace(nlspec *s) { int k = s->oc->noc; int err = 0; s->oc->tmp = gretl_matrix_alloc(s->nobs, k); s->oc->sum = gretl_column_vector_alloc(k); if (s->oc->tmp == NULL || s->oc->sum == NULL) { err = E_ALLOC; } return err; }
gmm_add_workspace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_calculate(nlspec *s, PRN *prn) { int full_fncount; int full_grcount; gretlopt iopt; int outer_iters; int outer_max; int converged; int err; double *oldcoeff; double icrit; full_fncount = 0; full_grcount = 0; oldcoeff = 0; iopt = s->opt; outer_iters = 0; outer_max = 1; converged ...
int gmm_calculate(nlspec *s, PRN *prn) { static int normalize = 0; int full_fncount = 0; int full_grcount = 0; double itol = 1.0e-12, icrit = 1; double *oldcoeff = NULL; int maxit = 500; gretlopt iopt = s->opt; int outer_iters = 0; int outer_max = 1; int converged = 0; int err = 0; if (normaliz...
gmm_calculate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gmm_criterion(nlspec *s) { int err; int i; int j; int k; double crit; gretl_matrix *sum; gretl_matrix *W; unsigned long v9; v9 = __readfsqword(0x28u); crit = 0.0; sum = s->oc->sum; W = s->oc->W; k = s->oc->noc; err = gmm_multiply_ocs(s); if (err) return NAN; for (i = 0; i < k...
static double gmm_criterion(nlspec *s) { double crit = 0.0; gretl_matrix *sum = s->oc->sum; gretl_matrix *W = s->oc->W; int k = s->oc->noc; int i, j, err; err = gmm_multiply_ocs(s); if (err) { return NADBL; } for (i = 0; i < k; i++) { sum->val[i] = 0.0; for (j = 0; j < s->nobs; j++) { ...
gmm_criterion
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_fix_datarows(nlspec *s) { int t1; int t2; int err; int et1; int et2; int Zt1; int Zt2; int oldt1; et1 = gretl_matrix_get_t1(s->oc->e); et2 = gretl_matrix_get_t2(s->oc->e); Zt1 = gretl_matrix_get_t1(s->oc->Z); Zt2 = gretl_matrix_get_t2(s->oc->Z); oldt1 = s->t1; err = 0; if (__PAIR6...
static int gmm_fix_datarows(nlspec *s) { int et1 = gretl_matrix_get_t1(s->oc->e); int et2 = gretl_matrix_get_t2(s->oc->e); int Zt1 = gretl_matrix_get_t1(s->oc->Z); int Zt2 = gretl_matrix_get_t2(s->oc->Z); int oldt1 = s->t1; int err = 0; if ((et1 == 0 && et2 == 0) || (Zt1 == 0 && Zt2 == 0)) { return ...
gmm_fix_datarows
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gmm_get_icrit(nlspec *s, double *oldcoeff) { int i; double x; double db; x = 0.0; for (i = 0; i < s->ncoeff; ++i) { db = s->coeff[i] - oldcoeff[i]; x = db * db + x; oldcoeff[i] = s->coeff[i]; } return x; }
static double gmm_get_icrit(nlspec *s, double *oldcoeff) { double db, x = 0.0; int i; for (i = 0; i < s->ncoeff; i++) { db = s->coeff[i] - oldcoeff[i]; x += db * db; oldcoeff[i] = s->coeff[i]; } return x; }
gmm_get_icrit
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_jacobian_calc(int m, int n, double *x, double *f, int *iflag, void *p) { int i; int t; int T; double fac; update_coeff_values(x, (nlspec *)p); if (nl_calculate_fvec((nlspec *)p)) { *iflag = -1; return 1; } else if (gmm_update_e((nlspec *)p)) { *iflag = -1; return 1; } else if (g...
static int gmm_jacobian_calc(int m, int n, double *x, double *f, int *iflag, void *p) { nlspec *s = (nlspec *)p; double fac; int i, t, T; update_coeff_values(x, p); if (nl_calculate_fvec(s)) { *iflag = -1; return 1; } if (gmm_update_e(s)) { *iflag = -1; retu...
gmm_jacobian_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gmm_log_10(double x) { double y; *__errno_location() = 0; y = log(COERCE_DOUBLE(*(_QWORD *)&x & 0x7FFFFFFFFFFFFFFFLL)); if (*__errno_location()) return NAN; else return y / 2.302585092994046; }
static double gmm_log_10(double x) { double y; errno = 0; y = log(fabs(x)); if (errno) { y = NADBL; } else { y /= log(10.0); } return y; }
gmm_log_10
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_matrix_resize(gretl_matrix **pA, nlspec *s, int oldt1) { int j; int t; int offt; int T; int At1; int At2; int m; gretl_matrix *A; gretl_matrix *B; A = *pA; T = s->t2 - s->t1 + 1; At1 = gretl_matrix_get_t1(*pA); At2 = gretl_matrix_get_t2(A); m = A->cols; B = gretl_matrix_alloc(T, m...
static int gmm_matrix_resize(gretl_matrix **pA, nlspec *s, int oldt1) { gretl_matrix *A = *pA; gretl_matrix *B = NULL; int T = s->t2 - s->t1 + 1; int At1 = gretl_matrix_get_t1(A); int At2 = gretl_matrix_get_t2(A); int m = A->cols; double x; int j, t, offt; B = gretl_matrix_alloc(T, m); if (B == NUL...
gmm_matrix_resize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_missval_check_etc(nlspec *s) { int t; int t1; int t2; int i; int ia; int ib; int ic; int id; int ie; int all_ok; int all_oka; int err; int orig_t1; int orig_t2; int et1; int et2; int Zt1; int Zt2; int m; int p; int k; int ka; int kb; orig_t1 = s->t1; orig_t2 = ...
int gmm_missval_check_etc(nlspec *s) { int orig_t1 = s->t1; int orig_t2 = s->t2; int t, t1, t2; int i, m, k, p, all_ok; double x; int err = 0; #if GMM_DEBUG fprintf(stderr, "gmm_missval_check: initial s->t1=%d, s->t2=%d\n", s->t1, s->t2); #endif #if 0 if (!gretl_matrix_is_dated(s->oc...
gmm_missval_check_etc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_multiply_ocs(nlspec *s) { int err; err = gretl_matrix_columnwise_product(s->oc->e, s->oc->Z, s->oc->S, s->oc->tmp); if (err) fprintf(stderr, "gmm_multiply_ocs: err = %d from gretl_matrix_columnwise_product\n", err); return err; }
static int gmm_multiply_ocs(nlspec *s) { int err; err = gretl_matrix_columnwise_product(s->oc->e, s->oc->Z, s->oc->S, s->oc->tmp); if (err) { fprintf(stderr, "gmm_multiply_ocs: err = %d from " "gretl_matrix_columnwise_product\n", err); } #if GMM_DEBUG > 1 gretl_...
gmm_multiply_ocs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_normalize_wts_1(nlspec *s) { double m; double ma; double *coeff; double crit; double lc; coeff = copyvec(s->coeff, s->ncoeff); if (!coeff) return 12; crit = -get_gmm_crit(coeff, s); if (crit > 0.0 && fabs(crit) <= 1.797693134862316e308) { lc = gmm_log_10(crit); if (fabs(lc) <= 1.7...
static int gmm_normalize_wts_1(nlspec *s) { double *coeff; double crit; coeff = copyvec(s->coeff, s->ncoeff); if (coeff == NULL) { return E_ALLOC; } crit = -1 * get_gmm_crit(coeff, s); if (crit > 0 && !na(crit)) { double m, lc = gmm_log_10(crit); #if NORM_DEBUG fprintf(stderr, "maybe_pread...
gmm_normalize_wts_1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_normalize_wts_2(nlspec *s) { int err; int i; int ia; int j; int ja; int k; int n; double sq; double scale; double scalea; double *coeff; double inicrit; gretl_matrix *qvec; double *q; double x; double xa; err = 0; coeff = copyvec(s->coeff, s->ncoeff); if (!coeff) retur...
static int gmm_normalize_wts_2(nlspec *s) { double *coeff; double inicrit; int err = 0; coeff = copyvec(s->coeff, s->ncoeff); if (coeff == NULL) { return E_ALLOC; } inicrit = -1 * get_gmm_crit(coeff, s); if (inicrit > 0 && !na(inicrit)) { int k = s->oc->noc; int n = s->oc->tmp->rows; ...
gmm_normalize_wts_2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gmm_print_oc(nlspec *s, PRN *prn) { char *v2; char *v3; char *v4; char *v5; double v6; int i; int err; int k; int T; gretl_matrix *V; k = s->oc->noc; T = s->nobs; V = gretl_matrix_alloc(k, k); if (V) { if (s->oc->hinfo.kern < 0) err = gretl_matrix_multiply_mod(s->oc...
static void gmm_print_oc(nlspec *s, PRN *prn) { gretl_matrix *V; int i, k = s->oc->noc; int T = s->nobs; int err = 0; V = gretl_matrix_alloc(k, k); if (V == NULL) { pprintf(prn, "gmm_print_oc: allocation failed!\n"); return; } if (using_HAC(s)) { err = gmm_HAC(s->oc->tmp, V, &s->oc->hinfo)...
gmm_print_oc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_recompute_weights(nlspec *s) { int err; gretl_matrix *W; W = s->oc->W; if (s->oc->hinfo.kern < 0) err = gretl_matrix_multiply_mod(s->oc->tmp, GRETL_MOD_TRANSPOSE, s->oc->tmp, GRETL_MOD_NONE, W, GRETL_MOD_NONE); else err = gmm_HAC(s->oc->tmp, W, &s->oc->hinf...
static int gmm_recompute_weights(nlspec *s) { gretl_matrix *W = s->oc->W; int err = 0; if (using_HAC(s)) { err = gmm_HAC(s->oc->tmp, W, &s->oc->hinfo); } else { err = gretl_matrix_multiply_mod(s->oc->tmp, GRETL_MOD_TRANSPOSE, s->oc->tmp, GRETL_MOD_NONE, W, GRETL_MOD_...
gmm_recompute_weights
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gmm_set_HAC_info(nlspec *s) { hac_info *hinfo; hinfo = &s->oc->hinfo; if (s->dset && (s->dset->structure == 1 || s->dset->structure == 5) && !libset_get_bool(FORCE_HC)) { hinfo->whiten = libset_get_bool(PREWHITEN); hinfo->kern = libset_get_int(HAC_KERNEL); if (hinfo->kern == 2) { hin...
static void gmm_set_HAC_info(nlspec *s) { hac_info *hinfo = &s->oc->hinfo; if (dataset_is_time_series(s->dset) && !libset_get_bool(FORCE_HC)) { hinfo->whiten = libset_get_bool(PREWHITEN); hinfo->kern = libset_get_int(HAC_KERNEL); if (hinfo->kern == KERNEL_QS) { hinfo->bt = libset_get_double(QS_BA...
gmm_set_HAC_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_unkvar(const char *s) { char *v1; v1 = gettext("Unknown variable '%s'"); gretl_errmsg_sprintf(v1, s); return 14; }
static int gmm_unkvar(const char *s) { gretl_errmsg_sprintf(_("Unknown variable '%s'"), s); return E_UNKVAR; }
gmm_unkvar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gmm_update_e(nlspec *s) { int j; int t; int ta; int err; int v; gretl_matrix *e; err = 0; for (j = 0; j < s->oc->e->cols && !err; ++j) { v = s->oc->ecols[j].v; if (v <= 0) { e = get_matrix_by_name(s->oc->ecols[j].mname); if (e) { if (e != s->oc->e) { for (ta = ...
static int gmm_update_e(nlspec *s) { gretl_matrix *e; double etj; int j, t, v; int err = 0; for (j = 0; j < s->oc->e->cols && !err; j++) { v = s->oc->ecols[j].v; if (v > 0) { #if GMM_DEBUG > 1 fprintf(stderr, "gmm_update_e: updating col %d from var %d\n", j, v); #endif for (t = 0; t < s-...
gmm_update_e
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot(const int *plotlist, const char *literal, const DATASET *dset, gretlopt opt) { int v5; const char *graph_name; const char *buffer; const char *v8; const char *v9; const char *v10; const char *v11; const char *v12; char *v13; const char *v14; const char *v15; char *v16; ...
int gnuplot(const int *plotlist, const char *literal, const DATASET *dset, gretlopt opt) { PRN *prn = NULL; FILE *fp = NULL; int *list = NULL; char s1[MAXDISP] = {0}; char s2[MAXDISP] = {0}; char xlabel[MAXDISP] = {0}; char withstr[16] = {0}; char lwstr[8] = {0}; char keystr[48] = {0}; g...
gnuplot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_3d(int *list, const char *literal, DATASET *dset, gretlopt *opt) { gretlopt v5; const char *graph_name; const char *v7; const char *v8; int t1; int t2; int err; int t; int interactive; int save_t1; int save_t2; int lo; FILE *fp; const char *term; const char *label; gchar *sur...
int gnuplot_3d(int *list, const char *literal, DATASET *dset, gretlopt *opt) { FILE *fp = NULL; int t, t1 = dset->t1, t2 = dset->t2; int save_t1 = dset->t1, save_t2 = dset->t2; int lo = list[0]; int datlist[4]; int interactive = (*opt & OPT_I); const char *term = NULL; gchar *surface = NULL; int err =...
gnuplot_3d
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gnuplot_cleanup() { int pnum; const char *fname; const char *p; unsigned long v3; v3 = __readfsqword(0x28u); fname = gretl_plotfile(); p = strstr(fname, "gpttmp"); if (p) { if (!(unsigned int)__isoc99_sscanf(p, "gpttmp%d.plt", &pnum)) gretl_remove(fname); } }
void gnuplot_cleanup(void) { const char *p, *fname = gretl_plotfile(); p = strstr(fname, "gpttmp"); if (p != NULL) { int pnum; if (sscanf(p, "gpttmp%d.plt", &pnum) == 0) { gretl_remove(fname); } } }
gnuplot_cleanup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_graph_wanted(PlotType ptype, gretlopt opt) { long ret; const char *optname; optname = 0; if ((opt & 0x100000) != 0) optname = plot_output_option(ptype, 0); if (got_none_option(optname)) { LODWORD(ret) = 0; } else if (optname) { LODWORD(ret) = 1; } else { return gretl_in_batch_...
int gnuplot_graph_wanted(PlotType ptype, gretlopt opt) { const char *optname = NULL; int ret = 0; if (opt & OPT_U) { optname = plot_output_option(ptype, NULL); } if (got_none_option(optname)) { ret = 0; } else if (optname != NULL) { ret = 1; } else { ret = !gretl_in_batch_mode(); }...
gnuplot_graph_wanted
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_has_qt() { if (err_5 == -1) err_5 = gnuplot_test_command("set term qt"); return err_5 == 0; }
static int gnuplot_has_qt(void) { static int err = -1; if (err == -1) { err = gnuplot_test_command("set term qt"); } return !err; }
gnuplot_has_qt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_has_x11() { if (err_6 == -1) err_6 = gnuplot_test_command("set term x11"); return err_6 == 0; }
static int gnuplot_has_x11(void) { static int err = -1; if (err == -1) { err = gnuplot_test_command("set term x11"); } return !err; }
gnuplot_has_x11
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_literal_from_opt(int ci, FILE *fp) { size_t v2; int ns; int real_ns; int warn; int i; int n; char **S; char *s; unsigned long v11; v11 = __readfsqword(0x28u); warn = 0; S = literal_strings_from_opt(ci, &ns, &real_ns); if (real_ns > 0) { fwrite("# start literal lines\n", 1u, 0x...
static int gnuplot_literal_from_opt(int ci, FILE *fp) { char *s, **S; int ns, real_ns; int warn = 0; S = literal_strings_from_opt(ci, &ns, &real_ns); if (real_ns > 0) { int i, n; fputs("# start literal lines\n", fp); for (i = 0; i < ns; i++) { if (S[i] != NULL) { s = S[i]; ...
gnuplot_literal_from_opt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_literal_from_string(const char *s, FILE *fp) { const char *sa; int braces; int warn; const char *p; braces = 1; warn = 0; sa = &s[strspn(s, " \t{")]; p = sa; fwrite("# start literal lines\n", 1u, 0x16u, fp); while (*sa) { if (*sa == 123) { ++braces; } else if (*sa == 125) ...
static int gnuplot_literal_from_string(const char *s, FILE *fp) { const char *p; int braces = 1; int wi, warn = 0; s += strspn(s, " \t{"); p = s; fputs("# start literal lines\n", fp); while (*s) { if (*s == '{') { braces++; } else if (*s == '}') { braces--; } if (braces == 0...
gnuplot_literal_from_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_make_graph() { const char *v1; const char *v2; int gui; int err; int fmt; const char *fname; char buf[520]; unsigned long v8; v8 = __readfsqword(0x28u); fname = gretl_plotfile(); gui = gretl_in_gui_mode(); graph_file_written = 0; graph_file_shown = 0; fmt = specified_gp_output_f...
static int gnuplot_make_graph(void) { char buf[MAXLEN]; const char *fname = gretl_plotfile(); int gui = gretl_in_gui_mode(); int fmt, err = 0; graph_file_written = 0; graph_file_shown = 0; fmt = specified_gp_output_format(); if (fmt == GP_TERM_PLT) { graph_file_written = 1; return 0; } else...
gnuplot_make_graph
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gnuplot_missval_string(FILE *fp) { fwrite("set datafile missing \"?\"\n", 1u, 0x19u, fp); }
void gnuplot_missval_string(FILE *fp) { fputs("set datafile missing \"?\"\n", fp); }
gnuplot_missval_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gnuplot_png_set_default_scale(double s) { if (s >= 0.5 && s <= 2.0) default_png_scale = s; }
void gnuplot_png_set_default_scale(double s) { if (s >= 0.5 && s <= 2.0) { default_png_scale = s; } }
gnuplot_png_set_default_scale
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_process_file(gretlopt opt, PRN *prn) { int err; const char *inname; FILE *fp; FILE *fq; char line[1032]; unsigned long v8; v8 = __readfsqword(0x28u); inname = get_optval_string(plot_ci, OPT_I); err = 0; if (!inname || !*inname) return 2; fp = gretl_fopen(inname, "r"); if (!fp) ...
int gnuplot_process_file(gretlopt opt, PRN *prn) { const char *inname = get_optval_string(plot_ci, OPT_I); FILE *fp, *fq; int err = 0; if (inname == NULL || *inname == '\0') { return E_DATA; } fp = gretl_fopen(inname, "r"); if (fp == NULL) { return E_FOPEN; } fq = open_plot_input_file(PLOT_...
gnuplot_process_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_test_command(const char *cmd) { const char *v1; size_t v2; int v3; int v4; int child_pid; int sinp; int serr; int status; int ret; int errbytes; int test; GError *error; gchar *argv[2]; char errbuf[136]; unsigned long v17; v17 = __readfsqword(0x28u); ret = 1; child_pid =...
int gnuplot_test_command(const char *cmd) { int ok, ret = 1; int child_pid = 0, sinp = 0, serr = 0; GError *error = NULL; gchar *argv[] = {NULL, NULL}; if (*gnuplot_path == '\0') { strcpy(gnuplot_path, gretl_gnuplot_path()); } argv[0] = gnuplot_path; ok = g_spawn_async_with_pipes( NULL, arg...
gnuplot_test_command
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gnuplot_time_from_date(const char *s, const char *fmt) { double x; char *test; tm t; unsigned long v6; v6 = __readfsqword(0x28u); x = NAN; if (fmt) { if (!strcmp(fmt, "%s")) { return atof(s); } else if (*fmt) { memset(&t, 0, sizeof(t)); test = strptime(s, fmt, &t); ...
double gnuplot_time_from_date(const char *s, const char *fmt) { double x = NADBL; if (fmt != NULL) { if (strcmp(fmt, "%s") == 0) { x = atof(s); } else if (*fmt != '\0') { struct tm t = {0}; time_t etime; char *test; test = strptime(s, fmt, &t); if (test != NULL && *tes...
gnuplot_time_from_date
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gnuplot_too_old() { const char *v0; int msg_done; int ret; unsigned long v4; v4 = __readfsqword(0x28u); msg_done = 0; ret = 0; if (gpv_0 == 0.0) gpv_0 = gnuplot_version(&msg_done); if (gpv_0 == 0.0) { if (!msg_done) { v0 = gretl_gnuplot_path(); gretl_errmsg_sprintf( ...
static int gnuplot_too_old(void) { static double gpv; int msg_done = 0; int ret = 0; if (gpv == 0.0) { gpv = gnuplot_version(&msg_done); } if (gpv == 0.0) { if (!msg_done) { gretl_errmsg_sprintf( "'%s': gnuplot is broken or too old: must be >= version 5.0", gretl_gnuplot_...
gnuplot_too_old
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void godfrey_test_string(int ci, int order, PRN *prn) { char *v3; char *v4; char *v5; char *v6; pputc(prn, 10); if (ci == 134) { if (order <= 1) { v4 = gettext("Godfrey (1994) test for first-order autocorrelation"); pputs(prn, v4); } else { v3 = gettext("Godfrey (1994) test for au...
static void godfrey_test_string(int ci, int order, PRN *prn) { pputc(prn, '\n'); if (ci == IVREG) { if (order > 1) { pprintf(prn, _("Godfrey (1994) test for autocorrelation up to order %d"), order); } else { pputs(prn, _("Godfrey (1994) test for first-order autocorrelation")); ...
godfrey_test_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int good_obs(const double *x, int n, double *x0) { int t; int good; good = n; if (x0) *x0 = NAN; for (t = 0; t < n; ++t) { if (fabs(x[t]) <= 1.797693134862316e308) { if (x0 && fabs(*x0) > 1.797693134862316e308) *x0 = x[t]; } else { --good; } } return good; }
static int good_obs(const double *x, int n, double *x0) { int t, good = n; if (x0 != NULL) { *x0 = NADBL; } for (t = 0; t < n; t++) { if (na(x[t])) { good--; } else if (x0 != NULL && na(*x0)) { *x0 = x[t]; } } return good; }
good_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int got_display_option(const char *s) { return s && !strcmp(s, "display"); }
static int got_display_option(const char *s) { return s != NULL && !strcmp(s, "display"); }
got_display_option
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int got_none_option(const char *s) { return s && !strcmp(s, "none"); }
static int got_none_option(const char *s) { return s != NULL && !strcmp(s, "none"); }
got_none_option
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int got_setvar_line(const char *s, int n, char *line) { return !strncmp(line, " ", 2u) && !strncmp(line + 2, s, n) && line[n + 2] == 58; }
static int got_setvar_line(const char *s, int n, char *line) { if (!strncmp(line, " ", 2) && !strncmp(line + 2, s, n) && line[2 + n] == ':') { return 1; } else { return 0; } }
got_setvar_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int got_subdir(const char *topdir, const gchar *dname) { int ret; GDir *sub; char tmp[520]; unsigned long v6; v6 = __readfsqword(0x28u); ret = 0; if (strcmp(dname, ".")) { if (strcmp(dname, "..")) { strcpy(tmp, topdir); strcat(tmp, dname); sub = gretl_opendir(tmp); if (sub) { ...
static int got_subdir(const char *topdir, const gchar *dname) { int ret = 0; if (strcmp(dname, ".") && strcmp(dname, "..")) { char tmp[MAXLEN]; GDir *sub; strcpy(tmp, topdir); strcat(tmp, dname); sub = gretl_opendir(tmp); if (sub != NULL) { g_dir_close(sub); ret = 1; } } ...
got_subdir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int got_two_ints(const char *s, int *pi, int *pt) { int n; n = 0; if (strchr(s, 58)) { n = __isoc99_sscanf(s, "%d:%d", pi, pt); } else if (strchr(s, 46)) { n = __isoc99_sscanf(s, "%d.%d", pi, pt); } return n == 2; }
static int got_two_ints(const char *s, int *pi, int *pt) { int n = 0; if (strchr(s, ':') != NULL) { n = sscanf(s, "%d:%d", pi, pt); } else if (strchr(s, '.') != NULL) { n = sscanf(s, "%d.%d", pi, pt); } return n == 2; }
got_two_ints
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gp_justification_string(int j) { switch (j) { case 0: return "left"; case 1: return "center"; case 2: return "right"; } return "left"; }
const char *gp_justification_string(int j) { if (j == GP_JUST_LEFT) { return N_("left"); } else if (j == GP_JUST_CENTER) { return N_("center"); } else if (j == GP_JUST_RIGHT) { return N_("right"); } else { return N_("left"); } }
gp_justification_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_keypos_from_display_name(const char *s) { char *v1; int i; for (i = 0; key_specs[i].id >= 0; ++i) { v1 = gettext(key_specs[i].str); if (!strcmp(s, v1)) return key_specs[i].id; } return 5; }
int gp_keypos_from_display_name(const char *s) { int i; for (i = 0; key_specs[i].id >= 0; i++) { if (!strcmp(s, _(key_specs[i].str))) { return key_specs[i].id; } } return GP_KEY_NONE; }
gp_keypos_from_display_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_keypos_from_name(const char *s) { int i; for (i = 0; key_specs[i].id >= 0; ++i) { if (!strcmp(s, key_specs[i].str)) return key_specs[i].id; } return 5; }
int gp_keypos_from_name(const char *s) { int i; for (i = 0; key_specs[i].id >= 0; i++) { if (!strcmp(s, key_specs[i].str)) { return key_specs[i].id; } } return GP_KEY_NONE; }
gp_keypos_from_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gp_keypos_string(int t) { int i; for (i = 0; key_specs[i].str; ++i) { if (t == key_specs[i].id) return key_specs[i].str; } return "none"; }
static const char *gp_keypos_string(int t) { int i; for (i = 0; key_specs[i].str != NULL; i++) { if (t == key_specs[i].id) { return key_specs[i].str; } } return N_("none"); }
gp_keypos_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_line_data_columns(GPT_SPEC *spec, int i) { if ((spec->lines[i].flags & 4) != 0) return 0; else return spec->lines[i].ncols; }
int gp_line_data_columns(GPT_SPEC *spec, int i) { if (spec->lines[i].flags & GP_LINE_AUXDATA) { return 0; } else { return spec->lines[i].ncols; } }
gp_line_data_columns
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gp_line_style_display_name(int t) { int i; for (i = 0; style_specs[i].id; ++i) { if (t == style_specs[i].id) return style_specs[i].trname; } return "lines"; }
const char *gp_line_style_display_name(int t) { int i; for (i = 0; style_specs[i].id != 0; i++) { if (t == style_specs[i].id) { return style_specs[i].trname; } } return N_("lines"); }
gp_line_style_display_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gp_line_style_name(int t) { int i; for (i = 0; style_specs[i].id; ++i) { if (t == style_specs[i].id) return style_specs[i].name; } return "lines"; }
static const char *gp_line_style_name(int t) { int i; for (i = 0; style_specs[i].id != 0; i++) { if (t == style_specs[i].id) { return style_specs[i].name; } } return "lines"; }
gp_line_style_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_list_pos(const char *s, const int *list, const DATASET *dset) { int k; if (integer_string(s)) k = atoi(s); else k = current_series_index(dset, s); return in_gretl_list(list, k); }
static int gp_list_pos(const char *s, const int *list, const DATASET *dset) { int k; if (integer_string(s)) { k = atoi(s); } else { k = current_series_index(dset, s); } return in_gretl_list(list, k); }
gp_list_pos
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_set_non_point_info(gnuplot_info *gi, const int *list, const DATASET *dset, gretlopt opt) { int withval; int i; int ia; int ib; int j; int imax; const char *s; gchar **strs; s = get_optval_string(plot_ci, opt); withval = 0; imax = *gi->withlist; switch (opt) { ...
static int gp_set_non_point_info(gnuplot_info *gi, const int *list, const DATASET *dset, gretlopt opt) { const char *s = get_optval_string(plot_ci, opt); int withval = W_POINTS; int i, imax = gi->withlist[0]; if (opt == OPT_O) { withval = W_LINES; } else if (opt == OPT_M)...
gp_set_non_point_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *gp_set_up_batch(char *fname, PlotType ptype, GptFlags flags, const char *optname, int *err) { const char *v5; int fmt; FILE *fp; fmt = 0; if (optname) { fmt = set_term_type_from_fname(optname); if (fmt) { strcpy(gnuplot_outname, optname); gretl_maybe_prepend_di...
static FILE *gp_set_up_batch(char *fname, PlotType ptype, GptFlags flags, const char *optname, int *err) { int fmt = GP_TERM_NONE; FILE *fp = NULL; if (optname != NULL) { fmt = set_term_type_from_fname(optname); if (fmt) { strcpy(gnuplot_outname, optname); gretl...
gp_set_up_batch
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *gp_set_up_interactive(char *fname, PlotType ptype, GptFlags flags, int *err) { const char *v4; const char *v5; const char *v6; const char *fnamea; int gui; FILE *fp; fnamea = fname; gui = gretl_in_gui_mode(); if (iact_gpfile) { fnamea = iact_gpfile; fp = gret...
static FILE *gp_set_up_interactive(char *fname, PlotType ptype, GptFlags flags, int *err) { int gui = gretl_in_gui_mode(); FILE *fp = NULL; if (iact_gpfile != NULL) { fname = iact_gpfile; fp = gretl_fopen(fname, "wb"); iact_gpfile = NULL; } else if (gui) { sp...
gp_set_up_interactive
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_style_index_from_display_name(const char *s) { char *v1; int i; for (i = 0; style_specs[i].id; ++i) { v1 = gettext(style_specs[i].trname); if (!strcmp(s, v1)) return style_specs[i].id; } return 1; }
int gp_style_index_from_display_name(const char *s) { int i; for (i = 0; style_specs[i].id != 0; i++) { if (!strcmp(s, _(style_specs[i].trname))) { return style_specs[i].id; } } return GP_STYLE_LINES; }
gp_style_index_from_display_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gp_style_index_from_name(const char *s) { int i; for (i = 0; style_specs[i].id; ++i) { if (!strcmp(s, style_specs[i].name)) return style_specs[i].id; } if (!strcmp(s, "l")) return 1; if (!strcmp(s, "p")) return 2; if (!strcmp(s, "lp")) return 3; if (!strcmp(s, "i")) return 4...
int gp_style_index_from_name(const char *s) { int i; for (i = 0; style_specs[i].id != 0; i++) { if (!strcmp(s, style_specs[i].name)) { return style_specs[i].id; } } if (!strcmp(s, "l")) { return GP_STYLE_LINES; } else if (!strcmp(s, "p")) { return GP_STYLE_POINTS; } else if (!strcmp(...
gp_style_index_from_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gpinfo_init(gnuplot_info *gi, gretlopt opt, const int *list, const char *literal, const DATASET *dset) { GptFlags flags; GptFlags v7; GptFlags v8; gretlopt opta; int l0; int err; opta = opt; l0 = *list; gi->withlist = 0; gi->yformula = 0; gi->x = 0; gi->list = 0; gi->dvals...
static int gpinfo_init(gnuplot_info *gi, gretlopt opt, const int *list, const char *literal, const DATASET *dset) { int l0 = list[0]; int err = 0; gi->withlist = NULL; gi->yformula = NULL; gi->x = NULL; gi->list = NULL; gi->dvals = NULL; gi->band = 0; err = get_gp_flags(gi, op...
gpinfo_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void grab_row_from(gretl_matrix *targ, gretl_matrix *src, int t) { int j; for (j = 0; j < src->cols; ++j) targ->val[j] = src->val[j * src->rows + t]; }
static void grab_row_from(gretl_matrix *targ, gretl_matrix *src, int t) { int j; for (j = 0; j < src->cols; j++) { targ->val[j] = gretl_matrix_get(src, t, j); } }
grab_row_from
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int graph_displayed() { return graph_file_shown; }
int graph_displayed(void) { return graph_file_shown; }
graph_displayed
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int graph_list_adjust_sample(int *list, gnuplot_info *ginfo, const DATASET *dset, int listmin) { int t1min; int t2max; int i; int ia; int ib; int t; int ta; int tb; int t_ok; int t_oka; int err; int all_missing; int vi; int via; t1min = ginfo->t1; t2max = gi...
static int graph_list_adjust_sample(int *list, gnuplot_info *ginfo, const DATASET *dset, int listmin) { int t1min = ginfo->t1; int t2max = ginfo->t2; int i, t, vi, t_ok; int err = 0; for (t = t1min; t <= t2max; t++) { t_ok = 0; for (i = 1; i <= list[0]; i++) { ...
graph_list_adjust_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void graph_month_name(char *mname, int m) { gsize bytes; gchar *tmp; tm mt; unsigned long v5; v5 = __readfsqword(0x28u); mt.tm_sec = 0; mt.tm_min = 0; mt.tm_hour = 0; mt.tm_mday = 1; mt.tm_mon = m - 1; mt.tm_year = 100; strftime(mname, 7u, "%b", &mt); if (!(unsigned int)g_utf8_validate(mname,...
static void graph_month_name(char *mname, int m) { struct tm mt; mt.tm_sec = 0; mt.tm_min = 0; mt.tm_hour = 0; mt.tm_mday = 1; mt.tm_mon = m - 1; mt.tm_year = 100; strftime(mname, 7, "%b", &mt); if (!g_utf8_validate(mname, -1, NULL)) { gchar *tmp; gsize bytes; tmp = g_locale_to_utf8(m...
graph_month_name
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void graph_palette_reset(int i) { if ((unsigned int)i <= 1) user_extra_color[i] = extra_color[i]; }
void graph_palette_reset(int i) { if (i >= 0 && i < 2) { user_extra_color[i] = extra_color[i]; } }
graph_palette_reset
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int graph_written_to_file() { return graph_file_written; }
int graph_written_to_file(void) { return graph_file_written; }
graph_written_to_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int graphyx(const double *y, const double *x, int n, const char *yname, const char *xname, PRN *prn) { return graphyzx(y, 0, x, n, yname, 0, xname, OPT_NONE, prn); }
int graphyx(const double *y, const double *x, int n, const char *yname, const char *xname, PRN *prn) { return graphyzx(y, NULL, x, n, yname, NULL, xname, OPT_NONE, prn); }
graphyx
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int graphyzx(const double *y1, const double *y2, const double *x, int n, const char *yname, const char *y2name, const char *xname, gretlopt opt, PRN *prn) { double v9; double v10; int v12; char v13; int v14; int v15; int v16; int v17; int v18; char *v19; int v20; int yz...
static int graphyzx(const double *y1, const double *y2, const double *x, int n, const char *yname, const char *y2name, const char *xname, gretlopt opt, PRN *prn) { int ix, iy1, iy2, lx, ly, xzero, yzero; int nrows, nr2, nc2, ls, lw, t1, t2; double xx, xmin, xmax, xrange; ...
graphyzx
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_DW_matrix_new(int n) { int i; int j; gretl_matrix *m; m = gretl_zero_matrix_new(n, n); if (!m) return 0; for (i = 0; i < n; ++i) { for (j = 0; j < n; ++j) { if (j == i) { if (i && i != n - 1) m->val[j * m->rows + i] = 2.0; else m->val[j ...
gretl_matrix *gretl_DW_matrix_new(int n) { gretl_matrix *m = gretl_zero_matrix_new(n, n); int i, j; if (m == NULL) { return NULL; } for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { if (j == i) { if (i == 0 || i == n - 1) { gretl_matrix_set(m, i, j, 1.0); } else { ...
gretl_DW_matrix_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_FEVD_from_bundle(gretl_bundle *b, int targ, int shock, const DATASET *dset, int *err) { gretl_matrix *ret; GRETL_VAR *var; var = build_VAR_from_bundle(b, 0, 0, err); ret = 0; if (var) { ret = gretl_VAR_get_FEVD_matrix(var, targ, shock, 0, dset, err...
gretl_matrix *gretl_FEVD_from_bundle(gretl_bundle *b, int targ, int shock, const DATASET *dset, int *err) { GRETL_VAR *var = build_VAR_from_bundle(b, 0, 0, err); gretl_matrix *ret = NULL; if (var != NULL) { ret = gretl_VAR_get_FEVD_matrix(var, targ, shock, 0, dset, err); ...
gretl_FEVD_from_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_GHK(const gretl_matrix *C, const gretl_matrix *A, const gretl_matrix *B, const gretl_matrix *U, int *err) { unsigned int sz; int ghk_err; int m; int n; int r; gretl_matrix *P; double huge; gretl_matrix *TT[6]; int v17; int v18; in...
gretl_matrix *gretl_GHK(const gretl_matrix *C, const gretl_matrix *A, const gretl_matrix *B, const gretl_matrix *U, int *err) { #ifdef GHK_OMP unsigned sz = 0; #endif gretl_matrix_block *Bk = NULL; gretl_matrix *P = NULL; gretl_matrix *Ai, *Bi; gretl_matrix *TA,...
gretl_GHK
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_GHK2(const gretl_matrix *C, const gretl_matrix *A, const gretl_matrix *B, const gretl_matrix *U, gretl_matrix *dP, int *err) { unsigned int sz; int t; int i; int r; int n; int m; int npar; gretl_matrix *P; double huge; gretl_matri...
gretl_matrix *gretl_GHK2(const gretl_matrix *C, const gretl_matrix *A, const gretl_matrix *B, const gretl_matrix *U, gretl_matrix *dP, int *err) { #ifdef GHK_OMP unsigned sz = 0; #endif gretl_matrix_block *Bk; gretl_matrix_block *Bk2; gretl_matrix *a, *b; gret...
gretl_GHK2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_IRF_from_bundle(gretl_bundle *b, int targ, int shock, double alpha, const DATASET *dset, int *err) { int boot; gretl_matrix *ret; GRETL_VAR *var; ret = 0; boot = 0; if (alpha == 0.0 || alpha >= 0.01 && alpha <= 0.6)...
gretl_matrix *gretl_IRF_from_bundle(gretl_bundle *b, int targ, int shock, double alpha, const DATASET *dset, int *err) { gretl_matrix *ret = NULL; GRETL_VAR *var = NULL; int boot = 0; if (alpha != 0 && (alpha < 0.01 || alpha > 0.6)) { ...
gretl_IRF_from_bundle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_LU_determinant(gretl_matrix *a, int logdet, int absval, int *err) { double v5; integer n; integer info; int i; int negcount; double det; double aii; integer *ipiv; unsigned long v16; v16 = __readfsqword(0x28u); if (a && a->rows && a->cols) { *err = 0; n = a->rows; if (a->...
static double gretl_LU_determinant(gretl_matrix *a, int logdet, int absval, int *err) { integer n, info; integer *ipiv; double det; int i; if (gretl_is_null_matrix(a)) { *err = E_DATA; return NADBL; } *err = 0; n = a->rows; if (a->cols != n) { fputs("gr...
gretl_LU_determinant
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_LU_solve(gretl_matrix *a, gretl_matrix *b) { _BOOL4 v2; int v4; char trans; integer info; integer n; integer ldb; integer nrhs; int err; int zfunc; int debug; const char *envstr; integer *ipiv; unsigned long v15; v15 = __readfsqword(0x28u); trans = 78; nrhs = 1; zfunc = 0; ...
int gretl_LU_solve(gretl_matrix *a, gretl_matrix *b) { char trans = 'N'; integer info; integer n, ldb, nrhs = 1; integer *ipiv; int zfunc = 0; int debug = 0; int err = 0; #if BLASDEBUG const char *envstr = getenv("GRETL_MATRIX_DEBUG"); debug = (envstr != NULL && atoi(envstr) > 0); #endif if (gret...
gretl_LU_solve
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_LU_solve_invert(gretl_matrix *a, gretl_matrix *b) { int v3; char trans; integer info; integer n; integer ldb; integer nrhs; integer lwork; int err; double *work; integer *ipiv; unsigned long v13; v13 = __readfsqword(0x28u); trans = 78; nrhs = 1; lwork = -1; work = 0; err = 0...
int gretl_LU_solve_invert(gretl_matrix *a, gretl_matrix *b) { char trans = 'N'; integer info; integer n, ldb, nrhs = 1; integer lwork = -1; double *work = NULL; integer *ipiv; int err = 0; if (gretl_is_null_matrix(a) || gretl_is_null_matrix(b) || a->rows != a->cols) { return E_DATA; } n ...
gretl_LU_solve_invert
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_SVD_invert_matrix(gretl_matrix *a) { int i; int ia; int ib; int j; int ja; int rank; int err; int n; gretl_matrix *u; gretl_matrix *s; gretl_matrix *vt; double smin; gretl_matrix *vt2; double x; unsigned long v16; v16 = __readfsqword(0x28u); u = 0; s = 0; vt = 0; rank ...
int gretl_SVD_invert_matrix(gretl_matrix *a) { gretl_matrix *u = NULL; gretl_matrix *s = NULL; gretl_matrix *vt = NULL; double x; int i, j, n; int rank = 0; int err = 0; if (gretl_is_null_matrix(a)) { return E_DATA; } if (a->rows != a->cols) { err = E_NONCONF; goto bailout; } n = ...
gretl_SVD_invert_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *gretl_VAR(int order, int *laglist, int *list, const DATASET *dset, gretlopt opt, PRN *prn, int *err) { int v7; int v9; int code; GRETL_VAR *var; const int *lags; if ((opt & 0x800) != 0) v7 = 2; else v7 = 1; code = v7; lags = 0; if ((opt & 0x1000) == 0 || (opt...
GRETL_VAR *gretl_VAR(int order, int *laglist, int *list, const DATASET *dset, gretlopt opt, PRN *prn, int *err) { GRETL_VAR *var = NULL; int code = (opt & OPT_L) ? VAR_LAGSEL : VAR_ESTIMATE; int *lags = NULL; if ((opt & OPT_M) && !(opt & OPT_L)) { gretl_errmsg_sprintf("%s: inapplicable...
gretl_VAR
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_VAR_arch_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { int h; h = order; if (!order) h = dset->pd; if ((opt & 0x100000) != 0) return univariate_arch_test(var, h, dset, opt, prn); else return multivariate_arch_test(var, h, order == 0, op...
int gretl_VAR_arch_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { int h = order; int err; if (order == 0) { h = dset->pd; } if (opt & OPT_U) { err = univariate_arch_test(var, h, dset, opt, prn); } else { int autoH = (order == 0); err = mul...
gretl_VAR_arch_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_VAR_autocorrelation_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { int h; h = order; if (!order) h = dset->pd; if ((opt & 0x100000) != 0) return univariate_autocorr_test(var, h, dset, opt, prn); else return multivariate_autoco...
int gretl_VAR_autocorrelation_test(GRETL_VAR *var, int order, DATASET *dset, gretlopt opt, PRN *prn) { int h = order; int err; if (order == 0) { h = dset->pd; } if (opt & OPT_U) { err = univariate_autocorr_test(var, h, dset, opt, prn); } else { int autoH = (o...
gretl_VAR_autocorrelation_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_VAR_bundlize(const GRETL_VAR *var, DATASET *dset, gretl_bundle *b) { const char *v3; int err; gretl_matrix *d; gretl_matrix *v; gretl_matrix *A; gretl_bundle *jb; unsigned long v11; v11 = __readfsqword(0x28u); err = 0; v3 = gretl_command_word(var->ci); gretl_bundle_set_string(b, "comman...
int gretl_VAR_bundlize(const GRETL_VAR *var, DATASET *dset, gretl_bundle *b) { gretl_matrix *d; int err = 0; gretl_bundle_set_string(b, "command", gretl_command_word(var->ci)); if (var->name != NULL) { gretl_bundle_set_string(b, "name", var->name); } gretl_bundle_set_int(b, "ecm", var->ci == VECM); ...
gretl_VAR_bundlize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_VAR_clear(GRETL_VAR *var) { var->ci = 0; var->refcount = 0; var->err = 0; var->order = 0; var->neqns = var->order; var->df = 0; var->T = var->df; var->t2 = var->T; var->t1 = var->t2; var->ncoeff = 0; var->ifc = var->ncoeff; var->detflags = 0; var->robust = 0; var->LBs = 0; var->...
void gretl_VAR_clear(GRETL_VAR *var) { var->ci = 0; var->refcount = 0; var->err = 0; var->neqns = var->order = 0; var->t1 = var->t2 = var->T = var->df = 0; var->ifc = var->ncoeff = 0; var->detflags = 0; var->robust = 0; var->LBs = 0; var->xcols = 0; var->lags = NULL; var->ylist = NULL; var->x...
gretl_VAR_clear
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_VAR_do_error_decomp(const gretl_matrix *S, gretl_matrix *C, const gretl_matrix *ord) { int rows; int v4; int v5; int i; int ia; int ib; int j; int ja; int jb; int err; int g; int r; int ra; gretl_matrix *tmp; if (S) rows = S->rows; else ro...
int gretl_VAR_do_error_decomp(const gretl_matrix *S, gretl_matrix *C, const gretl_matrix *ord) { int g = gretl_matrix_rows(S); gretl_matrix *tmp = NULL; double x; int i, j, r, c; int err = 0; tmp = gretl_matrix_copy(S); if (tmp == NULL) { err = E_ALLOC; } if (ord !=...
gretl_VAR_do_error_decomp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_VAR_do_irf(GRETL_VAR *var, const char *line, const DATASET *dset) { int targ; int shock; int h; int boot; double alpha; char *s; char *sa; char *sb; char *sc; targ = -1; shock = 1; h = 20; boot = 0; alpha = 0.1; s = strstr(line, "--targ="); if (s) targ = atoi(s + 7) - 1; ...
int gretl_VAR_do_irf(GRETL_VAR *var, const char *line, const DATASET *dset) { int targ = -1, shock = 1; int h = 20, boot = 0; double alpha = 0.10; int err = 0; char *s; s = strstr(line, "--targ="); if (s != NULL) { targ = atoi(s + 7) - 1; } s = strstr(line, "--shock="); if (s != NULL) { sh...
gretl_VAR_do_irf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_VAR_free(GRETL_VAR *var) { if (var) { if (--var->refcount <= 0) { free(var->lags); free(var->ylist); free(var->xlist); free(var->rlist); gretl_matrix_free(var->Y); gretl_matrix_free(var->X); gretl_matrix_free(var->B); gretl_matrix_free(var->XTX); gr...
void gretl_VAR_free(GRETL_VAR *var) { if (var == NULL) return; #if VDEBUG fprintf(stderr, "gretl_VAR_free: var = %p, refcount = %d\n", (void *)var, var->refcount); #endif var->refcount -= 1; if (var->refcount > 0) { return; } free(var->lags); free(var->ylist); free(var->xlist); fr...
gretl_VAR_free
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GRETL_VAR *gretl_VAR_from_XML(xmlNodePtr node, xmlDocPtr doc, const DATASET *dset, int *err) { int v5; int *v6; int *v7; int *v8; int *list; double *v10; double *double_array; gretl_matrix *matrix; gretl_matrix *v13; gretl_matrix *v14; gretl_matrix *v15; int n; in...
GRETL_VAR *gretl_VAR_from_XML(xmlNodePtr node, xmlDocPtr doc, const DATASET *dset, int *err) { GRETL_VAR *var; MODEL *pmod; xmlNodePtr cur; char *vname; int i, n, got = 0; var = gretl_VAR_rebuilder_new(); if (var == NULL) { *err = E_ALLOC; return NULL; } got += ...
gretl_VAR_from_XML
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_VAR_get_FEVD_matrix(const GRETL_VAR *var, int targ, int shock, int horizon, const DATASET *dset, int *err) { gretl_matrix *v6; int h; int imin; int imax; int i; int ia; int j; int ja; int jb; int k; ...
gretl_matrix *gretl_VAR_get_FEVD_matrix(const GRETL_VAR *var, int targ, int shock, int horizon, const DATASET *dset, int *err) { gretl_matrix *vd, *V; double vjk; int h = horizon; int n = var->neqns; int imin, imax; int i, j, k,...
gretl_VAR_get_FEVD_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0