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
double chisq_pdf(int m, double x) { double xa; int ma; ma = m; xa = x; chisq_pdf_array(m, &xa, 1); return xa; }
static double chisq_pdf(int m, double x) { chisq_pdf_array(m, &x, 1); return x; }
chisq_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int chisq_pdf_array(int m, double *x, int n) { int i; int ia; int err; double m2; double x1; double x2; double x3; err = 0; *__errno_location() = 0; if (m <= 0) { err = 2; } else { m2 = (double)m / 2.0; x1 = pow(0.5, m2); x2 = gammafun(m2); if (*__errno_location()) { err...
static int chisq_pdf_array(int m, double *x, int n) { int i, err = 0; errno = 0; if (m > 0) { double m2 = m / 2.0; double x1 = pow(.5, m2); double x2 = gammafun(m2); double x3, x4; if (errno) { err = E_NAN; } else { for (i = 0; i < n; i++) { if (!na(x[i]) && x[i] > 0...
chisq_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int chkder(const double *x, double *xp, const double *fvec, const double *fvecp, const gretl_matrix *J, int mode, double *err) { int i; int ia; int ib; int j; int ja; double temp; double tempa; double tempb; double eps; double epslog; double d; eps = sqrt(2.220446049250313e-16); if...
static int chkder(const double *x, double *xp, const double *fvec, const double *fvecp, const gretl_matrix *J, int mode, double *err) { const double epsmch = DBL_EPSILON; double temp, eps = sqrt(epsmch); int i, j; if (mode == 1) { for (j = 0; j < J->cols; j++) { t...
chkder
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cholbeta(MODEL *pmod, double *xpy, double *rss) { int i; int ia; int ib; int j; int ja; int jb; int jc; int k; int ka; int kk; int kka; int l; int la; int nc; double d; double da; double db; double dc; double d1; double *xpx; double *b; double e; double ea; double d2;...
static int cholbeta(MODEL *pmod, double *xpy, double *rss) { int i, j, k, kk, l, jm1; double e, d, d1, d2, test, xx; double *xpx = pmod->xpx; double *b = pmod->coeff; int nc = pmod->ncoeff; if (xpx[0] <= 0.0) { fprintf(stderr, "%s %d: xpx <= 0.0\n", __FILE__, __LINE__); return E_NAN; } e = 1.0...
cholbeta
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *cholesky_factor_of_inverse(const gretl_matrix *S, int *err) { gretl_matrix *C; C = gretl_matrix_copy(S); if (C) { *err = gretl_invert_symmetric_matrix(C); if (!*err) *err = gretl_matrix_cholesky_decomp(C); } else { *err = 12; } return C; }
static gretl_matrix *cholesky_factor_of_inverse(const gretl_matrix *S, int *err) { gretl_matrix *C = gretl_matrix_copy(S); if (C == NULL) { *err = E_ALLOC; } else { *err = gretl_invert_symmetric_matrix(C); if (!*err) { *err = gretl_matrix_cholesky...
cholesky_factor_of_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cholesky_regress(MODEL *pmod, const DATASET *dset, gretlopt opt) { int k; k = *pmod->list - 1; if (k <= 49 && (pmod->t2 - pmod->t1 + 1 <= 249 || k <= 29)) return native_cholesky_regress(pmod, dset, opt); else return lapack_cholesky_regress(pmod, dset, opt); }
static int cholesky_regress(MODEL *pmod, const DATASET *dset, gretlopt opt) { int T = pmod->t2 - pmod->t1 + 1; int k = pmod->list[0] - 1; if (k >= 50 || (T >= 250 && k >= 30)) { return lapack_cholesky_regress(pmod, dset, opt); } else { return native_cholesky_regress(pmod, dset, opt); } }
cholesky_regress
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double choose(double n, double k, int *err) { int i; double c; c = 1.0; for (i = 0; k > (double)i; ++i) c = (n - (double)i) / (k - (double)i) * c; if (fabs(c) > 1.797693134862316e308) *err = 1; return c; }
static double choose(double n, double k, int *err) { double c = 1.0; int i; for (i = 0; i < k; i++) { c *= (n - i) / (k - i); } if (na(c)) { *err = 1; } return c; }
choose
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int chow_active(int split, const double *x, int t) { if (x) return x[t] == 1.0; else return t >= split; }
static int chow_active(int split, const double *x, int t) { if (x != NULL) { return x[t] == 1.0; } else { return (t >= split); } }
chow_active
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int chow_test(int splitobs, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { char *v5; if (splitobs > 0 && splitobs < dset->n) return real_chow_test(splitobs, pmod, dset, 14, opt, prn); v5 = gettext("Invalid sample split for Chow test"); gretl_errmsg_set(v5); return 2; }
int chow_test(int splitobs, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int err = 0; if (splitobs <= 0 || splitobs >= dset->n) { gretl_errmsg_set(_("Invalid sample split for Chow test")); err = E_DATA; } else { err = real_chow_test(splitobs, pmod, dset, CHOW, opt, prn); } ...
chow_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int chow_test_driver(const char *param, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int err; int chowparm; unsigned long v11; v11 = __readfsqword(0x28u); chowparm = 0; err = 0; if (!param || !*param) return 2; if ((opt & 8) != 0) chowparm = get_chow_dummy(param, d...
int chow_test_driver(const char *param, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int chowparm = 0; int err = 0; if (param == NULL || *param == '\0') { return E_DATA; } if (opt & OPT_D) { chowparm = get_chow_dummy(param, dset, &err); } else { chowparm = dateton...
chow_test_driver
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int chow_test_from_dummy(int splitvar, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { char *v5; if (splitvar > 0 && splitvar < dset->v) return real_chow_test(splitvar, pmod, dset, 14, (gretlopt)(opt | 8), prn); v5 = gettext("Invalid sample split for Chow test"); gretl_errmsg...
int chow_test_from_dummy(int splitvar, MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { int err = 0; if (splitvar <= 0 || splitvar >= dset->v) { gretl_errmsg_set(_("Invalid sample split for Chow test")); err = E_DATA; } else { err = real_chow_test(splitvar, pmod, dset, C...
chow_test_from_dummy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *chunk_strdup(const char *src, const char **ptr, int *err) { const char *srca; int len; char *targ; const char *p; targ = 0; if (*src) { len = 0; srca = &src[strspn(src, " \n")]; p = srca; if (*srca == 34) { p = ++srca; while (*srca && *srca != 34) { ++len; ...
static char *chunk_strdup(const char *src, const char **ptr, int *err) { char *targ = NULL; if (*src == '\0') { *ptr = src; } else { const char *p; int len = 0; src += strspn(src, " \n"); p = src; if (*src == '"') { p = ++src; while (*src && *src != '"') { len++; ...
chunk_strdup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *classifier_check(int *list, const DATASET *dset, PRN *prn, int *ndropped, int *err) { _BOOL4 v5; int v6; _BOOL4 v7; int v8; char *v9; const char *v10; char *v11; char *v12; char *v13; char *v14; char *v15; char *v16; char *v17; char *v18; char *v19; char *v20...
static char *classifier_check(int *list, const DATASET *dset, PRN *prn, int *ndropped, int *err) { char *mask = NULL; int yno = list[1]; const double *y = dset->Z[yno]; int i, v, ni, t; *ndropped = 0; for (i = list[0]; i >= 2; i--) { int getout = 0; v = list[i]; ...
classifier_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_ar_info(MODEL *pmod) { if (pmod->arinfo->arlist) free(pmod->arinfo->arlist); if (pmod->arinfo->rho) free(pmod->arinfo->rho); if (pmod->arinfo->sderr) free(pmod->arinfo->sderr); free(pmod->arinfo); pmod->arinfo = 0; }
static void clear_ar_info(MODEL *pmod) { if (pmod->arinfo->arlist) { free(pmod->arinfo->arlist); } if (pmod->arinfo->rho) { free(pmod->arinfo->rho); } if (pmod->arinfo->sderr) { free(pmod->arinfo->sderr); } free(pmod->arinfo); pmod->arinfo = NULL; }
clear_ar_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_datainfo(DATASET *dset, int code) { int i; int ia; if (dset) { if (dset->S) dataset_destroy_obs_markers(dset); if (dset->submask) { free_subsample_mask(dset->submask); dset->submask = 0; } if (dset->restriction) { free(dset->restriction); dset->restriction...
void clear_datainfo(DATASET *dset, int code) { int i; if (dset == NULL) return; if (dset->S != NULL) { dataset_destroy_obs_markers(dset); } if (dset->submask != NULL) { free_subsample_mask(dset->submask); dset->submask = NULL; } if (dset->restriction != NULL) { free(dset->restriction...
clear_datainfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_gpinfo(gnuplot_info *gi) { free(gi->list); gretl_matrix_free(gi->dvals); free(gi->withlist); }
static void clear_gpinfo(gnuplot_info *gi) { free(gi->list); gretl_matrix_free(gi->dvals); free(gi->withlist); }
clear_gpinfo
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_gretl_matrix_err() { gretl_matrix_err = 0; }
void clear_gretl_matrix_err(void) { gretl_matrix_err = 0; }
clear_gretl_matrix_err
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_jspec(joinspec *jspec, joiner *jr) { int v2; free(jspec->colnames); free(jspec->colnums); if (jspec->timecols) free(jspec->timecols); if (jspec->c) { csvdata_free(jspec->c); } else if (jspec->dset) { destroy_dataset(jspec->dset); } if (jspec->wildnames) { v2 = jspec_n_vars(js...
static void clear_jspec(joinspec *jspec, joiner *jr) { free(jspec->colnames); free(jspec->colnums); if (jspec->timecols != NULL) { free(jspec->timecols); } if (jspec->c != NULL) { csvdata_free(jspec->c); } else if (jspec->dset != NULL) { destroy_dataset(jspec->dset); } if (jspec->wildname...
clear_jspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_model(MODEL *pmod) { if (pmod) { if (pmod->list) free(pmod->list); if (pmod->missmask) free(pmod->missmask); if (pmod->coeff) free(pmod->coeff); if (pmod->sderr) free(pmod->sderr); if (pmod->yhat) free(pmod->yhat); if (pmod->uhat) free(pmod->uhat)...
void clear_model(MODEL *pmod) { if (pmod != NULL) { #if MDEBUG fprintf(stderr, "clear model: model at %p\n", (void *)pmod); #endif #if MDEBUG > 1 debug_print_model_info(pmod, "Doing clear_model"); #endif if (pmod->list != NULL) free(pmod->list); if (pmod->missmask != NULL) free(pmod->miss...
clear_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_model_xpx(MODEL *pmod) { if (pmod->xpx) { free(pmod->xpx); pmod->xpx = 0; } }
void clear_model_xpx(MODEL *pmod) { if (pmod->xpx != NULL) { free(pmod->xpx); pmod->xpx = NULL; } }
clear_model_xpx
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_mspec(matrix_subspec *spec, parser *p) { free(spec->rslice); free(spec->cslice); memset(spec, 0, sizeof(matrix_subspec)); }
static void clear_mspec(matrix_subspec *spec, parser *p) { free(spec->rslice); free(spec->cslice); memset(spec, 0, sizeof(*spec)); }
clear_mspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_nlspec(nlspec *spec) { int i; int ia; int ib; if (spec) { free(spec->parnames); spec->parnames = 0; if (spec->params) { for (i = 0; i < spec->nparam; ++i) free(spec->params[i].deriv); free(spec->params); spec->params = 0; } spec->nparam = 0; free(spe...
static void clear_nlspec(nlspec *spec) { int i; if (spec == NULL) { return; } free(spec->parnames); spec->parnames = NULL; if (spec->params != NULL) { for (i = 0; i < spec->nparam; i++) { free(spec->params[i].deriv); } free(spec->params); spec->params = NULL; } spec->nparam ...
clear_nlspec
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_one_option(stored_opt *so) { free(so->val); so->val = 0; so->ci = 0; so->opt = OPT_NONE; so->flags = 0; }
static void clear_one_option(stored_opt *so) { free(so->val); so->val = NULL; so->ci = 0; so->opt = 0; so->flags = 0; }
clear_one_option
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_options_for_command(int ci) { int i; int fd; fd = gretl_function_depth(); for (i = 0; i < n_stored_opts; ++i) { if (fd == optinfo[i].fd && ci == optinfo[i].ci) clear_one_option(&optinfo[i]); } }
static void clear_options_for_command(int ci) { int i, fd = gretl_function_depth(); for (i = 0; i < n_stored_opts; i++) { if (optinfo[i].fd == fd && optinfo[i].ci == ci) { clear_one_option(&optinfo[i]); } } }
clear_options_for_command
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_plot() { plot.in_progress = 0; plot.opt = OPT_NONE; free(plot.datasource); plot.datasource = 0; plot.datatype = GRETL_TYPE_NONE; strings_array_free(plot.lines, plot.nlines); plot.lines = 0; plot.nlines = 0; set_effective_plot_ci(50); }
static void clear_plot(void) { plot.in_progress = 0; plot.opt = 0; free(plot.datasource); plot.datasource = NULL; plot.datatype = 0; strings_array_free(plot.lines, plot.nlines); plot.lines = NULL; plot.nlines = 0; set_effective_plot_ci(GNUPLOT); }
clear_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_special_size() { special_height = 0.0; special_width = 0.0; }
static void clear_special_size(void) { special_width = special_height = 0; }
clear_special_size
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_stored_options_for_command(int ci) { int i; int fd; fd = gretl_function_depth(); for (i = 0; i < n_stored_opts; ++i) { if (fd == optinfo[i].fd && ci == optinfo[i].ci && (optinfo[i].flags & 2) == 0) clear_one_option(&optinfo[i]); } }
void clear_stored_options_for_command(int ci) { int i, fd = gretl_function_depth(); #if OPTDEBUG > 1 fprintf(stderr, "clearing stored options for %s\n", gretl_command_word(ci)); #endif for (i = 0; i < n_stored_opts; i++) { if (optinfo[i].fd == fd && optinfo[i].ci == ci && !(optinfo[i].flags & OPT_PE...
clear_stored_options_for_command
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_tmp_node_data(NODE *n, parser *p) { int nullify; int t; nullify = 1; switch (n->t) { case '8': goto LABEL_2; case '9': gretl_matrix_free(n->v.m); break; case 'H': if (n->v.str) clear_mspec(n->v.mspec, p); nullify = 0; break; case ':': gretl_bundle_destroy(n-...
static void clear_tmp_node_data(NODE *n, parser *p) { int nullify = 1; if (n->t == LIST) { free(n->v.ivec); } else if (n->t == MAT) { gretl_matrix_free(n->v.m); } else if (n->t == MSPEC) { if (n->v.mspec != NULL) { clear_mspec(n->v.mspec, p); } nullify = 0; } else if (n->t == BUNDL...
clear_tmp_node_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_ufunc_data(ufunc *fun) { free_lines_array(fun->lines, fun->n_lines); free_params_array(fun->params, fun->n_params); fun->lines = 0; fun->params = 0; fun->n_lines = 0; fun->line_idx = 1; fun->n_params = 0; fun->rettype = 0; }
static void clear_ufunc_data(ufunc *fun) { free_lines_array(fun->lines, fun->n_lines); free_params_array(fun->params, fun->n_params); fun->lines = NULL; fun->params = NULL; fun->n_lines = 0; fun->line_idx = 1; fun->n_params = 0; fun->rettype = GRETL_TYPE_NONE; }
clear_ufunc_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void clear_uvnodes(NODE *t) { int i; if (t) { if (t->t == 74 || t->t == 83) { for (i = 0; i < t->v.bn.n_nodes; ++i) clear_uvnodes(t->v.bn.n[i]); } else { clear_uvnodes(t->L); clear_uvnodes(t->M); clear_uvnodes(t->R); } if (t->t == 55) { if (t->vnum >= 0 || t->v...
static void clear_uvnodes(NODE *t) { if (t == NULL) { return; } if (bnsym(t->t)) { int i; for (i = 0; i < t->v.bn.n_nodes; i++) { clear_uvnodes(t->v.bn.n[i]); } } else { clear_uvnodes(t->L); clear_uvnodes(t->M); clear_uvnodes(t->R); } if (t->t == SERIES) { if (t->vnu...
clear_uvnodes
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cli_build_zip_package(const char *fname, const char *gfnname, fnpkg *pkg, PRN *prn) { int n_datafiles; int pdfdoc; int freeit; int err; char **datafiles[2]; datafiles[1] = (char **)__readfsqword(0x28u); datafiles[0] = 0; n_datafiles = 0; pdfdoc = 0; freeit = 0; err =...
static int cli_build_zip_package(const char *fname, const char *gfnname, fnpkg *pkg, PRN *prn) { char **datafiles = NULL; int n_datafiles = 0; int pdfdoc = 0; int freeit = 0; int err = 0; if (pkg != NULL) { datafiles = pkg->datafiles; n_datafiles = pkg->n_files; ...
cli_build_zip_package
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cli_help(const char *hlpword, const char *param, gretlopt opt, char **pbuf, PRN *prn) { _BOOL4 v5; const char *v7; char *v8; const char *v9; const char *v10; char *v11; char *v12; int err; int ok; int funhelp; int noword; int ci; FILE *fp; char helpfile[4104]; unsigned lon...
int cli_help(const char *hlpword, const char *param, gretlopt opt, char **pbuf, PRN *prn) { static int recode = -1; char helpfile[FILENAME_MAX]; FILE *fp; int noword, funhelp = (opt & OPT_F); int ok = 0; int err = 0; noword = (hlpword == NULL || *hlpword == '\0'); if ((noword || strcmp(hl...
cli_help
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cli_panel_plot(const int *list, const char *literal, const DATASET *dset, gretlopt opt) { char *v4; int v6; gretlopt v7; gretlopt opta; int err; int vnum; int N; const char *s; opta = opt; vnum = list[1]; if (dset && dset->structure == 2) { err = incompatible_options(op...
int cli_panel_plot(const int *list, const char *literal, const DATASET *dset, gretlopt opt) { int N, vnum = list[1]; int err; if (!dataset_is_panel(dset)) { gretl_errmsg_set(_("This command needs panel data")); err = E_DATA; } else { err = incompatible_options(opt, OPT_M | OPT_V ...
cli_panel_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cli_read_rc() { int use_proxy; int updated; int err; gchar *gptheme; FILE *fp; ConfigPaths cpaths; char dbproxy[64]; char rcfile[4104]; unsigned long v9; v9 = __readfsqword(0x28u); memset(&cpaths, 0, sizeof(cpaths)); memset(dbproxy, 0, sizeof(dbproxy)); gptheme = 0; use_proxy = 0; upd...
int cli_read_rc(void) { ConfigPaths cpaths = {0}; char rcfile[FILENAME_MAX]; char dbproxy[PROXLEN] = {0}; gchar *gptheme = NULL; int use_proxy = 0; int updated = 0; FILE *fp; int err = 0; get_gretl_rc_path(rcfile); fp = gretl_fopen(rcfile, "r"); if (fp == NULL) { err = E_FOPEN; } else { ...
cli_read_rc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cli_validate_package_file(const char *fname, gretlopt opt, PRN *prn) { const char *v4; char *v5; int err; xmlDocPtr doc; xmlDtdPtr dtd; const char *dpath; const char *pkgname; xmlValidCtxtPtr cvp; char dtdname[4104]; unsigned long v14; v14 = __readfsqword(0x28u); doc = 0; dtd = 0; err =...
static int cli_validate_package_file(const char *fname, gretlopt opt, PRN *prn) { char dtdname[FILENAME_MAX]; xmlDocPtr doc = NULL; xmlDtdPtr dtd = NULL; int err; err = gretl_xml_open_doc_root(fname, NULL, &doc, NULL); if (err) { pprintf(prn, "Couldn't parse %s\n", ...
cli_validate_package_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double clogit_fi(int T, int k, gretl_matrix *z, gretl_matrix *df_0, int *err) { int r; gretl_matrix *dfarg; double ret; dfarg = 0; ret = NAN; if (z && z->rows && z->cols) { r = z->rows; if (df_0) { if (r == df_0->rows && df_0->cols == 1) { dfarg = df_0; } else { dfarg = ...
double clogit_fi(int T, int k, gretl_matrix *z, gretl_matrix *df, int *err) { gretl_matrix *dfarg = NULL; double ret = NADBL; int r; if (gretl_is_null_matrix(z)) { *err = E_DATA; return NADBL; } r = z->rows; if (df != NULL) { if (df->rows != r || df->cols != 1) { dfarg = gretl_column_...
clogit_fi
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void close_plugin(void *handle) { if (handle) dlclose(handle); }
void close_plugin(void *handle) { #if KEEP_PLUGINS_OPEN return; #endif if (handle != NULL) { #ifdef WIN32 FreeLibrary(handle); #else dlclose(handle); #endif } }
close_plugin
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cluster_option_ok(int ci) { int i; int got_ci; got_ci = 0; for (i = 0; gretl_opts[i].ci; ++i) { if (ci == gretl_opts[i].ci) { if (gretl_opts[i].o == OPT_C && !strcmp(gretl_opts[i].longopt, "cluster")) return 1; got_ci = 1; } else if (got_ci) { return 0; } } return ...
int cluster_option_ok(int ci) { int i, got_ci = 0; for (i = 0; gretl_opts[i].ci; i++) { if (gretl_opts[i].ci == ci) { if (gretl_opts[i].o == OPT_C && !strcmp(gretl_opts[i].longopt, "cluster")) { return 1; } got_ci = 1; } else if (got_ci) { break; } } retur...
cluster_option_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *cluster_var_values(const double *cvar, MODEL *pmod, int *err) { int v3; int t; int ta; int i; gretl_matrix *cvals; double *ctmp; cvals = 0; if (pmod->missmask) { ctmp = (double *)malloc(8LL * pmod->nobs); if (ctmp) { i = 0; for (t = pmod->t1; t <= pmod->t2 && !*err; ++...
static gretl_matrix *cluster_var_values(const double *cvar, MODEL *pmod, int *err) { gretl_matrix *cvals = NULL; int t; if (pmod->missmask != NULL) { double *ctmp = malloc(pmod->nobs * sizeof *ctmp); if (ctmp == NULL) { *err = E_ALLOC; } else { int...
cluster_var_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *cluster_vcv_calc(MODEL *pmod, int cvar, gretl_matrix *cvals, gretl_matrix *XX, const DATASET *dset, int *err) { int rows; double v8; int n_c; int total_obs; int i; int j; int t; int s; int k; int N; int M; int Ni; int ...
static gretl_matrix *cluster_vcv_calc(MODEL *pmod, int cvar, gretl_matrix *cvals, gretl_matrix *XX, const DATASET *dset, int *err) { gretl_matrix *V = NULL; gretl_matrix *W = NULL; gretl_matrix *XXW = NULL; gretl_vector *ei = NULL; g...
cluster_vcv_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void cluster_vcv_line(const MODEL *pmod, const VCVInfo *vi, const DATASET *dset, PRN *prn) { char *v4; char *v5; char *v6; unsigned int n_c; gchar *cstr; if (vi->vmin <= 0 || vi->vmin >= dset->v) { v6 = gettext("Clustered standard errors"); cstr = (gchar *)g_strdup(v6); } el...
static void cluster_vcv_line(const MODEL *pmod, const VCVInfo *vi, const DATASET *dset, PRN *prn) { gchar *cstr; if (vi->vmin >= 1 && vi->vmin < dset->v) { int n_c = gretl_model_get_int(pmod, "n_clusters"); cstr = g_strdup_printf(_("Standard errors clustered by %d values of %s...
cluster_vcv_line
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *cmatrix_SVD_inverse(const gretl_matrix *A, int generalized, int *err) { char *v3; double v4; double v5; complex_double *v6; gretl_matrix *v7; int i; int ia; int j; int h; gretl_matrix *U; gretl_matrix *V; gretl_matrix *s; gretl_matrix *Vt; gret...
static gretl_matrix *cmatrix_SVD_inverse(const gretl_matrix *A, int generalized, int *err) { gretl_matrix *U = NULL; gretl_matrix *V = NULL; gretl_matrix *s = NULL; gretl_matrix *Vt = NULL; gretl_matrix *ret = NULL; *err = gretl_cmatrix_SVD(A, &U, &s, &V, 1); if ...
cmatrix_SVD_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *cmatrix_dot_op(const gretl_matrix *A, const gretl_matrix *B, int op, int *err) { int nr; int nc; int i; int j; int off; int conftype; gretl_matrix *C; complex_double x; complex_double y; unsigned long v16; v16 = __readfsqword(0x28u); C = 0; if (A && ...
static gretl_matrix *cmatrix_dot_op(const gretl_matrix *A, const gretl_matrix *B, int op, int *err) { gretl_matrix *C = NULL; double complex x, y; int nr, nc; int conftype; int i, j, off; if (gretl_is_null_matrix(A) || gretl_is_null_matrix(B)) { *err = E_DATA; re...
cmatrix_dot_op
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *cmatrix_get_element(const gretl_matrix *M, int i, int *err) { char *v3; gretl_matrix *ret; ret = 0; if (M) { if (i >= 0 && i < M->rows * M->cols) { return gretl_cmatrix_from_scalar(M->z[i], err); } else { v3 = gettext("Index value %d is out of bounds"); gretl_errmsg_spri...
gretl_matrix *cmatrix_get_element(const gretl_matrix *M, int i, int *err) { gretl_matrix *ret = NULL; if (M == NULL) { *err = E_DATA; } else if (i < 0 || i >= M->rows * M->cols) { gretl_errmsg_sprintf(_("Index value %d is out of bounds"), i + 1); *err = E_INVARG; } else { ret = gretl_cmatrix_fr...
cmatrix_get_element
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cmatrix_validate(const gretl_matrix *m, int square) { _BOOL4 ret; ret = 1; if (m && m->rows && m->cols) { if (m->is_complex && m->z) { if (square) ret = m->rows == m->cols; } else { ret = 0; } } else { ret = 0; } if (!ret) fwrite("cmatrix_validate: failed\n", 1u,...
static int cmatrix_validate(const gretl_matrix *m, int square) { int ret = 1; if (gretl_is_null_matrix(m)) { ret = 0; } else if (!m->is_complex || m->z == NULL) { ret = 0; } else if (square && m->rows != m->cols) { ret = 0; } if (!ret) { fprintf(stderr, "cmatrix_validate: failed\n"); } ...
cmatrix_validate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cmatrix_xy_calc(gretl_matrix *targ, gretl_matrix *src, complex_double x, int xleft, int op, parser *p) { complex_double *v6; complex_double *v7; complex_double xa; int i; int ia; int n; xa.real = x.real; xa.imag = x.imag; n = targ->rows * targ->cols; if (xleft) { for (i ...
static int cmatrix_xy_calc(gretl_matrix *targ, gretl_matrix *src, double complex x, int xleft, int op, parser *p) { int i, n = targ->rows * targ->cols; if (xleft) { for (i = 0; i < n && !p->err; i++) { targ->z[i] = c_xy_calc(x, src->z[i], op, p); } } else { for (i = 0...
cmatrix_xy_calc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double cmatrix_xy_comp(gretl_matrix *m, double x, int op, parser *p) { complex_double v4; int i; int n; double ret; complex_double z; n = m->rows * m->cols; z = (complex_double) * (unsigned long *)&x; ret = 1.0; for (i = 0; i < n && ret == 1.0; ++i) { v4 = c_xy_calc(m->z[i], z, op, p); if (p-...
static double cmatrix_xy_comp(gretl_matrix *m, double x, int op, parser *p) { int i, n = m->rows * m->cols; double complex zcond, z = x; double ret = 1; for (i = 0; i < n && ret == 1; i++) { zcond = c_xy_calc(m->z[i], z, op, p); if (p->err) { ret = NADBL; } else if (zcond == 0) { ret = ...
cmatrix_xy_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void cmd_info_to_loop(LOOPSET *loop, int j, CMD *cmd, int *subst) { loop_command *lcmd; lcmd = &loop->cmds[j]; if ((lcmd->flags & 8) == 0) { if ((cmd->flags & 2) != 0) *subst = 1; else lcmd->flags |= 8u; } if (cmd->ci != 57 && cmd->ci != 31) { lcmd->opt = cmd->opt; if ((cmd->flags...
static inline void cmd_info_to_loop(LOOPSET *loop, int j, CMD *cmd, int *subst) { loop_command *lcmd = &loop->cmds[j]; #if LOOP_DEBUG > 1 fprintf(stderr, "cmd_info_to_loop: j=%d: '%s'\n", j, lcmd->line); #endif if (!loop_cmd_nosub(loop, j)) { if (cmd_subst(cmd)) { ...
cmd_info_to_loop
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int cmprlb_(int *n, int *m, double *x, double *g, double *ws, double *wy, double *sy, double *wt, double *z__, double *r__, double *wa, int *index, double *theta, int *col, int *head, int *nfree, logical *cnstnd, int *info) { double *wya; double *wsa; double *ga; int i__; i...
static int cmprlb_(int *n, int *m, double *x, double *g, double *ws, double *wy, double *sy, double *wt, double *z__, double *r__, double *wa, int *index, double *theta, int *col, int *head, int *nfree, logical *cnstnd, int *info) { int ws_dim1, ws_offset, wy_d...
cmprlb_
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void coded_var_show_opts(SetKey key, PRN *prn) { const char **S; S = libset_option_strings(key); if (S) { pputs(prn, "valid settings:"); while (*S) pprintf(prn, " %s", *S++); pputc(prn, 10); } }
static void coded_var_show_opts(SetKey key, PRN *prn) { const char **S = libset_option_strings(key); if (S != NULL) { pputs(prn, "valid settings:"); while (*S != NULL) { pprintf(prn, " %s", *S); S++; } pputc(prn, '\n'); } }
coded_var_show_opts
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int coeff_index_from_scalar(const char *s) { int err; double x; unsigned long v4; v4 = __readfsqword(0x28u); err = 0; x = gretl_scalar_get_value(s, &err); if (err || fabs(x) > 1.797693134862316e308) return -1; else return (int)x; }
static int coeff_index_from_scalar(const char *s) { int err = 0; double x = gretl_scalar_get_value(s, &err); return (err || na(x)) ? -1 : (int)x; }
coeff_index_from_scalar
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int coeff_is_removable(const int *cands, const MODEL *pmod, DATASET *dset, int i) { int ret; int j; ret = 1; if (cands && *cands > 0) { ret = 0; for (j = 1; j <= *cands; ++j) { if (gretl_model_get_param_number(pmod, dset, dset->varname[cands[j]]) == i) ret...
static int coeff_is_removable(const int *cands, const MODEL *pmod, DATASET *dset, int i) { int ret = 1; if (cands != NULL && cands[0] > 0) { const char *vname; int j, pj; ret = 0; for (j = 1; j <= cands[0]; j++) { vname = dset->varname[cands[j]]; pj = gre...
coeff_is_removable
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double coeff_pval(int ci, double x, int df_0) { double p; p = NAN; if (fabs(x) <= 1.797693134862316e308) { if (!df_0 || ci == 8 || ci == 28 || ci == 30 || ci == 47 || ci == 49 || ci == 52 || ci == 60 || ci == 134 || ci == 70 || ci == 78 || ci == 84 || ci == 99 || ci == 102 || ci == 133 || ci ...
double coeff_pval(int ci, double x, int df) { double p = NADBL; if (!na(x)) { if (df == 0 || ASYMPTOTIC_MODEL(ci)) { p = normal_pvalue_2(x); } else { p = student_pvalue_2(df, x); } } return p; }
coeff_pval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int coint_check_opts(gretlopt opt, int *detcode, gretlopt *adf_opt) { if ((opt & 0x2000) != 0) { if ((opt & 0x80000) != 0 || (opt & 0x20000) != 0) return 38; *detcode = 1; *adf_opt = OPT_N; } else if ((opt & 0x80000) != 0) { if ((opt & 0x20000) != 0) return 38; *detcode = 3; *adf...
static int coint_check_opts(gretlopt opt, int *detcode, gretlopt *adf_opt) { if (opt & OPT_N) { if ((opt & OPT_T) || (opt & OPT_R)) { return E_BADOPT; } else { *detcode = UR_NO_CONST; *adf_opt = OPT_N; } } else if (opt & OPT_T) { if (opt & OPT_R) { return E_BADOPT; } else...
coint_check_opts
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int coint_set_sample(const int *list, int nv, int order, DATASET *dset) { int anymiss; int anymissa; int i; int ia; int t; int ta; for (t = dset->t1; t < dset->t2; ++t) { anymiss = 0; for (i = 1; i <= nv; ++i) { if (fabs(dset->Z[list[i]][t]) > 1.797693134862316e308) { anymiss = 1; ...
static int coint_set_sample(const int *list, int nv, int order, DATASET *dset) { int anymiss; int i, v, t; for (t = dset->t1; t < dset->t2; t++) { anymiss = 0; for (i = 1; i <= nv; i++) { v = list[i]; if (na(dset->Z[v][t])) { anymiss = 1; break; } } if (!anymiss)...
coint_set_sample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void coint_test_header(const GRETL_VAR *v, const DATASET *dset, PRN *prn) { char *v3; int neqns; char *v5; int v6; char *v7; int T; char *v9; char *v10; char *v11; char stobs[16]; char endobs[24]; unsigned long v15; v15 = __readfsqword(0x28u); v3 = gettext("Johansen test"); pprintf(prn, "...
static void coint_test_header(const GRETL_VAR *v, const DATASET *dset, PRN *prn) { char stobs[OBSLEN], endobs[OBSLEN]; pprintf(prn, "\n%s:\n", _("Johansen test")); pprintf(prn, "%s = %d\n", _("Number of equations"), v->neqns); pprintf(prn, "%s = %d\n", _("Lag order"), v->order + 1...
coint_test_header
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int col_present(const gretl_matrix *a, const gretl_matrix *b, int j, int *colno) { int i; int k; int match; int ret; ret = 0; for (k = 0; k < a->cols; ++k) { match = 1; for (i = 0; i < a->rows; ++i) { if (a->val[k * a->rows + i] != b->val[j * b->rows + i]) { match = 0;...
static int col_present(const gretl_matrix *a, const gretl_matrix *b, int j, int *colno) { double xa, xb; int i, k, match; int ret = 0; for (k = 0; k < a->cols; k++) { match = 1; for (i = 0; i < a->rows; i++) { xa = gretl_matrix_get(a, i, k); xb = gretl_matrix_get(b, i...
col_present
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int col_strlen(const Xtab *tab) { int j; int nmax; int n; nmax = 0; for (j = 0; j < tab->cols; ++j) { n = g_utf8_strlen(tab->Sc[j], -1); if (n > nmax) nmax = n; } return nmax; }
static int col_strlen(const Xtab *tab) { int j, n, nmax = 0; for (j = 0; j < tab->cols; j++) { n = g_utf8_strlen(tab->Sc[j], -1); if (n > nmax) { nmax = n; } } return nmax; }
col_strlen
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int colnames_ok_for_series(const char **S, int n) { int i; int j; int err; for (i = 0; i < n; ++i) { err = check_varname(S[i]); if (err || !gretl_is_user_var(S[i])) { for (j = 0; j < n; ++j) { if (j != i && !strcmp(S[j], S[i])) { gretl_errmsg_sprintf("'%s': name is not unique", ...
static int colnames_ok_for_series(const char **S, int n) { int i, j, err = 0; for (i = 0; i < n; i++) { err = check_varname(S[i]); if (!err && gretl_is_user_var(S[i])) { gretl_errmsg_sprintf("'%s': name conflicts with different type", S[i]); err = E_TYPES; } else { for (j = 0; j < n; ...
colnames_ok_for_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int colon_count(const char *p) { int n; n = 0; while (*p && *p != 93) { if (*p == 58) ++n; ++p; } return n; }
static int colon_count(const char *p) { int n = 0; while (*p && *p != ']') { if (*p == ':') { n++; } p++; } return n; }
colon_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int colon_ok(parser *p, char *s, int n) { int i; if ((p->flags & 0x2000) != 0) return 0; if (n != 1 && n != 3) return 0; for (i = 0; i <= n; ++i) { if (((*__ctype_b_loc())[s[i]] & 0x800) == 0) return 0; } return 1; }
static int colon_ok(parser *p, char *s, int n) { int i; if (p->flags & P_SLICING) { #if LDEBUG fprintf(stderr, "colon_ok: doing matrix slice\n"); #endif return 0; } if (n != 1 && n != 3) { return 0; } for (i = 0; i <= n; i++) { if (!isdigit(s[i])) { return 0; } } return 1;...
colon_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *cols_list_from_matrix(const char *s, int *err) { int rows; int i; int n; int *list; gretl_matrix *m; m = get_matrix_by_name(s); if (m) { if (m->cols == 1) { rows = m->rows; } else if (m->rows == 1) { rows = m->cols; } else { rows = 0; } } else { rows = 0; } ...
static int *cols_list_from_matrix(const char *s, int *err) { gretl_matrix *m = get_matrix_by_name(s); int i, n = gretl_vector_get_length(m); int *list = NULL; if (n == 0) { *err = E_DATA; } else { list = gretl_list_new(n); if (list == NULL) { *err = E_ALLOC; } else { for (i = 0; i...
cols_list_from_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *column_indices(int m) { int v2; int i; int j; int k; int *ndx; k = 0; ndx = (int *)malloc(4LL * (m * (m + 1) / 2)); if (!ndx) return 0; for (i = 0; i < m; ++i) { for (j = 0; j <= i; ++j) { v2 = k++; ndx[v2] = j * (j + 1) / 2 + j * (m - j - 1) + i; } } return ndx; }
static int *column_indices(int m) { int i, j, k = 0; int *ndx; ndx = malloc((m * (m + 1)) / 2 * sizeof *ndx); if (ndx == NULL) { return ndx; } for (i = 0; i < m; i++) { for (j = 0; j <= i; j++) { ndx[k++] = j * (j + 1) / 2 + j * (m - j - 1) + i; } } return ndx; }
column_indices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int column_is_timecol(const char *colname) { int i; int n; n = tconv_map.ncols; for (i = 0; i < n; ++i) { if (!strcmp(colname, tconv_map.colnames[i])) return 1; } return 0; }
static int column_is_timecol(const char *colname) { int i, n = tconv_map.ncols; for (i = 0; i < n; i++) { if (!strcmp(colname, tconv_map.colnames[i])) { return 1; } } return 0; }
column_is_timecol
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int *column_widths_from_list(const int *list, const DATASET *dset) { int v2; int i; int ia; int w; int maxw; int *ret; ret = gretl_list_new(*list); maxw = 0; for (i = 1; i <= *list; ++i) { w = series_get_string_width(dset, list[i]) + 1; if (w > maxw) { if (*list > 1 && w > 32) w...
static int *column_widths_from_list(const int *list, const DATASET *dset) { int *ret = gretl_list_new(list[0]); int i, w, maxw = 0; for (i = 1; i <= list[0]; i++) { w = 1 + series_get_string_width(dset, list[i]); if (w > maxw) { if (list[0] > 1 && w > 32) { w = 32; } maxw = w; ...
column_widths_from_list
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int combined_dist_variance(kalman *K, gretl_matrix *D, gretl_matrix *N, gretl_matrix *vv, gretl_matrix *vw, gretl_matrix_block *BX_0, int dkstyle) { int i; gretl_matrix *DC; gretl_matrix *KN; gretl_matrix *KNa; gretl_matrix *Veps; gretl_matrix *NB; gre...
static int combined_dist_variance(kalman *K, gretl_matrix *D, gretl_matrix *N, gretl_matrix *vv, gretl_matrix *vw, gretl_matrix_block *BX, int dkstyle) { gretl_matrix *DC, *KN, *Veps, *NB, *NK; DC = gretl_matrix_block_get_matrix(BX, 0); KN = gre...
combined_dist_variance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void combo_2(gretl_matrix *targ, double w1, const gretl_matrix *m1, double w2, const gretl_matrix *m2) { int rows; int i; if (targ) { if (targ->cols == 1) { rows = targ->rows; } else if (targ->rows == 1) { rows = targ->cols; } else { rows = 0; } } else { rows ...
static void combo_2(gretl_matrix *targ, double w1, const gretl_matrix *m1, double w2, const gretl_matrix *m2) { int i, n = gretl_vector_get_length(targ); for (i = 0; i < n; i++) { targ->val[i] = w1 * m1->val[i] + w2 * m2->val[i]; } }
combo_2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int comfac_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { size_t v5; char *v6; char *v7; char *v8; MODEL v9; PRN *prna; gretlopt opta; DATASET *dseta; MODEL *pmoda; int clearit; int i; int k; int t; int err; int save_t1; int save_t2; int v; int nadd; int src; int lag;...
int comfac_test(MODEL *pmod, DATASET *dset, gretlopt opt, PRN *prn) { MODEL cmod; int save_t1 = dset->t1; int save_t2 = dset->t2; int v = dset->v; int *biglist = NULL; int clearit = 0; int nadd, i, k, t; int err; if (pmod->ci != AR1 || (pmod->opt & OPT_P)) { return E_NOTIMP; } err = list_me...
comfac_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int comma_count(const char *s) { _BOOL4 quoted; int braced; int nc; quoted = 0; braced = 0; nc = 0; while (*s) { if (!quoted) { if (*s == 123) { ++braced; } else if (*s == 125) { --braced; } } if (*s == 34) { quoted = !quoted; } else if (!quoted && ...
static int comma_count(const char *s) { int quoted = 0; int braced = 0; int nc = 0; while (*s) { if (!quoted) { if (*s == '{') { braced++; } else if (*s == '}') { braced--; } } if (*s == '"') { quoted = !quoted; } else if (!quoted && !braced && *s == ',')...
comma_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int command_is_silent(const CMD *cmd, const char *line) { if (!cmd) return 0; if (cmd->ci == 46 || cmd->ci == 101 || cmd->ci == 100 && strchr(line, 34)) return 1; if (!strcmp(line, "set echo off") || !strcmp(line, "set verbose off") || !strcmp(line, "flush")) return 1; if (!strncmp(line, "quit...
static int command_is_silent(const CMD *cmd, const char *line) { if (cmd == NULL) { return 0; } if (cmd->ci == FUNCERR || cmd->ci == PRINTF || (cmd->ci == PRINT && strchr(line, '"'))) { return 1; } if (!strcmp(line, "set echo off") || !strcmp(line, "set verbose off") || !strcmp(line, "fl...
command_is_silent
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int command_ok_for_model(int test_ci, gretlopt opt, const MODEL *pmod) { _BOOL4 v4; int mci; _BOOL4 ok; int between; int regular_panel; mci = pmod->ci; ok = 1; if (mci == 77) mci = 85; if (mci == 85 && test_ci == 40) return 1; if (mci == 10) return test_ci == 110; if (test_ci == 11) ...
int command_ok_for_model(int test_ci, gretlopt opt, const MODEL *pmod) { int between = 0; int regular_panel = 0; int mci = pmod->ci; int ok = 1; if (mci == MIDASREG) { mci = NLS; } if (mci == NLS && test_ci == FCAST) { return 1; } if (mci == BIPROBIT) { return test_ci == RESTRICT; }...
command_ok_for_model
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int common_curl_setup(CURL **pcurl) { char *v2; int err; err = gretl_curl_toggle(1); if (err) return err; *pcurl = (CURL *)curl_easy_init(); if (*pcurl) { v2 = getenv("GRETL_WWW_VERBOSE"); curl_easy_setopt(*pcurl, 41, v2 != 0); } else { gretl_errmsg_set("curl_easy_init failed"); retur...
static int common_curl_setup(CURL **pcurl) { int err; err = gretl_curl_toggle(1); if (err) { return err; } *pcurl = curl_easy_init(); if (*pcurl == NULL) { gretl_errmsg_set("curl_easy_init failed"); err = 1; } else { #if WDEBUG curl_easy_setopt(*pcurl, CURLOPT_VERBOSE, 1); #else cur...
common_curl_setup
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void commute_selectors(matrix_subspec *spec) { spec->rtype = spec->ltype; spec->rsel.m = spec->lsel.m; memset(&spec->lsel, 0, sizeof(spec->lsel)); spec->ltype = SEL_ALL; }
static void commute_selectors(matrix_subspec *spec) { spec->rtype = spec->ltype; spec->rsel = spec->lsel; memset(&spec->lsel, 0, sizeof spec->lsel); spec->ltype = SEL_ALL; }
commute_selectors
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
DATASET *compact_daily_spread(const DATASET *dset, int newpd, int *nv, int *err) { double date_x; int startyr; int startper; int endyr; int endper; int startday; int i; int j; int k; int t; int oldpd; int compfac; int T; int v; int p; const char *period; D...
static DATASET *compact_daily_spread(const DATASET *dset, int newpd, int *nv, int *err) { const char *periods[] = {"month", "quarter"}; const char *period; DATASET *cset = NULL; char label[MAXLABEL]; int oldpd = dset->pd; int compfac; int v, i, j, k, t, T; int starty...
compact_daily_spread
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compact_data_set(DATASET *dset, int newpd, CompactMethod default_method, int monstart, int repday) { char *v6; int newn; int startmaj; int startmin; int endmaj; int endmin; int any_eop; int all_same; int min_startskip; int oldn; int compfac; int i; int err; int minor...
int compact_data_set(DATASET *dset, int newpd, CompactMethod default_method, int monstart, int repday) { int newn, oldn = dset->n, oldpd = dset->pd; int compfac; int startmaj, startmin; int endmaj, endmin; int any_eop, all_same; int min_startskip = 0; char stobs[OBSLEN]; int i, err ...
compact_data_set
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compact_data_set_wrapper(const char *s, DATASET *dset, int k) { const char *sa; CompactMethod method; method = COMPACT_AVG; if (s) { sa = &s[strspn(s, " ")]; if (!strcmp(sa, "sum")) { method = COMPACT_SUM; } else if (!strcmp(sa, "first") || !strcmp(sa, "sop")) { method = COMPACT_SOP...
static int compact_data_set_wrapper(const char *s, DATASET *dset, int k) { CompactMethod method = COMPACT_AVG; if (s != NULL) { s += strspn(s, " "); if (!strcmp(s, "sum")) { method = COMPACT_SUM; } else if (!strcmp(s, "first") || !strcmp(s, "sop")) { method = COMPACT_SOP; } else if (!st...
compact_data_set_wrapper
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
DATASET *compact_data_spread(const DATASET *dset, int newpd, int startmaj, int startmin, int endmaj, int endmin, int *nv, int *err) { const char *v9; int i; int j; int ja; int jb; int k; int t; int T; int q0; int qT; int offset; int s; ...
static DATASET *compact_data_spread(const DATASET *dset, int newpd, int startmaj, int startmin, int endmaj, int endmin, int *nv, int *err) { const char *subper[] = {"month", "quarter"}; const char *period[] = {"year", "quarter"}; const char *...
compact_data_spread
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *compact_db_series(const double *src, int pd, int *pnobs, char *stobs, int target_pd, CompactMethod method) { float v6; int y0; int y0a; int skip; int q0; int compfac; int p0; int p0a; int goodobs; skip = 0; compfac = pd / target_pd; if (target_pd == 1) { y0...
static double *compact_db_series(const double *src, int pd, int *pnobs, char *stobs, int target_pd, CompactMethod method) { int p0, y0, endskip, goodobs; int skip = 0, compfac = pd / target_pd; double *x; if (target_pd == 1) { y0 = atoi(sto...
compact_db_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
CompactMethod compact_method_from_option(int *err) { char *v1; CompactMethod method; const char *s; s = get_optval_string(22, OPT_C); method = COMPACT_NONE; if (s && *s) { if (!strcmp(s, "average")) { return COMPACT_AVG; } else if (!strcmp(s, "sum")) { return COMPACT_SUM; } else if ...
static CompactMethod compact_method_from_option(int *err) { const char *s = get_optval_string(DATA, OPT_C); CompactMethod method = COMPACT_NONE; if (s == NULL || *s == '\0') { *err = E_PARSE; } else if (!strcmp(s, "average")) { method = COMPACT_AVG; } else if (!strcmp(s, "sum")) { method = COMPAC...
compact_method_from_option
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *compact_method_to_string(int method) { switch (method) { case 1: return "COMPACT_SUM"; case 2: return "COMPACT_AVG"; case 3: return "COMPACT_SOP"; case 4: return "COMPACT_EOP"; } return "COMPACT_NONE"; }
static char *compact_method_to_string(int method) { if (method == COMPACT_SUM) return "COMPACT_SUM"; else if (method == COMPACT_AVG) return "COMPACT_AVG"; else if (method == COMPACT_SOP) return "COMPACT_SOP"; else if (method == COMPACT_EOP) return "COMPACT_EOP"; else return "COMPACT_NONE";...
compact_method_to_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *compact_series(const DATASET *dset, int i, int oldn, int startskip, int min_startskip, int compfac, CompactMethod method) { _BOOL4 v7; int t; int ta; int idx; int j; int den; int n_ok; int lead; int to_weekly; const double *src; double *x; src = dset->Z[i]; lead...
static double *compact_series(const DATASET *dset, int i, int oldn, int startskip, int min_startskip, int compfac, CompactMethod method) { const double *src = dset->Z[i]; double *x; int lead = startskip - min_startskip; int to_weekly = (compfac >= 5 &&...
compact_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compact_spread_pd_check(int high, int low) { if ((low == 12 || low == 4) && (high == 5 || high == 6 || high == 7)) return 0; if (high == 12 && low == 1 || high == 12 && low == 4 || high == 4 && low == 1) return 0; gretl_errmsg_set("Unsupported conversion"); return 2; }
static int compact_spread_pd_check(int high, int low) { if ((low == 12 || low == 4) && (high == 5 || high == 6 || high == 7)) { return 0; } if (!(high == 12 && low == 1) && !(high == 12 && low == 4) && !(high == 4 && low == 1)) { gretl_errmsg_set("Unsupported conversion"); return E_DATA; } ...
compact_spread_pd_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compact_string_to_int(const char *str) { if (!strcmp(str, "COMPACT_SUM")) return 1; if (!strcmp(str, "COMPACT_AVG")) return 2; if (!strcmp(str, "COMPACT_SOP")) return 3; if (!strcmp(str, "COMPACT_EOP")) return 4; return 0; }
static int compact_string_to_int(const char *str) { if (!strcmp(str, "COMPACT_SUM")) return COMPACT_SUM; else if (!strcmp(str, "COMPACT_AVG")) return COMPACT_AVG; else if (!strcmp(str, "COMPACT_SOP")) return COMPACT_SOP; else if (!strcmp(str, "COMPACT_EOP")) return COMPACT_EOP; else return...
compact_string_to_int
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *companionize(const gretl_matrix *A, int *err) { int i; int j; int m; int n; long d; gretl_matrix *ret; m = A->rows; n = A->cols; d = (unsigned int)(n - A->rows); if ((int)d >= 0) { if ((_DWORD)d) { ret = gretl_zero_matrix_new(n, n); if (ret) { for (j = 0; j < n...
static gretl_matrix *companionize(const gretl_matrix *A, int *err) { gretl_matrix *ret = NULL; int m = A->rows, n = A->cols; int d = n - m; if (d < 0) { *err = E_INVARG; return NULL; } if (d == 0) { ret = gretl_matrix_copy(A); } else { double aij; int i, j; ret = gretl_zero_mat...
companionize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_floats(const void *a, const void *b) { return (__PAIR64__(*(float *)a > *(float *)b, *(_DWORD *)a) - *(unsigned int *)b) >> 32; }
static int compare_floats(const void *a, const void *b) { const float *fa = (const float *)a; const float *fb = (const float *)b; return (*fa > *fb) - (*fa < *fb); }
compare_floats
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_fs(const void *a, const void *b) { return (*((double *)a + 1) > *((double *)b + 1)) - (*((double *)b + 1) > *((double *)a + 1)); }
static int compare_fs(const void *a, const void *b) { const struct fsorter *fa = a; const struct fsorter *fb = b; return (fa->y > fb->y) - (fa->y < fb->y); }
compare_fs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_jr_rows(const void *a, const void *b) { int ret; ret = (*((double *)a + 1) > *((double *)b + 1)) - (*((double *)b + 1) > *((double *)a + 1)); if (!ret && *(int *)a > 1) ret = (*((double *)a + 2) > *((double *)b + 2)) - (*((double *)b + 2) > *((double *)a + 2)); if (!ret) { ...
static int compare_jr_rows(const void *a, const void *b) { const jr_row *ra = a; const jr_row *rb = b; int ret; ret = (ra->keyval > rb->keyval) - (ra->keyval < rb->keyval); if (ret == 0 && ra->n_keys > 1) { ret = (ra->keyval2 > rb->keyval2) - (ra->keyval2 < rb->keyval2); } if (ret == 0) { ret ...
compare_jr_rows
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_lexvals(const void *a, const void *b) { long v2; long v3; long v4; return g_utf8_collate(*(_QWORD *)a, *(_QWORD *)b, *(_QWORD *)b, v2, v3, v4, b, a, a, b); }
static int compare_lexvals(const void *a, const void *b) { const lexval *lva = (const lexval *)a; const lexval *lvb = (const lexval *)b; return g_utf8_collate(lva->s, lvb->s); }
compare_lexvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_obs(const void *a, const void *b) { int ret; ret = (*((double *)a + 1) > *((double *)b + 1)) - (*((double *)b + 1) > *((double *)a + 1)); if (!ret) ret = (*((double *)a + 2) > *((double *)b + 2)) - (*((double *)b + 2) > *((double *)a + 2)); if (!ret) { *(_DWORD *)b = -1; ...
static int compare_obs(const void *a, const void *b) { s_point *pa = (s_point *)a; s_point *pb = (s_point *)b; int ret; ret = (pa->val1 > pb->val1) - (pa->val1 < pb->val1); if (ret == 0) { ret = (pa->val2 > pb->val2) - (pa->val2 < pb->val2); } if (ret == 0) { pa->obsnum = pb->obsnum = -1; } ...
compare_obs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_pairs_x(const void *a, const void *b) { int ret; ret = (*(double *)a > *(double *)b) - (*(double *)b > *(double *)a); if (!ret) return (*((double *)a + 1) > *((double *)b + 1)) - (*((double *)b + 1) > *((double *)a + 1)); return ret; }
static int compare_pairs_x(const void *a, const void *b) { const struct xy_pair *pa = a; const struct xy_pair *pb = b; int ret; ret = (pa->x > pb->x) - (pa->x < pb->x); if (ret == 0) { ret = (pa->y > pb->y) - (pa->y < pb->y); } return ret; }
compare_pairs_x
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_pairs_y(const void *a, const void *b) { return (*((double *)a + 1) > *((double *)b + 1)) - (*((double *)b + 1) > *((double *)a + 1)); }
static int compare_pairs_y(const void *a, const void *b) { const struct xy_pair *pa = a; const struct xy_pair *pb = b; return (pa->y > pb->y) - (pa->y < pb->y); }
compare_pairs_y
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_ranges(const DATASET *targ, const DATASET *src, int newvars, int *offset, int *yrspecial, int *err) { char *v7; int addobs; int range_err; int ed0; int sd1; int ed1; ed0 = dateton(targ->endobs, targ); addobs = -1; range_err = 0; if (!targ || targ->structure || !src ||...
static int compare_ranges(const DATASET *targ, const DATASET *src, int newvars, int *offset, int *yrspecial, int *err) { int ed0 = dateton(targ->endobs, targ); int sd1, ed1, addobs = -1; int range_err = 0; if (dataset_is_cross_section(targ) && dataset_is_cross_section(src) && !(...
compare_ranges
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_strvals(const void *a, const void *b) { return strcmp(*(const char **)a, *(const char **)b); }
int compare_strvals(const void *a, const void *b) { const struct strval_sorter *sa = a; const struct strval_sorter *sb = b; return strcmp(sa->s, sb->s); }
compare_strvals
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_vals_down(const void *a, const void *b) { int i; int ret; ret = 0; for (i = 0; i < *((_DWORD *)a + 1) && !ret; ++i) ret = (*(double *)(*((_QWORD *)b + 1) + 8LL * i) > *(double *)(*((_QWORD *)a + 1) + 8LL * i)) - (*(double *)(*((_QWORD *)a + 1) + 8LL * i) > *(doub...
static int compare_vals_down(const void *a, const void *b) { const spoint_t *pa = (const spoint_t *)a; const spoint_t *pb = (const spoint_t *)b; int i, naa, nab, ret = 0; for (i = 0; i < pa->nvals && !ret; i++) { naa = isnan(pa->vals[i]); nab = isnan(pb->vals[i]); if (naa || nab) { if (!naa) ...
compare_vals_down
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_vals_up(const void *a, const void *b) { int i; int ret; ret = 0; for (i = 0; i < *((_DWORD *)a + 1) && !ret; ++i) ret = (*(double *)(*((_QWORD *)a + 1) + 8LL * i) > *(double *)(*((_QWORD *)b + 1) + 8LL * i)) - (*(double *)(*((_QWORD *)b + 1) + 8LL * i) > *(double...
static int compare_vals_up(const void *a, const void *b) { const spoint_t *pa = (const spoint_t *)a; const spoint_t *pb = (const spoint_t *)b; int i, naa, nab, ret = 0; for (i = 0; i < pa->nvals && !ret; i++) { naa = isnan(pa->vals[i]); nab = isnan(pb->vals[i]); if (naa || nab) { if (!naa) { ...
compare_vals_up
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_values(const void *a, const void *b) { int ret; ret = unstable_comp(*(double *)a, *(double *)b); if (!ret) { if ((_BYTE *)a - (_BYTE *)b <= 0) return -1; else return 1; } return ret; }
static int compare_values(const void *a, const void *b) { const double *da = (const double *)a; const double *db = (const double *)b; int ret = unstable_comp(*da, *db); if (ret == 0) { ret = a - b > 0 ? 1 : -1; } return ret; }
compare_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_wgtord_rows(const void *a, const void *b) { return (**(double **)a > **(double **)b) - (**(double **)b > **(double **)a); }
static int compare_wgtord_rows(const void *a, const void *b) { const double **da = (const double **)a; const double **db = (const double **)b; return (da[0][0] > db[0][0]) - (da[0][0] < db[0][0]); }
compare_wgtord_rows
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int compare_xtab_rows(const void *a, const void *b) { int ret; ret = (int)(**(double **)a - **(double **)b); if (!ret) return (int)(*(double *)(*(_QWORD *)a + 8LL) - *(double *)(*(_QWORD *)b + 8LL)); return ret; }
int compare_xtab_rows(const void *a, const void *b) { const double **da = (const double **)a; const double **db = (const double **)b; int ret; ret = da[0][0] - db[0][0]; if (ret == 0) { ret = da[0][1] - db[0][1]; } return ret; }
compare_xtab_rows
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void compat_compose_vcv_info(MODEL *pmod) { int ival; VCVInfo *pvi; long vi; long vi_8; double vi_16; vi = 0; vi_8 = 0; vi_16 = NAN; if (gretl_model_get_int(pmod, "hc")) { LODWORD(vi) = 1; HIDWORD(vi) = gretl_model_get_int(pmod, "hc_version"); } else { ival = gretl_model_get_int(pmod, "...
static void compat_compose_vcv_info(MODEL *pmod) { VCVInfo vi = {0, 0, 0, 0, NADBL}; int ival; if (gretl_model_get_int(pmod, "hc")) { vi.vmaj = VCV_HC; vi.vmin = gretl_model_get_int(pmod, "hc_version"); } else if ((ival = gretl_model_get_int(pmod, "ml_vcv"))) { vi.vmaj = VCV_ML; vi.vmin = ival;...
compat_compose_vcv_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *complex_from_real(const gretl_matrix *A, int *err) { int i; int n; gretl_matrix *C; if (A && A->rows && A->cols) { C = gretl_cmatrix_new0(A->rows, A->cols); if (C) { n = A->rows * A->cols; for (i = 0; i < n; ++i) C->z[i] = (complex_double) * (unsigned long *)&A->val[i]...
static gretl_matrix *complex_from_real(const gretl_matrix *A, int *err) { gretl_matrix *C = NULL; if (gretl_is_null_matrix(A)) { *err = E_DATA; return NULL; } C = gretl_cmatrix_new0(A->rows, A->cols); if (C == NULL) { *err = E_ALLOC; } else { int i, n = A->rows * A->cols; for (i = 0;...
complex_from_real
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0