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 normal_cdf_comp(double x) { double p; double pa; if (x <= 0.0) { pa = ndtr(x); if (get_cephes_errno()) return NAN; else return 1.0 - pa; } else { p = ndtr(COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL)); if (get_cephes_errno()) return NAN; } return p; }
double normal_cdf_comp(double x) { double p; if (x > 0) { p = ndtr(-x); if (get_cephes_errno()) { p = NADBL; } } else { p = ndtr(x); if (get_cephes_errno()) { p = NADBL; } else { p = 1 - p; } } return p; }
normal_cdf_comp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double normal_cdf_inverse(double x) { double y; y = ndtri(x); if (get_cephes_errno()) return NAN; return y; }
double normal_cdf_inverse(double x) { double y = ndtri(x); if (get_cephes_errno()) { y = NADBL; } return y; }
normal_cdf_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double normal_critval(double a) { double z; if (a <= 0.1) z = -ndtri(a); else z = ndtri(1.0 - a); if (get_cephes_errno()) return NAN; return z; }
double normal_critval(double a) { double z; if (a > 0.10) { z = ndtri(1.0 - a); } else { z = -ndtri(a); } if (get_cephes_errno()) { z = NADBL; } return z; }
normal_critval
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double normal_pdf(double x) { return exp(-0.5 * x * x) / 2.506628274631001; }
double normal_pdf(double x) { return exp(-0.5 * x * x) / SQRT_2_PI; }
normal_pdf
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int normal_pdf_array(double *x, int n) { int i; for (i = 0; i < n; ++i) { if (fabs(x[i]) <= 1.797693134862316e308) { *__errno_location() = 0; x[i] = exp(x[i] * -0.5 * x[i]) * 0.3989422804014326; if (*__errno_location()) x[i] = NAN; } } *__errno_location() = 0; return 0; }
static int normal_pdf_array(double *x, int n) { double s = 1.0 / SQRT_2_PI; int i; for (i = 0; i < n; i++) { if (!na(x[i])) { errno = 0; x[i] = s * exp(-0.5 * x[i] * x[i]); if (errno) { x[i] = NADBL; } } } errno = 0; return 0; }
normal_pdf_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double normal_pvalue_1(double x) { double p; p = ndtr(x); if (get_cephes_errno()) return NAN; else return 1.0 - p; }
double normal_pvalue_1(double x) { double p = ndtr(x); if (get_cephes_errno()) { p = NADBL; } else { p = 1 - p; } return p; }
normal_pvalue_1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double normal_pvalue_2(double x) { double v1; if (x >= 0.0) v1 = ndtr(COERCE_DOUBLE(*(_QWORD *)&x ^ 0x8000000000000000LL)); else v1 = ndtr(x); return v1 + v1; }
double normal_pvalue_2(double x) { double p = (x < 0) ? ndtr(x) : ndtr(-x); return 2 * p; }
normal_pvalue_2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int normal_qq_plot(const int *list, const DATASET *dset, gretlopt opt) { char *v3; char *v4; const char *graph_name; char *v7; char *v8; int n; int err; GptFlags flags; int zscores; int i; int v; double ym; double ys; double qx; gchar *title; double *y; FILE *fp; double p; double q...
static int normal_qq_plot(const int *list, const DATASET *dset, gretlopt opt) { GptFlags flags = 0; gchar *title = NULL; int zscores = 0; double ym = 0, ys = 1; double p, qx, qy; double *y = NULL; FILE *fp = NULL; int v = list[1]; int i, n = 20; int err = 0; y = gretl_sorted_series(v, dset, OPT_N...
normal_qq_plot
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void normalize_nullspace(gretl_matrix *M) { int i; int ia; int k; double y; double x; if (M->cols == 1) { x = M->val[max_abs_index(M, 0)]; for (i = 0; i < M->rows; ++i) { y = M->val[i] / x; if (fabs(y) < 1.0e-16) y = 0.0; M->val[i] = y; } } k = M->rows * M->cols; ...
static void normalize_nullspace(gretl_matrix *M) { int i, j, k, idx; double x, y; if (M->cols == 1) { j = 0; idx = max_abs_index(M, j); x = gretl_matrix_get(M, idx, j); for (i = 0; i < M->rows; i++) { y = gretl_matrix_get(M, i, j); y /= x; if (fabs(y) < NSMIN) y = 0.0; ...
normalize_nullspace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int normalize_uid_tid(const double *tid, int T, const DATASET *dset, int uv, int tv, int **pnuid, int **pntid) { int ui; int tmin; int i; int t; int *nuid; int *ntid; nuid = (int *)malloc(4LL * dset->n); ntid = (int *)malloc(4LL * dset->n); if (nuid && ntid) { tmin = 0; ...
static int normalize_uid_tid(const double *tid, int T, const DATASET *dset, int uv, int tv, int **pnuid, int **pntid) { int *nuid = NULL; int *ntid = NULL; int ui, tmin; int i, t; nuid = malloc(dset->n * sizeof *nuid); ntid = malloc(dset->n * sizeof *ntid); if (nuid == NULL |...
normalize_uid_tid
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int not_mpi_duplicate() { return 0; }
static int not_mpi_duplicate(void) { #ifdef HAVE_MPI return gretl_mpi_rank() < 1; #else return 0; #endif }
not_mpi_duplicate
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *npcorr_node(NODE *l, NODE *m, NODE *r, parser *p) { int v4; int v5; int v6; int v7; gretl_matrix *v8; gretlopt opt; int n1; int n2; const double *x; const double *y; NODE *ret; ret = get_aux_node(p, 57, 0, 2); if (ret && (p->flags & 2) != 0) { x = 0; y = 0; opt = OPT_NONE; ...
static NODE *npcorr_node(NODE *l, NODE *m, NODE *r, parser *p) { NODE *ret = aux_matrix_node(p); if (ret != NULL && starting(p)) { const double *x = NULL, *y = NULL; gretlopt opt = OPT_NONE; int n1 = 0, n2 = 0; if (l->t == SERIES) { x = l->v.xvec + p->dset->t1; n1 = sample_size(p->dset...
npcorr_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *null_OLS(const gretl_matrix *Y, gretl_matrix *U, gretl_matrix *V, int *err) { gretl_matrix *B; gretl_matrix *Ycpy; gretl_matrix *nullV; B = 0; if (U) { Ycpy = gretl_matrix_copy(Y); if (Ycpy) { gretl_matrix_replace_content(U, Ycpy); gretl_matrix_free(Yc...
static gretl_matrix *null_OLS(const gretl_matrix *Y, gretl_matrix *U, gretl_matrix *V, int *err) { gretl_matrix *B = NULL; if (U != NULL) { gretl_matrix *Ycpy; Ycpy = gretl_matrix_copy(Y); if (Ycpy == NULL) { *err = E_ALLOC; } else { gretl_matrix_replace_...
null_OLS
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *nullmat_multiply(const gretl_matrix *A, const gretl_matrix *B, int op, int *err) { int rows; int cols; int Lc; int Cc; gretl_matrix *C; C = 0; if (!*(_QWORD *)&A->rows && !B->rows && !B->cols) return gretl_null_matrix_new(); if (op == 21) rows = A->r...
static gretl_matrix *nullmat_multiply(const gretl_matrix *A, const gretl_matrix *B, int op, int *err) { gretl_matrix *C = NULL; if (A->rows == 0 && A->cols == 0 && B->rows == 0 && B->cols == 0) { C = gretl_null_matrix_new(); } else { int Lc = op == B_TRMUL ? A->rows ...
nullmat_multiply
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void num_threads_init(int blas_type) { unsigned int nc; nc = gretl_n_physical_cores(); omp_n_threads = nc; omp_set_num_threads(nc); if (blas_type == 3) blas_set_num_threads(nc); if (blas_type > 1) set_blas_mnk_min(90000); }
void num_threads_init(int blas_type) { int nc = gretl_n_physical_cores(); #if defined(_OPENMP) omp_n_threads = nc; omp_set_num_threads(nc); #endif if (blas_type == BLAS_OPENBLAS) { blas_set_num_threads(nc); } if (blas_type > BLAS_NETLIB) { set_blas_mnk_min(90000); } }
num_threads_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int numdate_to_string(char *targ, double x) { if (fabs(x) > 1.797693134862316e308) return 34; sprintf(targ, "%.16g", x); return 0; }
static int numdate_to_string(char *targ, double x) { if (na(x)) { return E_MISSDATA; } else { sprintf(targ, "%.16g", x); return 0; } }
numdate_to_string
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int numeric_gradient(double *b, double *g, int n, BFGS_CRIT_FUNC func, void *data) { int redo; int err; unsigned long v11; v11 = __readfsqword(0x28u); err = 0; if (libset_get_bool(BFGS_RSTEP)) return richardson_gradient(b, g, n, func, data); redo = 0; err = simple_gradient(b, g...
int numeric_gradient(double *b, double *g, int n, BFGS_CRIT_FUNC func, void *data) { int err = 0; if (libset_get_bool(BFGS_RSTEP)) { err = richardson_gradient(b, g, n, func, data); } else { int redo = 0; err = simple_gradient(b, g, n, func, data, &redo); if (redo) { er...
numeric_gradient
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *numeric_jacobian_or_hessian(NODE *l, NODE *m, NODE *r, int f, parser *p) { gretl_matrix *v6; NODE *ret; double eps; char *s; if ((p->flags & 2) == 0) return get_aux_node(p, 57, 0, 2); s = m->v.str; eps = 0.0; if (!is_function_call(s)) { p->err = 37; return 0; } ret = get_aux_node(...
static NODE *numeric_jacobian_or_hessian(NODE *l, NODE *m, NODE *r, int f, parser *p) { NODE *ret = NULL; if (starting(p)) { const char *s = m->v.str; double eps = 0.0; if (!is_function_call(s)) { p->err = E_TYPES; return NULL; } ret = aux_...
numeric_jacobian_or_hessian
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int numerical_hessian(double *b, gretl_matrix *H, BFGS_CRIT_FUNC func, void *data, int neg, double d) { int rows; double v8; double v9; double v10; double v11; double v12; char *v13; double da; int i; int ia; int ib; int ic; int j; int ja; int k; int ka; int kb; ...
int numerical_hessian(double *b, gretl_matrix *H, BFGS_CRIT_FUNC func, void *data, int neg, double d) { double Dx[RSTEPS]; double Hx[RSTEPS]; double *wspace; double *h0, *h, *Hd, *D; int r = RSTEPS; double dsmall = 0.0001; double ztol, eps = 1e-4; double v = 2.0; double f0, f1, f...
numerical_hessian
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *numerical_hessian_inverse(const double *b, int n, BFGS_CRIT_FUNC func, void *data, double d, int *err) { char *v6; gretl_matrix *H; H = gretl_zero_matrix_new(n, n); if (H) *err = numerical_hessian((double *)b, H, ...
gretl_matrix *numerical_hessian_inverse(const double *b, int n, BFGS_CRIT_FUNC func, void *data, double d, int *err) { gretl_matrix *H = gretl_zero_matrix_new(n, n); if (H == NULL) { *err = E_ALLOC; } else { *err = numerical_...
numerical_hessian_inverse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *numerical_score_matrix(double *b, int T, int k, BFGS_LLT_FUNC lltfun, void *data, int *err) { int i; int t; int ta; gretl_matrix *G; double bi0; const double *x; const double *xa; G = gretl_zero_matrix_new(T, k); ...
gretl_matrix *numerical_score_matrix(double *b, int T, int k, BFGS_LLT_FUNC lltfun, void *data, int *err) { double h = 1e-8; #if ALT_OPG double d = 1.0e-4; #endif gretl_matrix *G; const double *x; double bi0, x0; int i, t; G = gret...
numerical_score_matrix
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double nw_kernel(double x) { return exp(x * x * -0.5); }
static double nw_kernel(double x) { double ret, x2 = x * x; #if 0 ret = exp(-0.5*x2)/SQRT_2_PI; #else ret = exp(-0.5 * x2); #endif return ret; }
nw_kernel
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int nw_prewhiten(gretl_matrix *H, gretl_matrix **pA) { int t; int ta; int j; int ja; int err; int T; unsigned int k; gretl_matrix *H0; gretl_matrix *H1; gretl_matrix *A; gretl_matrix *U; gretl_matrix_block *B; double h; unsigned long v16; v16 = __readfsqword(0x28u); T = H->rows; k = H...
static int nw_prewhiten(gretl_matrix *H, gretl_matrix **pA) { gretl_matrix *H0, *H1, *A, *U; gretl_matrix_block *B; int T = H->rows; int k = H->cols; double h; int t, j; int err = 0; B = gretl_matrix_block_new(&H0, T - 1, k, &H1, T - 1, k, &A, k, k, &U, T - 1, k, NULL); i...
nw_prewhiten
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int object_is_const(const char *name, int vnum) { int ret; int i; fncall *call; fn_param *params; call = current_function_call(); ret = 0; if (call) { if (name) { params = call->fun->params; for (i = 0; i < call->fun->n_params; ++i) { if (!strcmp(name, params[i].name)) { ...
int object_is_const(const char *name, int vnum) { fncall *call = current_function_call(); int ret = 0; if (call != NULL) { if (name != NULL) { fn_param *params = call->fun->params; int i; for (i = 0; i < call->fun->n_params; i++) { if (!strcmp(name, params[i].name)) { ret...
object_is_const
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int object_is_function_arg(const char *name) { int i; fncall *call; fn_param *params; call = current_function_call(); if (call) { params = call->fun->params; for (i = 0; i < call->fun->n_params; ++i) { if (!strcmp(name, params[i].name)) return 1; } } return 0; }
int object_is_function_arg(const char *name) { fncall *call = current_function_call(); if (call != NULL) { fn_param *params = call->fun->params; int i; for (i = 0; i < call->fun->n_params; i++) { if (!strcmp(name, params[i].name)) { return 1; } } } return 0; }
object_is_function_arg
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int object_is_on_stack(const void *ptr) { return object_stack_index(ptr) >= 0; }
int object_is_on_stack(const void *ptr) { return (object_stack_index(ptr) >= 0); }
object_is_on_stack
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int object_stack_index(const void *p) { int i; int ret; ret = -1; for (i = 0; i < n_obj; ++i) { if (p == ostack[i].ptr) return i; } return ret; }
static int object_stack_index(const void *p) { int i, ret = -1; for (i = 0; i < n_obj; i++) { if (p == ostack[i].ptr) { ret = i; break; } } #if ODEBUG if (ret >= 0) { fprintf(stderr, "object_on_stack: object at %p already stacked " "at pos %d\n", p, ...
object_stack_index
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *object_status(NODE *n, NODE *func, parser *p) { long v3; GretlType type; int f; int t; int v; NODE *ret; char *s; gretl_matrix *m; ret = get_aux_node(p, 54, 0, 0); f = func->t; if (ret && (p->flags & 2) != 0) { s = n->v.str; ret->v.str = (char *)0x7FF8000000000000LL; switch (f) ...
static NODE *object_status(NODE *n, NODE *func, parser *p) { NODE *ret = aux_scalar_node(p); int f = func->t; if (ret != NULL && starting(p)) { const char *s = n->v.str; ret->v.xval = NADBL; if (f == F_ISCMPLX) { gretl_matrix *m = get_matrix_by_name(s); if (m != NULL) { ret->v....
object_status
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
GretlType object_var_type(int idx, const char *oname, int *needs_data) { GretlType vtype; vtype = GRETL_TYPE_NONE; *needs_data = 0; if (idx <= 34 || idx > 52) { if (idx <= 53 || idx > 60) { if (idx <= 61 || idx > 85) { if (idx <= 86 || idx > 90) { if (idx <= 91 || idx > 93) { ...
static GretlType object_var_type(int idx, const char *oname, int *needs_data) { GretlType vtype = GRETL_TYPE_NONE; *needs_data = 0; if (model_data_scalar(idx)) { vtype = GRETL_TYPE_DOUBLE; } else if (model_data_series(idx)) { vtype = GRETL_TYPE_SERIES; } else if (model_data_matrix(idx)) { vtype ...
object_var_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int obs_diff_ok(const MODEL *m_old, const MODEL *m_new) { int ndiff; ndiff = m_new->nobs - m_old->nobs; if (m_old->ci == 6) return 0; return ndiff > 0 && ndiff == m_new->t2 - m_new->t1 - (m_old->t2 - m_old->t1); }
static int obs_diff_ok(const MODEL *m_old, const MODEL *m_new) { int tdiff, ndiff = m_new->nobs - m_old->nobs; if (m_old->ci == AR1) { return 0; } if (ndiff > 0) { tdiff = (m_new->t2 - m_new->t1) - (m_old->t2 - m_old->t1); if (ndiff == tdiff) { return 1; } } return 0; }
obs_diff_ok
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *obs_node(parser *p) { char *v1; char *v2; int special; int t; int close; NODE *ret; const char *s; char word[24]; unsigned long v10; v10 = __readfsqword(0x28u); ret = 0; memset(word, 0, 18); s = p->point - 1; special = 0; t = -1; close = gretl_charpos(93, s); if (close) { if...
NODE *obs_node(parser *p) { NODE *ret = NULL; char word[OBSLEN + 2] = {0}; const char *s = p->point - 1; int close; int special = 0; int t = -1; close = gretl_charpos(']', s); #if LDEBUG fprintf(stderr, "obs_node: s='%s', ch='%c', close=%d\n", s, (char)p->ch, close); #endif if (close == 0...
obs_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void obs_to_ymd(const char *obs, int pd, int *y, int *m, int *d) { *y = atoi(obs); *d = 1; if (pd == 12) { *m = atoi(obs + 5); } else if (pd == 4) { *m = 3 * atoi(obs + 5) - 2; } else { *m = 1; } }
static void obs_to_ymd(const char *obs, int pd, int *y, int *m, int *d) { *y = atoi(obs); *d = 1; if (pd == 12) { *m = atoi(obs + 5); } else if (pd == 4) { int q = atoi(obs + 5); *m = q * 3 - 2; } else { *m = 1; } }
obs_to_ymd
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int observation_is_dummied(const MODEL *pmod, int *list, const double **Z, int s) { int i; int t; int ret; int v; ret = 0; for (i = *list; i > 1; --i) { v = list[i]; if (v) { ret = 1; for (t = pmod->t1; t <= pmod->t2; ++t) { if (t == s && Z[v][t] == 0....
static int observation_is_dummied(const MODEL *pmod, int *list, const double **Z, int s) { int i, t, v; int ret = 0; for (i = list[0]; i >= 2; i--) { v = list[i]; if (v == 0) { continue; } ret = 1; for (t = pmod->t1; t <= pmod->t2; t++) { if ((t =...
observation_is_dummied
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void obskey_init(obskey *keys) { keys->timefmt = 0; keys->keycol = -1; keys->m_means_q = 0; keys->numdates = 0; keys->native = 0; }
static void obskey_init(obskey *keys) { keys->timefmt = NULL; keys->keycol = -1; keys->m_means_q = 0; keys->numdates = 0; keys->native = 0; }
obskey_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int obslen_from_t(int t) { char s[24]; unsigned long v3; v3 = __readfsqword(0x28u); sprintf(s, "%d", t + 1); return strlen(s); }
static int obslen_from_t(int t) { char s[OBSLEN]; sprintf(s, "%d", t + 1); return strlen(s); }
obslen_from_t
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int obsy_check(kalman *K) { int cols; int rows; if (!K->y) return missing_matrix_error("obsy"); if (K->y->rows == K->T && K->y->cols == K->n) return 0; if (K->y) cols = K->y->cols; else cols = 0; if (K->y) rows = K->y->rows; else rows = 0; fprintf(stderr, "obsy_check: K->y sho...
static int obsy_check(kalman *K) { if (K->y == NULL) { return missing_matrix_error("obsy"); } else if (K->y->rows != K->T || K->y->cols != K->n) { fprintf(stderr, "obsy_check: K->y should be %d x %d, is %d x %d\n", K->T, K->n, gretl_matrix_rows(K->y), gretl_matrix_cols(K->y)); return E_NONCO...
obsy_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int oc_add_matrices(nlspec *s, int ltype, const char *lname, int rtype, const char *rname, const DATASET *dset) { int cols; int err; int oldecols; int i; int k; int t; int v; gretl_matrix *e; gretl_matrix *M; double x; int *list; int *list_0; unsigned long v23; v23 = __r...
static int oc_add_matrices(nlspec *s, int ltype, const char *lname, int rtype, const char *rname, const DATASET *dset) { gretl_matrix *e = NULL; gretl_matrix *M = NULL; int oldecols = 0; int i, k, t, v; double x; int err = 0; if (s->oc->e != NULL) { oldecols = s->oc->e->col...
oc_add_matrices
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int oc_get_type(const char *name, const DATASET *dset, int *err) { int j; int ret; int *list; ret = 0; if (current_series_index(dset, name) >= 0) return 11; if (get_matrix_by_name(name)) return 12; list = get_list_by_name(name); if (list) { for (j = 1; j <= *list; ++j) { if (list[j] <...
static int oc_get_type(const char *name, const DATASET *dset, int *err) { int *list = NULL; int j, v = current_series_index(dset, name); int ret = GRETL_TYPE_NONE; #if GMM_DEBUG fprintf(stderr, "oc_get_type: looking at '%s' (v = %d, dset->v = %d)\n", name, v, dset->v); #endif if (v >= 0) { re...
oc_get_type
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void oc_set_destroy(ocset *oc) { if (oc) { gretl_matrix_free(oc->e); gretl_matrix_free(oc->Z); gretl_matrix_free(oc->tmp); gretl_matrix_free(oc->sum); gretl_matrix_free(oc->S); free(oc->ecols); if (oc->lnames) strings_array_free(oc->lnames, oc->n_names); if (oc->rnames) str...
void oc_set_destroy(ocset *oc) { if (oc == NULL) { return; } gretl_matrix_free(oc->e); gretl_matrix_free(oc->Z); gretl_matrix_free(oc->tmp); gretl_matrix_free(oc->sum); gretl_matrix_free(oc->S); free(oc->ecols); if (oc->lnames != NULL) { strings_array_free(oc->lnames, oc->n_names); } i...
oc_set_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
ocset *oc_set_new() { ocset *oc; oc = (ocset *)malloc(0xA0u); if (oc) { oc->e = 0; oc->Z = 0; oc->W = 0; oc->tmp = 0; oc->sum = 0; oc->S = 0; oc->ecols = 0; oc->noc = 0; oc->step = 0; oc->userwts = 0; oc->scale_wt = 1.0; oc->Wname[0] = 0; oc->lnames = 0; oc...
static ocset *oc_set_new(void) { ocset *oc = malloc(sizeof *oc); if (oc != NULL) { oc->e = NULL; oc->Z = NULL; oc->W = NULL; oc->tmp = NULL; oc->sum = NULL; oc->S = NULL; oc->ecols = NULL; oc->noc = 0; oc->step = 0; oc->userwts = 0; oc->scale_wt = 1; *oc->Wname = '\0...
oc_set_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void octave_varname(char *name, const char *s, int nnum, int v) { int tr; char nstr[12]; unsigned long v7; v7 = __readfsqword(0x28u); if (nnum) { sprintf(nstr, "%d", nnum); tr = 32 - strlen(nstr); if (tr <= 0) { sprintf(name, "v%d", v); } else { strncat(name, s, tr); strcat(...
static void octave_varname(char *name, const char *s, int nnum, int v) { char nstr[12]; int len, tr; if (nnum == 0) { strcpy(name, s); } else { sprintf(nstr, "%d", nnum); len = strlen(nstr); tr = VNAMELEN - len; if (tr > 0) { strncat(name, s, tr); strcat(name, nstr); } else...
octave_varname
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int odbc_count_new_vars(char **vnames, int nv, const DATASET *dset) { int newv; int i; newv = nv; if (dset->v > 0) { for (i = 0; i < nv; ++i) { if (current_series_index(dset, vnames[i]) > 0) --newv; } } return newv; }
static int odbc_count_new_vars(char **vnames, int nv, const DATASET *dset) { int newv = nv; if (dset->v > 0) { int i; for (i = 0; i < nv; i++) { if (current_series_index(dset, vnames[i]) > 0) { newv--; } } } return newv; }
odbc_count_new_vars
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *odbc_get_query(const char *s, int *err) { char *v2; char *query; char *p; if (*s == 34) { query = gretl_quoted_string_strdup(s, 0); } else { p = get_string_by_name(s); if (p) query = gretl_strdup(p); else query = gretl_strdup(s); } if (query) { if (!*query) { v...
static char *odbc_get_query(const char *s, int *err) { char *query = NULL; const char *p; if (*s == '"') { query = gretl_quoted_string_strdup(s, NULL); } else { p = get_string_by_name(s); if (p != NULL) { query = gretl_strdup(p); } else { query = gretl_strdup(s); } } if (qu...
odbc_get_query
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int odbc_get_series(const char *line, DATASET *dset, gretlopt opt, PRN *prn) { char *v4; const char *v6; const char *linea[2]; int err; int newvars; int vmin; int n; int nv; char **vnames; char *format; int (*get_data)(ODBC_info *, gretlopt, PRN *); unsigned long v18; linea[0] = line; v18 =...
static int odbc_get_series(const char *line, DATASET *dset, gretlopt opt, PRN *prn) { int (*get_data)(ODBC_info *, gretlopt, PRN *); char **vnames = NULL; char *format = NULL; int err = 0; if (gretl_odinfo.dsn == NULL) { gretl_errmsg_set(_("No database has been opened")); r...
odbc_get_series
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char **odbc_get_varnames(const char **line, int *err) { char *v2; size_t v3; int len; int nv; _BYTE loop_ok[12]; const char *s; char vname[40]; unsigned long v10; v10 = __readfsqword(0x28u); *(_QWORD *)&loop_ok[4] = 0; s = *line; nv = 0; *(_QWORD *)loop_ok = strstr(s, "query=") != 0; do { ...
static char **odbc_get_varnames(const char **line, int *err) { char **vnames = NULL; char vname[VNAMELEN]; const char *s = *line; int len, loop_ok = 0, nv = 0; if (strstr(s, "query=")) { loop_ok = 1; } while (!*err) { *vname = '\0'; *err = extract_varname(vname, s, &len); if (!*err && ...
odbc_get_varnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int odbc_transcribe_data(char **vnames, DATASET *dset, int vmin, int newvars, gretlopt opt, PRN *prn) { int v6; int v7; double *v8; int v9; double *v10; char *v11; char *v12; int i; int s; int t; int ta; int tb; int v; int spos; int err; int vnew; int obs_used;...
static int odbc_transcribe_data(char **vnames, DATASET *dset, int vmin, int newvars, gretlopt opt, PRN *prn) { char label[MAXLABEL]; int *gstlist = NULL; int *gstlnew = NULL; int nv = gretl_odinfo.nvars; int n = gretl_odinfo.nrows; int nrepl = nv - newvars; int simple_fill ...
odbc_transcribe_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void odell_feiveson_compute(gretl_matrix *W, double *Z, int v) { double v3; int i; int j; int r; int ra; int p; double Xi; double wii; double wij; double Zri; double Zrj; unsigned long v15; v15 = __readfsqword(0x28u); p = W->rows; for (i = 0; i < p; ++i) { gretl_rand_chisq(&Xi, 0, 0, ...
static void odell_feiveson_compute(gretl_matrix *W, double *Z, int v) { double Xi, Zri, Zrj; double wii, wij; int p = W->rows; int i, j, r; for (i = 0; i < p; i++) { gretl_rand_chisq(&Xi, 0, 0, v - i); wii = Xi; for (r = 0; r < i; r++) { Zri = Z[ijton(r, i, p)]; wii += Zri * Zri; ...
odell_feiveson_compute
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_array_decl(parser *p, const char *s) { p->lh.gtype = GRETL_TYPE_NONE; if (!strncmp(s, "strings ", 8u)) { p->lh.gtype = GRETL_TYPE_STRINGS; } else if (!strncmp(s, "matrices ", 9u)) { p->lh.gtype = GRETL_TYPE_MATRICES; } else if (!strncmp(s, "bundles ", 8u)) { p->lh.gtype = GRETL_TYPE_BUNDLES; ...
static int ok_array_decl(parser *p, const char *s) { p->lh.gtype = 0; if (!strncmp(s, "strings ", 8)) { p->lh.gtype = GRETL_TYPE_STRINGS; } else if (!strncmp(s, "matrices ", 9)) { p->lh.gtype = GRETL_TYPE_MATRICES; } else if (!strncmp(s, "bundles ", 8)) { p->lh.gtype = GRETL_TYPE_BUNDLES; } else ...
ok_array_decl
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_companion_row(const gretl_matrix *F, int cols, int row, int n) { int j; double x; for (j = 0; j < cols; ++j) { x = F->val[j * F->rows + row]; if (j == n && x != 1.0 || j != n && x != 0.0) return 0; } return 1; }
static int ok_companion_row(const gretl_matrix *F, int cols, int row, int n) { double x; int j; for (j = 0; j < cols; j++) { x = gretl_matrix_get(F, row, j); if ((j == n && x != 1.0) || (j != n && x != 0.0)) { return 0; } } return 1; }
ok_companion_row
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_dbl_char(parser *p, char *s, int i) { int ch; _BOOL4 v5; _BOOL4 v6; int ret; ret = 0; if (i < 0 || p->ch > 47 && p->ch <= 57) return 1; ch = p->ch; if (ch > 69) { if (ch == 101) return !strchr(s, 101) && !strchr(s, 69) && !strchr(s, 58); } else if (ch >= 43) { switch (ch) { ...
static int ok_dbl_char(parser *p, char *s, int i) { int ret = 0; if (i < 0 || (p->ch >= '0' && p->ch <= '9')) { return 1; } switch (p->ch) { case '+': case '-': ret = s[i] == 'e' || s[i] == 'E'; break; case '.': ret = !strchr(s, '.') && !strchr(s, ':') && !strchr(s, 'e') && !st...
ok_dbl_char
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_in_loop(int c) { return c != 45 && c != 58 && c != 87 && c != 112 && c != 120 && c != 107; }
int ok_in_loop(int c) { if (c == FUNC || c == INCLUDE || c == NULLDATA || c == RUN || c == SETMISS || c == QUIT) { return 0; } #if 0 if (c == RENAME) return 0; #endif return 1; }
ok_in_loop
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_list_node(NODE *n, parser *p) { if (!n) return 0; if (n->t == 56) return 1; if (n->t == 55 && n->vnum >= 0) return 1; if ((p->flags & 0x40000) == 0) return 0; return n->t == 85 || n->t == 54 || n->t == 57 && n->v.str && !*((_DWORD *)n->v.str + 6) && *n->v.ivec == 1...
static int ok_list_node(NODE *n, parser *p) { if (n == NULL) { return 0; } else if (n->t == LIST) { return 1; } else if (n->t == SERIES && n->vnum >= 0) { return 1; } else if (p->flags & P_LISTDEF) { return null_or_scalar(n); } return 0; }
ok_list_node
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_list_node_plus(NODE *n) { if (n->t == 56) return 1; if (n->t == 55 && n->vnum >= 0) return 1; return n->t == 54; }
static int ok_list_node_plus(NODE *n) { if (n->t == LIST) { return 1; } else if (n->t == SERIES && n->vnum >= 0) { return 1; } else if (n->t == NUM) { return 1; } else { return 0; } }
ok_list_node_plus
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_matrix_dim(int r, int c, int f) { if (f == 511 || f == 431 || f == 432 || f == 433 || f == 434) return r >= 0 && c >= 0; else return r > 0 && c > 0 && (double)c * (double)r < 2147483647.0; }
static int ok_matrix_dim(int r, int c, int f) { if (f == F_IMAT || f == F_ZEROS || f == F_ONES || f == F_MUNIF || f == F_MNORM) { return (r >= 0 && c >= 0); } else { double xm = (double)r * (double)c; return (r > 0 && c > 0 && xm < INT_MAX); } }
ok_matrix_dim
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ok_xy_count(int t1, int t2, const double *x, const double *y) { int n; n = 0; while (t1 <= t2) { if (fabs(x[t1]) <= 1.797693134862316e308 && fabs(y[t1]) <= 1.797693134862316e308) ++n; ++t1; } return n; }
static int ok_xy_count(int t1, int t2, const double *x, const double *y) { int t, n = 0; for (t = t1; t <= t2; t++) { if (complete_obs(x, y, t)) { n++; } } return n; }
ok_xy_count
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *old_eigengen(const gretl_matrix *m, gretl_matrix *VR, gretl_matrix *VL, int *err) { return real_gretl_dgeev(m, VR, VL, 1, err); }
gretl_matrix *old_eigengen(const gretl_matrix *m, gretl_matrix *VR, gretl_matrix *VL, int *err) { return real_gretl_dgeev(m, VR, VL, 1, err); }
old_eigengen
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int old_style_gretl_version_number(int v) { int i; int vtrans[18][2]; unsigned long v4; v4 = __readfsqword(0x28u); *(_QWORD *)&vtrans[0][0] = 0x4E8E00002A98LL; *(_QWORD *)&vtrans[1][0] = 0x4E8F00002A99LL; *(_QWORD *)&vtrans[2][0] = 0x4E9000002A9ALL; *(_QWORD *)&vtrans[3][0] = 0x4E9100002A9BLL; *(_QWO...
static int old_style_gretl_version_number(int v) { const int vtrans[18][2] = {{10904, 20110}, {10905, 20111}, {10906, 20112}, {10907, 20113}, {10908, 20120}, {10909, 20121}, {10910, 20122}, {10911, 20123}, {10912, 20130}, {10913, 2...
old_style_gretl_version_number
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int ols_print_anova(const MODEL *pmod, PRN *prn) { char *v3; char *v4; char *v5; char *v6; int v7; int v8; int v9; char *v10; int v11; char *v12; char *v13; int v14; char *v15; char *v16; int v17; char *v18; char *v19; char *v20; char *v21; char *v22; char *v23; char *v24; ...
int ols_print_anova(const MODEL *pmod, PRN *prn) { double mst, msr, mse, rss; int n, c1, c2, c3; if (pmod->ci != OLS || !pmod->ifc || na(pmod->ess) || na(pmod->tss)) { return E_NOTIMP; } pprintf(prn, "%s:\n\n", _("Analysis of Variance")); if (pmod->dfn == 0) { rss = 0.0; } else { rss = pmo...
ols_print_anova
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int omit_column(GRETL_VAR *var, int nl, int j) { if (var->ifc) return !(j % nl) && j <= nl * var->neqns; else return !((j + 1) % nl) && j < nl * var->neqns; }
static int omit_column(GRETL_VAR *var, int nl, int j) { if (var->ifc) { return j % nl == 0 && j < 1 + var->neqns * nl; } else { return (j + 1) % nl == 0 && j < var->neqns * nl; } }
omit_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int omit_options_inconsistent(MODEL *pmod, gretlopt opt) { if ((opt & 2) == 0) return (opt & 1) != 0 && (opt & 0x400000) != 0; if ((opt & 0x400001) != 0) return 1; return pmod->ci != 134 || (opt & 1) != 0 && (opt & 0x400000) != 0; }
static int omit_options_inconsistent(MODEL *pmod, gretlopt opt) { if (opt & OPT_B) { if (opt & (OPT_W | OPT_A)) { return 1; } else if (pmod->ci != IVREG) { return 1; } } if ((opt & OPT_A) && (opt & OPT_W)) { return 1; } return 0; }
omit_options_inconsistent
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int omit_test(MODEL *pmod, const int *omitvars, DATASET *dset, gretlopt opt, PRN *prn) { int err; err = omit_test_precheck(pmod, opt); if (!err) return wald_omit_test(omitvars, pmod, dset, opt, prn); return err; }
int omit_test(MODEL *pmod, const int *omitvars, DATASET *dset, gretlopt opt, PRN *prn) { int err = omit_test_precheck(pmod, opt); if (!err) { err = wald_omit_test(omitvars, pmod, dset, opt, prn); } return err; }
omit_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int omit_test_full(MODEL *orig, MODEL *pmod, const int *omitvars, DATASET *dset, gretlopt opt, PRN *prn) { MODEL v7; PRN *prna; gretlopt opta; DATASET *dseta; const int *omitvarsa; MODEL *pmoda; MODEL *origa; int err; gretlopt ropt; int minpos; int save_t1; int save_t2; int ...
int omit_test_full(MODEL *orig, MODEL *pmod, const int *omitvars, DATASET *dset, gretlopt opt, PRN *prn) { MODEL rmod; int save_t1 = dset->t1; int save_t2 = dset->t2; int *tmplist = NULL; int err; err = omit_test_precheck(orig, opt); if (err) { return err; } if ((err = list_me...
omit_test_full
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int omit_test_precheck(MODEL *pmod, gretlopt opt) { int err; err = 0; if (!pmod || !pmod->list) return 2; if (!command_ok_for_model(89, OPT_NONE, pmod)) return 8; if (omit_options_inconsistent(pmod, opt)) return 38; return err; }
static int omit_test_precheck(MODEL *pmod, gretlopt opt) { int err = 0; if (pmod == NULL || pmod->list == NULL) { err = E_DATA; } else if (!command_ok_for_model(OMIT, 0, pmod)) { err = E_NOTIMP; } else if (omit_options_inconsistent(pmod, opt)) { err = E_BADOPT; } return err; }
omit_test_precheck
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void omitzero(MODEL *pmod, const DATASET *dset, gretlopt opt) { int v3; int i; int ia; int t; int wtzero; int offset; int v; int va; int *zlist; double x; unsigned long v13; v13 = __readfsqword(0x28u); zlist = 0; x = 0.0; if (pmod->ci == 140) v3 = 3; else v3 = 2; offset = v3; ...
static void omitzero(MODEL *pmod, const DATASET *dset, gretlopt opt) { int *zlist = NULL; int i, v, offset; double x = 0.0; offset = (pmod->ci == WLS) ? 3 : 2; if (!(opt & OPT_A)) { zlist = gretl_null_list(); } for (i = pmod->list[0]; i >= offset; i--) { v = pmod->list[i]; if (modelvar_isze...
omitzero
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
NODE *one_string_func(NODE *n, int f, parser *p) { char *s; char *sa; NODE *ret; ret = get_aux_node(p, 60, 0, 2); if (ret && (p->flags & 2) != 0) { if (f == 379) { ret->v.str = gretl_strdup(n->v.str); for (s = ret->v.str; s && *s; ++s) *s = tolower(*s); } else if (f == 380) { ...
static NODE *one_string_func(NODE *n, int f, parser *p) { NODE *ret = aux_string_node(p); if (ret != NULL && starting(p)) { char *s; if (f == F_TOLOWER) { s = ret->v.str = gretl_strdup(n->v.str); while (s && *s) { *s = tolower(*s); s++; } } else if (f == F_TOUPPER) { ...
one_string_func
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double onef2(double a, double b, double c, double x, double *err) { double n; double a0; double sum; double t; double max; a0 = 1.0; sum = 1.0; n = 1.0; max = 0.0; while (1) { if (a == 0.0) { done: *err = fabs(MACHEP * max / sum); return sum; } if (b == 0.0 || c == 0.0 |...
double onef2(double a, double b, double c, double x, double *err) { double n, a0, sum, t; double an, bn, cn, max, z; an = a; bn = b; cn = c; a0 = 1.0; sum = 1.0; n = 1.0; t = 1.0; max = 0.0; do { if (an == 0) goto done; if (bn == 0) goto error; if (cn == 0) goto err...
onef2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void op_LR_test(MODEL *pmod, op_container *OC, const double **Z) { int nx; double L0; nx = OC->nx; OC->k -= nx; OC->nx = 0; cut_points_init(OC, pmod, Z); L0 = op_loglik(OC->theta, OC); if (fabs(L0) <= 1.797693134862316e308 && pmod->lnL >= L0) { pmod->chisq = pmod->lnL - L0 + pmod->lnL - L0; gre...
static void op_LR_test(MODEL *pmod, op_container *OC, const double **Z) { int nx = OC->nx; double L0; OC->k -= OC->nx; OC->nx = 0; cut_points_init(OC, pmod, Z); L0 = op_loglik(OC->theta, OC); if (!na(L0) && L0 <= pmod->lnL) { pmod->chisq = 2.0 * (pmod->lnL - L0); gretl_model_set_int(pmod, "lr_d...
op_LR_test
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void op_boot_init(op_container *OC, int *bs_maxit) { int err; int K; unsigned long v4; v4 = __readfsqword(0x28u); err = 0; K = get_optval_int(102, OPT_B, &err); if (!err && K > 0) *bs_maxit = K; OC->bootstrap = 1; }
static void op_boot_init(op_container *OC, int *bs_maxit) { int K, err = 0; K = get_optval_int(PROBIT, OPT_B, &err); if (!err && K > 0) { *bs_maxit = K; } OC->bootstrap = 1; }
op_boot_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void op_boot_prep(op_container *OC, const MODEL *pmod) { int v2; int y; int i; int ia; int t; int s; int ncut; double ystar; double *cut; cut = &pmod->coeff[OC->nx]; ncut = OC->k - OC->nx; s = 0; for (t = OC->t1; t <= OC->t2; ++t) { if (fabs(OC->pmod->uhat[t]) <= 1.797693134862316e308) { ...
static void op_boot_prep(op_container *OC, const MODEL *pmod) { double ystar, *cut = pmod->coeff + OC->nx; int y, ncut = OC->k - OC->nx; int i, v, t, s = 0; for (t = OC->t1; t <= OC->t2; t++) { if (na(OC->pmod->uhat[t])) { continue; } ystar = gretl_one_snormal(); for (i = 0; i < OC->nx; ...
op_boot_prep
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int op_compute_probs(const double *theta, op_container *OC) { double v2; double v3; double v5; int i; int t; int s; int M; int nx; int yt; double ystar0; double ystar1; double dP; double P0; ystar0 = 0.0; ystar1 = 0.0; M = OC->ymax; nx = OC->nx; for (i = 0; i < OC->k; ++i) OC->g...
static int op_compute_probs(const double *theta, op_container *OC) { double m0, m1, ystar0 = 0.0, ystar1 = 0.0; int M = OC->ymax; int nx = OC->nx; double P0, P1, h, adj, dP; int i, t, s, yt; for (i = 0; i < OC->k; i++) { OC->g[i] = 0.0; } s = 0; for (t = OC->pmod->t1; t <= OC->pmod->t2; t++) { ...
op_compute_probs
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int op_compute_score(op_container *OC, int yt, double ystar0, double ystar1, double dP, int t, int s) { double v7; double v8; double v9; double v10; int i; int ia; int M; double mills0; double mills1; double gsi; M = OC->ymax; if (ystar1 < 6.0 || OC->ci == 70) { if (yt)...
static int op_compute_score(op_container *OC, int yt, double ystar0, double ystar1, double dP, int t, int s) { double gsi, dm, mills0, mills1; int M = OC->ymax; int i, v; if (ystar1 < 6.0 || OC->ci == LOGIT) { mills0 = (yt == 0) ? 0.0 : lp_pdf(ystar0, OC->ci) / dP; mills1 = ...
op_compute_score
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void op_container_destroy(op_container *OC) { free(OC->y); free(OC->ndx); free(OC->dP); free(OC->list); free(OC->g); free(OC->theta); gretl_matrix_free(OC->G); gretl_matrix_free(OC->nty); gretl_matrix_free(OC->ntb); free(OC); }
static void op_container_destroy(op_container *OC) { free(OC->y); free(OC->ndx); free(OC->dP); free(OC->list); free(OC->g); free(OC->theta); gretl_matrix_free(OC->G); gretl_matrix_free(OC->nty); gretl_matrix_free(OC->ntb); free(OC); }
op_container_destroy
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
op_container *op_container_new(int ci, int ndum, int ymin, double **Z, MODEL *pmod, gretlopt opt) { int v7; int i; int ia; int t; int err; int vy; int nobs; op_container *OC; vy = pmod->list[1]; nobs = pmod->nobs; err = 0; OC = (op_container *)malloc(0x98u); if ...
static op_container *op_container_new(int ci, int ndum, int ymin, double **Z, MODEL *pmod, gretlopt opt) { op_container *OC; int i, t, vy = pmod->list[1]; int nobs = pmod->nobs; int err = 0; OC = malloc(sizeof *OC); if (OC == NULL) { return NULL; } OC->ci = ci...
op_container_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double op_gen_resid(op_container *OC, const double *theta, int t) { double v3; double v4; int M; int nx; int yt; double ystar0; double ystar1; double dP; double ndxt; double f0; ystar1 = 0.0; M = OC->ymax; nx = OC->nx; dP = OC->dP[t]; yt = OC->y[t]; ndxt = OC->ndx[t]; if (yt) { ys...
static double op_gen_resid(op_container *OC, const double *theta, int t) { double ndxt, m0, m1, ystar0, f0, f1; double ret, dP, ystar1 = 0.0; int M = OC->ymax; int nx = OC->nx; int yt; dP = OC->dP[t]; yt = OC->y[t]; ndxt = OC->ndx[t]; if (yt == 0) { m0 = theta[nx]; ystar1 = ndxt + m0; } el...
op_gen_resid
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void op_get_real_theta(op_container *OC, const double *theta) { int i; int ia; for (i = 0; i <= OC->nx; ++i) OC->theta[i] = theta[i]; for (ia = OC->nx + 1; ia < OC->k; ++ia) OC->theta[ia] = exp(theta[ia]) + OC->theta[ia - 1]; }
static void op_get_real_theta(op_container *OC, const double *theta) { int i; for (i = 0; i <= OC->nx; i++) { OC->theta[i] = theta[i]; } for (i = OC->nx + 1; i < OC->k; i++) { OC->theta[i] = exp(theta[i]) + OC->theta[i - 1]; } }
op_get_real_theta
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double op_loglik(const double *theta, void *ptr) { int v2; int v3; int i; int s; int sa; int t; int ta; double x; double ll; ll = 0.0; if (theta != *((const double **)ptr + 9)) op_get_real_theta((op_container *)ptr, theta); s = 0; for (t = *((_DWORD *)ptr + 12); t <= *((_DWORD *)ptr + 13)...
static double op_loglik(const double *theta, void *ptr) { op_container *OC = (op_container *)ptr; double x, ll = 0.0; int i, s, t, v; int err; if (theta != OC->theta) { op_get_real_theta(OC, theta); } s = 0; for (t = OC->t1; t <= OC->t2; t++) { if (na(OC->pmod->uhat[t])) { continue; ...
op_loglik
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int op_score(double *theta, double *s, int npar, BFGS_CRIT_FUNC ll, void *ptr) { int i; int ia; int j; for (i = 0; i < npar; ++i) s[i] = *(double *)(8LL * i + *((_QWORD *)ptr + 14)); for (ia = *((_DWORD *)ptr + 15); ia < npar; ++ia) { for (j = ia + 1; j < npar; ++j) s[ia] = *(double *)(*((_QWOR...
static int op_score(double *theta, double *s, int npar, BFGS_CRIT_FUNC ll, void *ptr) { op_container *OC = (op_container *)ptr; int i, j; for (i = 0; i < npar; i++) { s[i] = OC->g[i]; } for (i = OC->nx; i < npar; i++) { for (j = i + 1; j < npar; j++) { s[i] += OC->g[j]; ...
op_score
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int op_symbol(int op) { int result; switch (op) { case 23: result = 42; break; case 24: result = 47; break; case 25: result = 94; break; case 26: result = 43; break; case 27: result = 45; break; case 28: result = 61; break; case 29: result = 60; ...
static int op_symbol(int op) { switch (op) { case B_DOTMULT: return '*'; case B_DOTDIV: return '/'; case B_DOTPOW: return '^'; case B_DOTADD: return '+'; case B_DOTSUB: return '-'; case B_DOTEQ: return '='; case B_DOTGT: return '>'; case B_DOTLT: return '<'; case B_DO...
op_symbol
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void op_transform_theta(op_container *OC, double *theta) { int i; int ia; for (i = 0; i <= OC->nx; ++i) theta[i] = OC->theta[i]; for (ia = OC->nx + 1; ia < OC->k; ++ia) theta[ia] = log(OC->theta[ia] - OC->theta[ia - 1]); }
static void op_transform_theta(op_container *OC, double *theta) { int i; for (i = 0; i <= OC->nx; i++) { theta[i] = OC->theta[i]; } for (i = OC->nx + 1; i < OC->k; i++) { theta[i] = log(OC->theta[i] - OC->theta[i - 1]); } }
op_transform_theta
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *open_3d_plot_input_file(int *iact) { int err; const char *term; FILE *fp; unsigned long v5; v5 = __readfsqword(0x28u); term = 0; fp = 0; err = 0; if (*iact) { if (gnuplot_has_wxt()) { term = "wxt size 640,420 noenhanced"; } else if (gnuplot_has_x11()) { term = "x11"; } e...
FILE *open_3d_plot_input_file(int *iact) { const char *term = NULL; FILE *fp = NULL; int err = 0; if (*iact != 0) { #ifndef WIN32 if (gnuplot_has_wxt()) { term = "wxt size 640,420 noenhanced"; } else if (gnuplot_has_x11()) { term = "x11"; } else if (gnuplot_has_qt()) { term = "qt...
open_3d_plot_input_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int open_append_stage_1(CMD *cmd, DATASET *dset, OpenOp *op, PRN *prn) { _BOOL4 v5; const char *v6; char *v7; int pkgdata; int err; gretlopt opt; opt = cmd->opt; pkgdata = 0; err = 0; open_op_init(cmd, op); if ((opt & 0x400000) != 0) { if (opt != OPT_W) return 38; op->ftype = 17; ...
static int open_append_stage_1(CMD *cmd, DATASET *dset, OpenOp *op, PRN *prn) { gretlopt opt = cmd->opt; int pkgdata = 0; int err = 0; open_op_init(cmd, op); if (opt & OPT_W) { if (opt != OPT_W) { return E_BADOPT; } op->ftype = GRETL_NATIVE_DB_WWW; op->dbdata = 1; strncat(op->fnam...
open_append_stage_1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *open_binfile(const char *dbbase, int code, int offset, int *err) { FILE *fp; char dbbin[520]; unsigned long v9; v9 = __readfsqword(0x28u); strcpy(dbbin, dbbase); if (code == 16) { if (!strstr(dbbin, ".bin")) strcpy(&dbbin[strlen(dbbin)], ".bin"); } else if (!strstr(dbbin, ".bn7")) { s...
static FILE *open_binfile(const char *dbbase, int code, int offset, int *err) { char dbbin[MAXLEN]; FILE *fp = NULL; strcpy(dbbin, dbbase); if (code == GRETL_NATIVE_DB) { if (strstr(dbbin, ".bin") == NULL) { strcat(dbbin, ".bin"); } } else { if (strstr(dbbin, ".bn7") == NULL) { strcat...
open_binfile
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int open_db_files(const char *fname, char *idxname, char *binname, FILE **fidx, FILE **fbin, int *append) { char *v6; char *v8; char *p; FILE *fp; char imode[3]; char bmode[3]; char base[4104]; unsigned long v18; v18 = __readfsqword(0x28u); strcpy(imode, "w"); imode[2] = 0; st...
static int open_db_files(const char *fname, char *idxname, char *binname, FILE **fidx, FILE **fbin, int *append) { FILE *fp; char base[FILENAME_MAX]; char imode[3] = "w"; char bmode[3] = "wb"; char *p; strcpy(base, fname); p = strchr(base, '.'); if (p != NULL) { *p = 0; }...
open_db_files
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
PRN *open_gdt_write_stream(const char *fname, gretlopt opt) { int err; int gzlevel; unsigned long v6; v6 = __readfsqword(0x28u); err = 0; if ((opt & 0x1000000) == 0) return gretl_print_new_with_filename(fname, &err); gzlevel = get_compression_option(128); return gretl_gzip_print_new(fname, gzlevel,...
static PRN *open_gdt_write_stream(const char *fname, gretlopt opt) { int err = 0; PRN *prn; if (opt & OPT_Z) { int gzlevel = get_compression_option(STORE); prn = gretl_gzip_print_new(fname, gzlevel, &err); } else { prn = gretl_print_new_with_filename(fname, &err); } return prn; }
open_gdt_write_stream
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int open_native_db_files(const char *dname, FILE **f1, char *name1, FILE **f2, char *name2) { char *v5; char *v6; int err; FILE *fidx; FILE *fbin; char dbbase[4096]; char fname[4104]; unsigned long v16; v16 = __readfsqword(0x28u); fidx = 0; fbin = 0; err = 0; if (dnam...
static int open_native_db_files(const char *dname, FILE **f1, char *name1, FILE **f2, char *name2) { char dbbase[FILENAME_MAX]; char fname[FILENAME_MAX]; FILE *fidx = NULL, *fbin = NULL; int err = 0; if (dname != NULL) { strcpy(dbbase, dname); } else { strcpy(dbbase,...
open_native_db_files
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int open_nulldata(DATASET *dset, int data_status, int length, gretlopt opt, PRN *prn) { int v5; char *v7; unsigned int n; unsigned int pd; char *v10; short opta; int t; opta = opt; if (data_status) clear_datainfo(dset, 0); dset->n = length; if ((opta & 0x2000) != 0) v5 =...
int open_nulldata(DATASET *dset, int data_status, int length, gretlopt opt, PRN *prn) { int t; if (data_status) { clear_datainfo(dset, CLEAR_FULL); } dset->n = length; dset->v = (opt & OPT_N) ? 1 : 2; dataset_obs_info_default(dset); if (dataset_allocate_varnames(dset)) { retur...
open_nulldata
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void open_op_init(CMD *cmd, OpenOp *op) { op->fname[0] = 0; *(_QWORD *)&op->quiet = ((unsigned int)cmd->opt >> 16) & 1; op->dbdata = 0; op->ftype = -1; }
static void open_op_init(CMD *cmd, OpenOp *op) { op->fname[0] = '\0'; op->quiet = (cmd->opt & OPT_Q) ? 1 : 0; op->http = 0; op->dbdata = 0; op->ftype = -1; }
open_op_init
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *open_plot_input_file(PlotType ptype, GptFlags flags, int *err) { const char *v3; int ci; int interactive; FILE *fp; const char *optname; char fname[4104]; unsigned long v11; v11 = __readfsqword(0x28u); memset(fname, 0, 4096); optname = 0; interactive = 0; fp = 0; if (!gnuplot_path[0]) {...
FILE *open_plot_input_file(PlotType ptype, GptFlags flags, int *err) { char fname[FILENAME_MAX] = {0}; const char *optname = NULL; int ci, interactive = 0; FILE *fp = NULL; if (*gnuplot_path == '\0') { strcpy(gnuplot_path, gretl_gnuplot_path()); } #ifndef WIN32 if (gnuplot_too_old()) { *err = E_...
open_plot_input_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int openmp_by_default() { _BOOL4 ret; int num_cores; const char *envstr; const char *s; num_cores = gretl_n_processors(); ret = num_cores > 1; if (num_cores > 1) { envstr = getenv("GRETL_USE_OPENMP"); if (envstr) { if (!strcmp(envstr, "0")) ret = 0; } } if (!called_0 && ret)...
int openmp_by_default(void) { static int called = 0; int num_cores = gretl_n_processors(); int ret = num_cores > 1; if (ret) { char *envstr = getenv("GRETL_USE_OPENMP"); if (envstr != NULL && !strcmp(envstr, "0")) { ret = 0; } } if (!called && ret) { char *s = getenv("OMP_NUM_THREA...
openmp_by_default
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int operator_real_only(int op) { char *v1; const char *v2; v1 = gettext("complex operands are not supported"); v2 = getsymb(op); gretl_errmsg_sprintf("'%s': %s", v2, v1); return 50; }
static int operator_real_only(int op) { gretl_errmsg_sprintf("'%s': %s", getsymb(op), _("complex operands are not supported")); return E_CMPLX; }
operator_real_only
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int oprobit_normtest(MODEL *pmod, op_container *OC) { int t; int ta; int tb; int s; int k; int nx; int err; int yt; double u; double ua; double v; double a2v; double b2u; double a; double b; double X2; double *theta; gretl_matrix *ntX; ModelTest *test; theta = OC->theta; k = O...
static int oprobit_normtest(MODEL *pmod, op_container *OC) { gretl_matrix *ntX; double *theta = OC->theta; int k = OC->k; int nx = OC->nx; int t, s, yt; double u, v, a2v, b2u; double a = 0, b = 0; double e3, e4; int err = 0; ntX = gretl_matrix_reuse(OC->G, -1, k + 2); s = 0; for (t = OC->pmod-...
oprobit_normtest
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretlopt opt_from_flag(unsigned char c) { int i; for (i = 0; flag_matches[i].c; ++i) { if (c == flag_matches[i].c) return flag_matches[i].o; } return OPT_NONE; }
gretlopt opt_from_flag(unsigned char c) { int i; for (i = 0; flag_matches[i].c != '\0'; i++) { if (c == flag_matches[i].c) { return flag_matches[i].o; } } return OPT_NONE; }
opt_from_flag
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretlopt opt_from_jcode(JohansenCode jc) { switch (jc) { case J_NO_CONST: return OPT_N; case J_UNREST_TREND: return OPT_T; case J_REST_CONST: return OPT_R; } return jc == J_REST_TREND; }
static gretlopt opt_from_jcode(JohansenCode jc) { gretlopt opt = OPT_NONE; if (jc == J_NO_CONST) { opt = OPT_N; } else if (jc == J_UNREST_TREND) { opt = OPT_T; } else if (jc == J_REST_CONST) { opt = OPT_R; } else if (jc == J_REST_TREND) { opt = OPT_A; } return opt; }
opt_from_jcode
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int opt_from_method(gretlopt *opt, int method) { gretlopt v2; int err; err = 0; switch (method) { case 2: *opt |= 0x800000u; break; case 3: *opt |= 0x400000u; break; case 4: v2 = *opt; BYTE1(v2) = ((unsigned short)*opt >> 8) | 0x20; *opt = v2; break; case 1: break; ...
static int opt_from_method(gretlopt *opt, int method) { int err = 0; if (method == BOOT_METHOD_PAIRS) { *opt |= OPT_X; } else if (method == BOOT_METHOD_WILD) { *opt |= OPT_W; } else if (method == BOOT_METHOD_PARAMETRIC) { *opt |= OPT_N; } else if (method != BOOT_METHOD_RESIDUALS) { err = E...
opt_from_method
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int opt_is_valid(gretlopt opt, int ci, char c) { int i; int got_ci; got_ci = 0; if (opt == OPT_O && (ci == 5 || ci == 6 || ci == 7 || ci == 8 || ci == 28 || ci == 30 || ci == 47 || ci == 49 || ci == 52 || ci == 55 || ci == 60 || ci == 134 || ci == 64 || ci == 69 || ci == 70 || ci == 77 || c...
static int opt_is_valid(gretlopt opt, int ci, char c) { int i, got_ci = 0; if (opt == OPT_O && vcv_opt_ok(ci)) { return 1; } else if (opt == OPT_Q && quiet_opt_ok(ci)) { return 1; } else if (opt == OPT_W && window_opt_ok(ci)) { return 1; } for (i = 0; gretl_opts[i].ci != 0; i++) { if (ci =...
opt_is_valid
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double optim_fncall(BFGS_CRIT_FUNC cfunc, double *b, void *data, int minimize) { double ret; ret = cfunc(b, data); if (fabs(ret) > 1.797693134862316e308) return ret; if (minimize) return -ret; return ret; }
static double optim_fncall(BFGS_CRIT_FUNC cfunc, double *b, void *data, int minimize) { double ret = cfunc(b, data); return na(ret) ? ret : minimize ? -ret : ret; }
optim_fncall
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void optim_get_user_values(double *b, int n, int *maxit, double *reltol, double *gradmax, gretlopt opt, PRN *prn) { int rows; char *v8; int i; int ia; int umaxit; gretl_matrix *uinit; double utol; if ((opt & 0x100000) != 0) { uinit = get_initvals(); if (uinit) { ...
static void optim_get_user_values(double *b, int n, int *maxit, double *reltol, double *gradmax, gretlopt opt, PRN *prn) { int umaxit; double utol; if (opt & OPT_U) { gretl_matrix *uinit; int i, uilen; uinit = get_initvals(); uilen = gretl_vector_get_length(uin...
optim_get_user_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int optim_gradcall(BFGS_GRAD_FUNC gradfunc, double *b, double *g, int n, BFGS_CRIT_FUNC cfunc, void *data, int minimize) { int i; int ret; ret = ((long (*)(double *, double *, _QWORD, BFGS_CRIT_FUNC, void *, BFGS_GRAD_FUNC, void *, BFGS_CRIT_FUNC))gradfunc)( b, g, (uns...
static int optim_gradcall(BFGS_GRAD_FUNC gradfunc, double *b, double *g, int n, BFGS_CRIT_FUNC cfunc, void *data, int minimize) { int ret = gradfunc(b, g, n, cfunc, data); if (minimize) { int i; for (i = 0; i < n; i++) { if (!na(g[i])) { g[i] = -g[i]; } } ...
optim_gradcall
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void optimize_v(eqdeg_t *eq, uint32_t b, uint32_t c, int v) { int i; int max_len; int max_i; int ll; int t; uint32_t bbb[8]; uint32_t ccc[10]; unsigned long v12; v12 = __readfsqword(0x28u); ll = push_stack(eq, b, c, v, bbb, ccc); max_i = 0; max_len = 0; if (ll > 1) { for (i = 0; i < ll; +...
static void optimize_v(eqdeg_t *eq, uint32_t b, uint32_t c, int v) { int i, max_len, max_i, ll, t; uint32_t bbb[8], ccc[8]; ll = push_stack(eq, b, c, v, bbb, ccc); max_len = max_i = 0; if (ll > 1) { for (i = 0; i < ll; ++i) { eq->mask_b = bbb[i]; eq->mask_c = ccc[i]; t = pivot_reductio...
optimize_v
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
MaskNode *optimize_v_hard(eqdeg_t *eq, int v, MaskNode *prev_masks) { int i; int ll; int t; MaskNode *cur_masks; uint32_t bbb[8]; uint32_t ccc[10]; unsigned long v11; v11 = __readfsqword(0x28u); cur_masks = 0; while (prev_masks) { ll = push_stack(eq, prev_masks->b, prev_masks->c, v, bbb, ccc); ...
static MaskNode *optimize_v_hard(eqdeg_t *eq, int v, MaskNode *prev_masks) { int i, ll, t; uint32_t bbb[8], ccc[8]; MaskNode *cur_masks; cur_masks = NULL; while (prev_masks != NULL) { ll = push_stack(eq, prev_masks->b, prev_masks->c, v, bbb, ccc); for (i = 0; i < ll; ++i) { eq->mask_b = bbb[...
optimize_v_hard
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0