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 |
|---|---|---|---|---|---|---|---|
int submatrix_contig(matrix_subspec *spec, const gretl_matrix *m) {
int contig;
contig = 0;
if (spec->ltype != SEL_MATRIX && spec->rtype != SEL_MATRIX &&
spec->ltype != SEL_EXCL && spec->rtype != SEL_EXCL) {
if (m->rows == 1 || m->cols == 1) {
return 1;
} else if (spec->rtype == SEL_RANGE &&
... | static int submatrix_contig(matrix_subspec *spec, const gretl_matrix *m) {
int contig = 0;
if (spec->ltype == SEL_MATRIX || spec->rtype == SEL_MATRIX ||
spec->ltype == SEL_EXCL || spec->rtype == SEL_EXCL) {
;
} else if (m->rows == 1 || m->cols == 1) {
contig = 1;
} else if (singleton_right_range... | submatrix_contig | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *submatrix_node(NODE *l, NODE *r, parser *p) {
int i;
NODE *ret;
char *spec;
gretl_matrix *m;
ret = 0;
if ((p->flags & 2) == 0)
return get_aux_node(p, 0, 0, 0);
spec = r->v.str;
m = node_get_matrix(l, p, 0, 0);
p->err = check_matrix_subspec((matrix_subspec *)spec, m);
if (!p->err) {
sw... | static NODE *submatrix_node(NODE *l, NODE *r, parser *p) {
NODE *ret = NULL;
if (starting(p)) {
matrix_subspec *spec = r->v.mspec;
gretl_matrix *m = node_get_matrix(l, p, 0, 0);
p->err = check_matrix_subspec(spec, m);
if (!p->err) {
if (spec->ltype == SEL_CONTIG) {
ret = aux_matrix_... | submatrix_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *subobject_node(NODE *l, NODE *r, parser *p) {
const char *v4;
const char *v5;
GretlType type;
int size;
int i;
int t_0;
int t;
int r1;
int r2;
NODE *ret;
void *val;
const char *key;
int *vlist_0;
int *vlist;
unsigned long v19;
v19 = __readfsqword(0x28u);
ret = 0;
if ((p->flags... | static NODE *subobject_node(NODE *l, NODE *r, parser *p) {
NODE *ret = NULL;
if (starting(p)) {
if (r == NULL || r->t != MSPEC) {
p->err = E_TYPES;
} else if (l->t == MAT) {
return submatrix_node(l, r, p);
} else if (l->t == ARRAY) {
int *vlist = array_subspec_list(l, r, p);
if... | subobject_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int subsample_check_model(MODEL *pmod, char *mask) {
if (submask_cmp(pmod->submask, mask))
return 2;
else
return 0;
} | int subsample_check_model(MODEL *pmod, char *mask) {
if (submask_cmp(pmod->submask, mask)) {
return E_DATA;
} else {
return 0;
}
} | subsample_check_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int subsm_(int *n, int *m, int *nsub, int *ind, double *l, double *u, int *nbd,
double *x, double *d__, double *xp, double *ws, double *wy,
double *theta, double *xx, double *gg, int *col, int *head,
int *iword, double *wv, double *wn, int *info) {
double v22;
double v23;
double v... | static int subsm_(int *n, int *m, int *nsub, int *ind, double *l, double *u,
int *nbd, double *x, double *d__, double *xp, double *ws,
double *wy, double *theta, double *xx, double *gg, int *col,
int *head, int *iword, double *wv, double *wn, int *info) {
int ws_d... | subsm_ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const LOOPSET *subst_loop_in_parentage(const LOOPSET *loop) {
do
loop = loop->parent;
while (loop && loop->type != 2 && loop->type != 3 && loop->type != 5 &&
loop->type != 4);
return loop;
} | static const LOOPSET *subst_loop_in_parentage(const LOOPSET *loop) {
while ((loop = loop->parent) != NULL) {
if (indexed_loop(loop) || loop->type == FOR_LOOP)
break;
}
return loop;
} | subst_loop_in_parentage | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double subst_val(double x, const double *x0, int n0, const double *x1, int n1,
int method) {
double xa;
int i;
xa = x;
if ((method & 1) != 0)
return subst_val_via_tree(x, x0, n0, x1, n1);
for (i = 0; i < n0; ++i) {
if (x0[i] == x) {
if (n1 == 1)
return *x1;
else
... | static double subst_val(double x, const double *x0, int n0, const double *x1,
int n1, int method) {
if (method & SUBST_BTREE) {
x = subst_val_via_tree(x, x0, n0, x1, n1);
} else {
int i;
for (i = 0; i < n0; i++) {
if (x == x0[i]) {
return (n1 == 1) ? *x1 : x1[i];
... | subst_val | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double subst_val_via_tree(double x, const double *x0, int n0, const double *x1,
int n1) {
gdouble v6;
int i;
if (x0) {
if (!tree_0) {
tree_0 = gretl_btree_new();
for (i = 0; i < n0; ++i) {
if (n1 == 1)
v6 = *x1;
else
v6 = x1[i];
... | static double subst_val_via_tree(double x, const double *x0, int n0,
const double *x1, int n1) {
static BTree *tree;
if (x0 == NULL) {
gretl_btree_destroy(tree);
tree = NULL;
return 0;
}
if (tree == NULL) {
double x1val;
int i;
tree = gretl_btree_new... | subst_val_via_tree | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int substitute_dollar_targ(char *str, int maxlen, const LOOPSET *loop,
const DATASET *dset, int *subst) {
double value;
char *v7;
size_t v8;
int v9;
int targlen;
int idx;
int cumlen;
int err;
int inslen;
int incr;
const char *ins;
const char *s;
char *q;
char *p;
... | static int substitute_dollar_targ(char *str, int maxlen, const LOOPSET *loop,
const DATASET *dset, int *subst) {
char insert[32], targ[VNAMELEN + 3] = {0};
char *p, *ins, *q, *s;
int targlen, inslen, idx = 0;
int incr, cumlen = 0;
int err = 0;
#if SUBST_DEBUG
fprintf(stder... | substitute_dollar_targ | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int substitute_homedir(char *fname) {
int err;
int len;
const char *homedir;
char tmp[520];
unsigned long v6;
v6 = __readfsqword(0x28u);
homedir = getenv("HOME");
err = 0;
if (homedir) {
len = strlen(fname);
if ((int)(len + strlen(homedir)) <= 512) {
strcpy(tmp, homedir);
strcat(t... | static int substitute_homedir(char *fname) {
char *homedir = getenv("HOME");
int err = 0;
if (homedir != NULL) {
int len = strlen(fname);
int homelen = strlen(homedir);
if (len + homelen > MAXLEN) {
err = 1;
} else {
char tmp[MAXLEN];
strcpy(tmp, homedir);
strcat(tmp, fn... | substitute_homedir | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int substitute_named_strings(char *line, int *subst) {
int freeit;
int n;
int len;
int bs;
int in_format;
int i;
int err;
int m;
char *s;
char *sub;
char *tmp;
char sname[40];
unsigned long v15;
v15 = __readfsqword(0x28u);
len = strlen(line);
s = line;
bs = 0;
in_format = 0;
err =... | int substitute_named_strings(char *line, int *subst) {
char sname[VNAMELEN];
int len = strlen(line);
char *sub, *tmp, *s = line;
int bs = 0, in_format = 0;
int freeit;
int i, n, m, err = 0;
*subst = 0;
if (*s == '#' || strchr(s, '@') == NULL) {
return 0;
}
if (!strncmp(line, "printf", 6) || !... | substitute_named_strings | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int substitute_values(double *dest, const double *src, int n, const double *v0,
int n0, const double *v1, int n1) {
int i;
int method;
method = select_subst_method(n, n1);
for (i = 0; i < n; ++i)
dest[i] = subst_val(src[i], v0, n0, v1, n1, method);
if ((method & 1) != 0)
subst_v... | int substitute_values(double *dest, const double *src, int n, const double *v0,
int n0, const double *v1, int n1) {
int i, method = select_subst_method(n, n1);
for (i = 0; i < n; i++) {
dest[i] = subst_val(src[i], v0, n0, v1, n1, method);
}
if (method & SUBST_BTREE) {
subst_val(0... | substitute_values | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *subtract_from_array_node(NODE *l, NODE *r, parser *p) {
NODE *ret;
ret = get_aux_node(p, 59, 0, 2);
if (ret && (p->flags & 2) != 0) {
if (gretl_array_get_type(l->v.a) == GRETL_TYPE_STRINGS && r->t == 60) {
ret->v.str = (char *)gretl_array_copy(l->v.a, &p->err);
if (!p->err)
p->err =... | static NODE *subtract_from_array_node(NODE *l, NODE *r, parser *p) {
NODE *ret = aux_array_node(p);
if (ret != NULL && starting(p)) {
if (gretl_array_get_type(l->v.a) == GRETL_TYPE_STRINGS && r->t == STR) {
ret->v.a = gretl_array_copy(l->v.a, &p->err);
if (!p->err) {
p->err = gretl_array_dr... | subtract_from_array_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int subtract_scalar_from_matrix(gretl_matrix *targ, double x) {
int i;
int n;
n = targ->rows * targ->cols;
for (i = 0; i < n; ++i)
targ->val[i] = targ->val[i] - x;
return 0;
} | static int subtract_scalar_from_matrix(gretl_matrix *targ, double x) {
int i, n = targ->rows * targ->cols;
for (i = 0; i < n; i++) {
targ->val[i] -= x;
}
return 0;
} | subtract_scalar_from_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int suitable_group_names_series(const DATASET *dset, int maxlen, int exclude) {
int ns;
int i;
int vfound;
int t;
int ubak;
int fail;
int u;
const char *sbak;
const char *st;
unsigned long v15;
v15 = __readfsqword(0x28u);
vfound = 0;
for (i = 1; i < dset->v && !vfound; ++i) {
if (i != exc... | static int suitable_group_names_series(const DATASET *dset, int maxlen,
int exclude) {
int i, vfound = 0;
for (i = 1; i < dset->v && !vfound; i++) {
if (i == exclude) {
continue;
}
if (is_string_valued(dset, i)) {
int ns = 0;
char **S = series_ge... | suitable_group_names_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *suitable_ufunc_ret_node(parser *p, GretlType t) {
switch (t) {
case GRETL_TYPE_DOUBLE:
return get_aux_node(p, 54, 0, 0);
case GRETL_TYPE_SERIES:
return aux_empty_series_node(p);
case GRETL_TYPE_MATRIX:
return get_aux_node(p, 57, 0, 2);
case GRETL_TYPE_LIST:
return aux_list_node(p);
cas... | static NODE *suitable_ufunc_ret_node(parser *p, GretlType t) {
if (t == GRETL_TYPE_DOUBLE) {
return aux_scalar_node(p);
} else if (t == GRETL_TYPE_SERIES) {
return aux_empty_series_node(p);
} else if (t == GRETL_TYPE_MATRIX) {
return aux_matrix_node(p);
} else if (t == GRETL_TYPE_LIST) {
return ... | suitable_ufunc_ret_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void sum_or_diff(double *theta, int n, int sign) {
int j;
int q;
*theta = 1.0;
for (q = 1; q <= n; ++q) {
theta[q] = 0.0;
for (j = q; j > 0; --j)
theta[j] = theta[j - 1] * (double)sign + theta[j];
}
} | static void sum_or_diff(double *theta, int n, int sign) {
int j, q;
theta[0] = 1.0;
for (q = 1; q <= n; q++) {
theta[q] = 0.0;
for (j = q; j > 0; j--) {
theta[j] += sign * theta[j - 1];
}
}
} | sum_or_diff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int summary_has_missing_values(const Summary *summ) {
int i;
if (summ->misscount) {
for (i = 0; i < *summ->list; ++i) {
if (summ->misscount[i] > 0)
return 1;
}
}
return 0;
} | int summary_has_missing_values(const Summary *summ) {
if (summ->misscount != NULL) {
int i, nv = summ->list[0];
for (i = 0; i < nv; i++) {
if (summ->misscount[i] > 0) {
return 1;
}
}
}
return 0;
} | summary_has_missing_values | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Summary *summary_new(const int *list, int wv, gretlopt opt, int *err) {
int nv;
Summary *s;
if (list) {
nv = *list;
s = (Summary *)malloc(0x90u);
if (s) {
s->list = gretl_list_copy(list);
if (s->list) {
s->weight_var = wv;
s->opt = opt;
s->n = 0;
s->misscou... | static Summary *summary_new(const int *list, int wv, gretlopt opt, int *err) {
Summary *s;
int nv;
if (list == NULL) {
fprintf(stderr, "summary_new: list is NULL\n");
*err = E_DATA;
return NULL;
}
nv = list[0];
s = malloc(sizeof *s);
if (s == NULL) {
*err = E_ALLOC;
return NULL;
}... | summary_new | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void summary_print_val(double x, int digits, int places, PRN *prn) {
char *v4;
char *v5;
int utf_width;
int v7;
const char *v8;
char v9;
int prec;
int len;
char *s;
char fmt[40];
unsigned long v15;
v15 = __readfsqword(0x28u);
pputc(prn, 32);
if (fabs(x) <= 1.797693134862316e308) {
if (d... | static void summary_print_val(double x, int digits, int places, PRN *prn) {
pputc(prn, ' ');
if (na(x)) {
pprintf(prn, "%*s", UTF_WIDTH(_("NA"), 14), _("NA"));
} else if (digits < 0) {
pprintf(prn, "%14d", (int)x);
} else if (digits > 0 || places > 0) {
int prec = (digits > 0) ? digits : places;
... | summary_print_val | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void summary_print_varname(const char *src, int len, PRN *prn) {
char vname[24];
unsigned long v5;
v5 = __readfsqword(0x28u);
maybe_trim_varname(vname, src);
pprintf(prn, "%-*s", len, vname);
} | static void summary_print_varname(const char *src, int len, PRN *prn) {
char vname[NAMETRUNC];
maybe_trim_varname(vname, src);
pprintf(prn, "%-*s", len, vname);
} | summary_print_varname | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sur_ols_diag(equation_system *sys) {
double v1;
int i;
int err;
double ls2sum;
ls2sum = 0.0;
err = 0;
for (i = 0; i < sys->neqns; ++i) {
v1 = gretl_model_get_double(sys->models[i], "ols_sigma_squared");
if (fabs(v1) > 1.797693134862316e308) {
err = 1;
break;
}
ls2sum = log... | static int sur_ols_diag(equation_system *sys) {
double s2, ls2sum = 0.0;
int i, err = 0;
for (i = 0; i < sys->neqns; i++) {
s2 = gretl_model_get_double(sys->models[i], "ols_sigma_squared");
if (na(s2)) {
err = 1;
break;
}
ls2sum += log(s2);
}
if (!err) {
sys->diag_test = ls2s... | sur_ols_diag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int svd_ols_work(gretl_matrix *A, gretl_matrix *B, double *s, int use_dc) {
integer m;
integer n;
integer nrhs;
integer lda;
integer ldb;
integer lwork;
integer liwork;
integer rank;
integer info;
int err;
double rcond;
integer *iwork;
double *work;
unsigned long v20;
v20 = __readfsqword(... | static int svd_ols_work(gretl_matrix *A, gretl_matrix *B, double *s,
int use_dc) {
double *work = NULL;
double rcond = 0.0;
integer m, n, nrhs;
integer lda, ldb;
integer lwork = -1;
integer liwork = 0;
integer rank;
integer info;
integer *iwork = NULL;
int err = 0;
work = ... | svd_ols_work | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double svd_smin(const gretl_matrix *a, double smax) {
int rows;
rows = a->rows;
if (a->cols >= a->rows)
rows = a->cols;
return (double)rows * 2.2e-16 * smax;
} | static double svd_smin(const gretl_matrix *a, double smax) {
const double macheps = 2.20e-16;
int dmax = (a->rows > a->cols) ? a->rows : a->cols;
return dmax * macheps * smax;
} | svd_smin | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
NODE *svm_driver_node(NODE *t, parser *p) {
int got_yhat;
int i;
int k;
NODE *ret;
int *list;
gretl_bundle *bparm;
gretl_bundle *bmod;
gretl_bundle *bprob;
NODE *save_aux;
NODE *n;
NODE *e;
int (*pfunc)(const int *, gretl_bundle *, gretl_bundle *, gretl_bundle *,
double *, int *, ... | static NODE *svm_driver_node(NODE *t, parser *p) {
NODE *save_aux = p->aux;
NODE *n = t->L;
NODE *e, *ret = NULL;
int *list = NULL;
gretl_bundle *bparm = NULL;
gretl_bundle *bmod = NULL;
gretl_bundle *bprob = NULL;
int i, k = n->v.bn.n_nodes;
if (k < 2 || k > 4) {
n_args_error(k, 2, F_SVM, p);
... | svm_driver_node | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void sw_coeff(int n, int n2, float *a) {
float v3;
float v4;
float v5;
float v6;
float v7;
double v8;
float v9;
float v10;
double v11;
float summ2;
float summ2a;
float fac;
int i;
int ia;
int i1;
float an;
float ssumm2;
float rsn;
float a0;
float a1;
float c1[8];
float c2[6];... | static void sw_coeff(int n, int n2, float *a) {
const float c1[6] = {0.f, .221157f, -.147981f,
-2.07119f, 4.434685f, -2.706056f};
const float c2[6] = {0.f, .042981f, -.293762f,
-1.752461f, 5.682633f, -3.582633f};
float summ2, ssumm2;
float a0, a1, an ... | sw_coeff | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sw_sample_check(int n, int n1) {
int ncens;
ncens = n - n1;
if (n > 2 && n1 > 2) {
if (ncens >= 0 && (ncens <= 0 || n > 19)) {
if ((float)((float)ncens / (float)n) <= 0.80000001) {
return 0;
} else {
fwrite("sw_w: too many censored obserations\n", 1u, 0x24u, stderr);
r... | static int sw_sample_check(int n, int n1) {
int ncens = n - n1;
float delta, an = n;
if (n < 3 || n1 < 3) {
fprintf(stderr, "There is no way to run SW test for less then 3 obs\n");
return E_DATA;
}
if (ncens < 0 || (ncens > 0 && n < 20)) {
fprintf(stderr, "sw_w: not enough uncensored obserations... | sw_sample_check | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sw_w(float *x, int n, int n1, float *a, double *W, double *pval) {
float v7;
long v8;
float v9;
long v10;
float v11;
double v12;
float v13;
float v14;
float v15;
float v16;
float v17;
double v18;
float v19;
float v20;
double v21;
float v22;
float v23;
float v24;
double v25;
f... | static int sw_w(float *x, int n, int n1, float *a, double *W, double *pval) {
const float z90 = 1.2816f;
const float z95 = 1.6449f;
const float z99 = 2.3263f;
const float zm = 1.7509f;
const float zss = .56268f;
const float bf1 = .8378f;
const double xx90 = .556;
const double xx95 = .622;
const float ... | sw_w | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void swap_models(MODEL *targ, MODEL *src) {
MODEL tmp;
qmemcpy(&tmp, targ, sizeof(tmp));
qmemcpy(targ, src, sizeof(MODEL));
qmemcpy(src, &tmp, sizeof(MODEL));
} | void swap_models(MODEL *targ, MODEL *src) {
MODEL tmp = *targ;
#if MDEBUG
fprintf(stderr, "swap_models: %p <-> %p\n", targ, src);
#endif
*targ = *src;
*src = tmp;
} | swap_models | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int switch_panel_orientation(DATASET *dset) {
int v2;
int v3;
int v4;
int v5;
int T;
int n;
int i;
int j;
int ja;
int jb;
int jc;
int s;
int sa;
int t;
int ta;
int tb;
int tc;
int td;
int te;
int oldmode;
double pdx;
char **markers;
double *tmp;
oldmode = dset->structure... | int switch_panel_orientation(DATASET *dset) {
int oldmode = dset->structure;
double *tmp;
char **markers = NULL;
double pdx;
int T, n;
int i, j, s, t;
if (dset->Z == NULL) {
return E_NODATA;
} else if (oldmode != STACKED_TIME_SERIES &&
oldmode != STACKED_CROSS_SECTION) {
return E_D... | switch_panel_orientation | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void switch_uservar_hash(int level) {
if (level) {
uvars_hash = uvh1;
} else {
uvars_hash = uvh0;
if (uvh1)
g_hash_table_remove_all(uvh1);
}
} | void switch_uservar_hash(int level) {
#if HDEBUG && defined(_OPENMP)
fprintf(stderr, "switch_uservar_hash: level %d, nthreads %d\n", level,
omp_get_num_threads());
#endif
if (level == 0) {
uvars_hash = uvh0;
if (uvh1 != NULL) {
g_hash_table_remove_all(uvh1);
}
} else {
uvars_hash ... | switch_uservar_hash | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sync_data_to_full(DATASET *dset) {
int err;
update_full_data_values(dset);
update_case_markers(dset);
err = dataset_destroy_hidden_variables(dset, fullset->v);
if (!err)
return add_new_vars_to_full(dset);
return err;
} | static int sync_data_to_full(DATASET *dset) {
int err;
update_full_data_values(dset);
update_case_markers(dset);
err = dataset_destroy_hidden_variables(dset, fullset->v);
if (!err) {
err = add_new_vars_to_full(dset);
}
return err;
} | sync_data_to_full | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void sync_datainfo_members(const DATASET *dset) {
int i;
if (fullset->v > dset->v) {
for (i = dset->v; i < fullset->v; ++i) {
free(fullset->Z[i]);
fullset->Z[i] = 0;
}
fullset->v = dset->v;
}
fullset->varname = dset->varname;
fullset->varinfo = dset->varinfo;
fullset->descrip = dset... | static void sync_datainfo_members(const DATASET *dset) {
if (fullset->v > dset->v) {
int i;
#if FULLDEBUG
fprintf(stderr,
"*** sync_datainfo_members: fullset->v = %d but dset->v = %d\n",
fullset->v, dset->v);
fprintf(stderr, " deleting the last %d element(s) of fullZ\n",
... | sync_datainfo_members | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void sync_dataset_shared_members(const DATASET *dset) {
if (fullset) {
if (dset != fullset) {
fullset->varname = dset->varname;
fullset->varinfo = dset->varinfo;
}
}
} | void sync_dataset_shared_members(const DATASET *dset) {
if (fullset != NULL && dset != fullset) {
fullset->varname = dset->varname;
fullset->varinfo = dset->varinfo;
}
} | sync_dataset_shared_members | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_F_trim(equation_system *sys) {
int err;
int p;
gretl_matrix *tmp;
p = sys->order;
tmp = gretl_matrix_alloc(sys->F->rows - p, sys->F->cols);
if (tmp)
err = gretl_matrix_extract_matrix(tmp, sys->F, p, 0, GRETL_MOD_NONE);
else
err = 12;
if (!err) {
gretl_matrix_free(sys->F);
sys->F... | static int sys_F_trim(equation_system *sys) {
int err, p = sys->order;
int r = sys->F->rows - p;
gretl_matrix *tmp = gretl_matrix_alloc(r, sys->F->cols);
if (tmp == NULL) {
err = E_ALLOC;
} else {
err = gretl_matrix_extract_matrix(tmp, sys->F, p, 0, GRETL_MOD_NONE);
}
if (!err) {
gretl_matri... | sys_F_trim | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_add_RF_covariance_matrix(equation_system *sys, int n) {
gretl_matrix *v3;
gretl_matrix *v4;
int err;
gretl_matrix *G;
gretl_matrix *S;
G = 0;
S = 0;
err = 0;
if (!gretl_is_identity_matrix(sys->Gamma)) {
G = gretl_matrix_copy(sys->Gamma);
if (!G)
return 12;
}
if (n > sys->S->... | static int sys_add_RF_covariance_matrix(equation_system *sys, int n) {
gretl_matrix *G = NULL, *S = NULL;
int err = 0;
if (!gretl_is_identity_matrix(sys->Gamma)) {
G = gretl_matrix_copy(sys->Gamma);
if (G == NULL) {
return E_ALLOC;
}
}
if (n > sys->S->rows) {
S = gretl_zero_matrix_new(... | sys_add_RF_covariance_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_add_fcast_variance(equation_system *sys, gretl_matrix *F,
int n_static) {
int err;
int i;
int j;
int s;
int n;
int k;
gretl_matrix *se;
double vti;
double ftj;
unsigned long v14;
v14 = __readfsqword(0x28u);
se = 0;
n = sys->neqns + sys->nidents;
k = F->row... | static int sys_add_fcast_variance(equation_system *sys, gretl_matrix *F,
int n_static) {
gretl_matrix *se = NULL;
double ftj, vti;
int n = sys->neqns + sys->nidents;
int k = F->rows - n_static;
int i, j, s;
int err = 0;
if (k > 0) {
se = sys_get_fcast_se(sys, k, &err... | sys_add_fcast_variance | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_add_forecast(equation_system *sys, int t1, int t2, const DATASET *dset,
gretlopt opt) {
int col;
int lag;
int tdyn;
int T;
int i;
int s;
int t;
int s0;
int err;
int miss;
int n;
int ncols;
int p;
int vi;
gretl_matrix *G;
gretl_matrix *yl;
gretl_matrix *x;
... | static int sys_add_forecast(equation_system *sys, int t1, int t2,
const DATASET *dset, gretlopt opt) {
gretl_matrix *G = NULL;
gretl_matrix *yl = NULL, *x = NULL;
gretl_matrix *y = NULL, *yh = NULL;
const int *ylist = sys->ylist;
const int *xlist = sys->xlist;
const int *plist = ... | sys_add_forecast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_add_structural_form(equation_system *sys, const DATASET *dset) {
double v3;
double v4;
int col;
int lag;
int i;
int j;
int vj;
int err;
int ne;
int ni;
int n;
int type;
double x;
const int *ylist;
const int *xlist;
const MODEL *pmod;
const int *mlist;
const identity *ident;
... | static int sys_add_structural_form(equation_system *sys, const DATASET *dset) {
const int *ylist = sys->ylist;
const int *xlist = sys->xlist;
int ne = sys->neqns;
int ni = sys->nidents;
int n = ne + ni;
double x = 0.0;
int type, col = 0;
int i, j, vj, lag;
int err = 0;
#if SYSDEBUG
printlist(ylist,... | sys_add_structural_form | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_attach_ldata(equation_system *sys) {
liml_data *ldata;
liml_data *v2;
liml_data *v3;
double *v4;
int *v5;
int i;
int err;
int n;
const MODEL *pmod;
n = sys->neqns;
err = 0;
sys->ldata = (liml_data *)malloc(0x18u);
if (sys->ldata) {
sys->ldata->lmin = 0;
sys->ldata->ll = 0;
... | static int sys_attach_ldata(equation_system *sys) {
int i, n = sys->neqns;
int err = 0;
sys->ldata = malloc(sizeof *sys->ldata);
if (sys->ldata == NULL) {
err = E_ALLOC;
} else {
sys->ldata->lmin = NULL;
sys->ldata->ll = NULL;
sys->ldata->idf = NULL;
sys->ldata->lmin = malloc(n * sizeof... | sys_attach_ldata | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_check_eqn_list(const int *list) {
char *v1;
int dupv;
dupv = gretl_list_duplicates(list, EQUATION);
if (dupv < 0)
return 0;
v1 = gettext("variable %d duplicated in the command list.");
gretl_errmsg_sprintf(v1, (unsigned int)dupv);
return 2;
} | static int sys_check_eqn_list(const int *list) {
int dupv = gretl_list_duplicates(list, EQUATION);
if (dupv >= 0) {
gretl_errmsg_sprintf(_("variable %d duplicated in the "
"command list."),
dupv);
return E_DATA;
} else {
return 0;
}
} | sys_check_eqn_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_check_lists(equation_system *sys, const DATASET *dset) {
int v3;
int err;
int i;
int j;
int k;
int user_ylist;
int user_ilist;
int tsls_style;
int nlhs;
int vj;
int lag;
int src;
int *ylist;
int *xplist;
const identity *ident;
const char *vname;
const int *slist;
unsigned lon... | static int sys_check_lists(equation_system *sys, const DATASET *dset) {
const int *slist;
const char *vname;
const identity *ident;
int user_ylist = (sys->ylist != NULL);
int user_ilist = (sys->ilist != NULL);
int *ylist = NULL;
int *xplist = NULL;
int src, lag, nlhs;
int tsls_style;
int i, j, k, vj... | sys_check_lists | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *sys_companion_matrix(equation_system *sys, int *err) {
long m;
gretl_matrix *C;
m = *(_QWORD *)sys->A;
if ((_DWORD)m == HIDWORD(m))
return sys->A;
C = gretl_zero_matrix_new(SHIDWORD(m), SHIDWORD(m));
if (C) {
gretl_matrix_inscribe_matrix(C, sys->A, 0, 0, GRETL_MOD_NONE);
gretl_mat... | static gretl_matrix *sys_companion_matrix(equation_system *sys, int *err) {
int m = sys->A->rows;
int n = sys->A->cols;
gretl_matrix *C;
if (m == n) {
C = sys->A;
} else {
C = gretl_zero_matrix_new(n, n);
if (C == NULL) {
*err = E_ALLOC;
} else {
gretl_matrix_inscribe_matrix(C, sy... | sys_companion_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_eqn_indep_coeffs(const equation_system *sys, int eq) {
int nc;
int cmin;
int single;
int i;
int ia;
int j;
int cmax;
if (eq >= sys->neqns)
return 0;
if (!sys->R)
return *sys->lists[eq] - 1;
cmin = 0;
nc = *sys->lists[eq] - 1;
for (i = 0; i < eq; ++i)
cmin += *sys->lists[i] -... | static int sys_eqn_indep_coeffs(const equation_system *sys, int eq) {
int nc;
if (eq >= sys->neqns) {
nc = 0;
} else if (sys->R == NULL) {
nc = sys->lists[eq][0] - 1;
} else {
int nr = gretl_matrix_rows(sys->R);
int cols = gretl_matrix_cols(sys->R);
int cmax, cmin = 0;
int single, i, j;... | sys_eqn_indep_coeffs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_form_matrices(gretl_restriction *rset) {
int v1;
int i;
int j;
rrow *r;
v1 = system_n_indep_vars((const equation_system *)rset->obj);
if (rset_allocate_R_q(rset, v1))
return 12;
for (i = 0; i < rset->g; ++i) {
r = rset->rows[i];
for (j = 0; j < r->nterms; ++j)
rset->R->val[get_R... | static int sys_form_matrices(gretl_restriction *rset) {
int nc = system_n_indep_vars(rset->obj);
int col, i, j;
int err = 0;
if (rset_allocate_R_q(rset, nc)) {
return E_ALLOC;
}
for (i = 0; i < rset->g; i++) {
rrow *r = rset->rows[i];
for (j = 0; j < r->nterms; j++) {
col = get_R_sys_co... | sys_form_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_get_estimator(const char *s) {
size_t v1;
int method;
char *p;
const char *pa;
char mstr[9];
unsigned long v7;
v7 = __readfsqword(0x28u);
p = strstr(s, "method");
method = -1;
if (p) {
pa = &p[strspn(s, " ") + 6];
if (*pa == 61) {
v1 = strspn(s, " ");
if ((unsigned int)_... | static int sys_get_estimator(const char *s) {
const char *p = strstr(s, "method");
int method = -1;
if (p != NULL) {
p += 6;
p += strspn(s, " ");
if (*p == '=') {
char mstr[9];
p++;
p += strspn(s, " ");
if (sscanf(p, "%8s", mstr) == 1) {
gretl_lower(mstr);
met... | sys_get_estimator | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *sys_get_fcast_se(equation_system *sys, int periods, int *err) {
double *v4;
int i;
int t;
int n;
int k;
gretl_matrix *se;
gretl_matrix *Tmp;
gretl_matrix *V0;
gretl_matrix *Vt;
gretl_matrix *C;
n = sys->neqns + sys->nidents;
if (periods > 0) {
if (sys->A) {
C = sys_compa... | static gretl_matrix *sys_get_fcast_se(equation_system *sys, int periods,
int *err) {
int n = sys->neqns + sys->nidents;
gretl_matrix *Tmp = NULL;
gretl_matrix *V0 = NULL, *Vt = NULL;
gretl_matrix *C = NULL, *se = NULL;
double vti;
int i, k, t;
if (periods <= 0) {
... | sys_get_fcast_se | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gretl_matrix *sys_get_fitted_values(equation_system *sys, int v, int t1, int t2,
const DATASET *dset, int *err) {
int col;
int lag;
int i;
int s;
int t;
int miss;
int n;
int T;
int vi;
gretl_matrix *F;
gretl_matrix *G;
gretl_matrix *yl;
gretl_matrix *x;
gr... | gretl_matrix *sys_get_fitted_values(equation_system *sys, int v, int t1, int t2,
const DATASET *dset, int *err) {
gretl_matrix *F = NULL;
gretl_matrix *G = NULL;
gretl_matrix *yl = NULL, *x = NULL;
gretl_matrix *y = NULL, *yh = NULL;
const int *ylist = sys->ylist;
const i... | sys_get_fitted_values | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_get_lag_src(const char *vname, const DATASET *dset) {
int src;
int i;
int fd;
src = series_index(dset, vname);
if (src == dset->v) {
if (vname) {
fd = gretl_function_depth();
if (fd > 0) {
for (i = 1; i < dset->v; ++i) {
if (fd == series_get_stack_level(dset, i) &&
... | static int sys_get_lag_src(const char *vname, const DATASET *dset) {
int fd, src = series_index(dset, vname);
if (src == dset->v && vname != NULL && (fd = gretl_function_depth()) > 0) {
int i;
for (i = 1; i < dset->v; i++) {
if (fd == series_get_stack_level(dset, i) &&
series_is_listarg(ds... | sys_get_lag_src | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_has_user_name(equation_system *sys) {
return sys->name && *sys->name && strcmp(sys->name, "$system");
} | static int sys_has_user_name(equation_system *sys) {
return (sys->name != NULL && *sys->name != '\0' && !sys_anonymous(sys->name));
} | sys_has_user_name | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_make_biglist(equation_system *sys) {
int v1;
int bign;
int i;
int ia;
int ib;
int ic;
int id;
int j;
int ja;
int jb;
int vj;
int vja;
int vjb;
int k;
int *biglist;
const identity *ident;
const int *slist;
bign = 0;
for (i = 0; i < sys->neqns; ++i) {
v1 = *sys->lists[i]... | static int sys_make_biglist(equation_system *sys) {
int *biglist;
const int *slist;
const identity *ident;
int bign = 0;
int i, j, vj, k;
for (i = 0; i < sys->neqns; i++) {
bign += sys->lists[i][0] - gretl_list_has_separator(sys->lists[i]);
}
for (i = 0; i < sys->nidents; i++) {
bign += 1 + sy... | sys_make_biglist | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_max_predet_lag(const equation_system *sys) {
int i;
int m;
m = 0;
for (i = 0; i < *sys->plist; ++i) {
if (m < sys->pre_vars[i].lag)
m = sys->pre_vars[i].lag;
}
return m;
} | static int sys_max_predet_lag(const equation_system *sys) {
int i, m = 0;
for (i = 0; i < sys->plist[0]; i++) {
if (sys->pre_vars[i].lag > m) {
m = sys->pre_vars[i].lag;
}
}
return m;
} | sys_max_predet_lag | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_print_reconstituted_models(const equation_system *sys,
const DATASET *dset, PRN *prn) {
_BOOL4 v3;
double *v4;
int ifc;
int nc;
int ncmax;
int i;
int j;
int ja;
int t;
int k;
int err;
int freelist;
int print_insts;
int *mlist;
double *y;
double ... | static int sys_print_reconstituted_models(const equation_system *sys,
const DATASET *dset, PRN *prn) {
MODEL mod;
const double *y;
double x;
int print_insts = 0;
int ifc = 0, nc = 0, ncmax = 0;
int i, j, t, k = 0;
int err = 0;
gretl_model_init(&mod, dset);
m... | sys_print_reconstituted_models | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_rearrange_eqn_lists(equation_system *sys, const DATASET *dset) {
int i;
int ia;
for (i = 0; i < sys->neqns; ++i)
reglist_check_for_const(sys->lists[i], dset);
if (sys->method != 5 && sys->method != 1 && sys->method != 3) {
for (ia = 0; ia < sys->neqns; ++ia) {
if (gretl_list_has_separator... | static int sys_rearrange_eqn_lists(equation_system *sys, const DATASET *dset) {
int i, err = 0;
for (i = 0; i < sys->neqns; i++) {
reglist_check_for_const(sys->lists[i], dset);
}
#if SYS_PRUNE_LISTS
if (sys->method != SYS_METHOD_TSLS && sys->method != SYS_METHOD_3SLS &&
sys->method != SYS_METHOD_LIM... | sys_rearrange_eqn_lists | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
identity *sys_retrieve_identity(xmlNodePtr node, int *err) {
int prop_as_int;
int v3;
int v5;
int n_atoms;
int depvar;
int i;
int got;
identity *ident;
xmlNodePtr cur;
unsigned long v12;
v12 = __readfsqword(0x28u);
got = 0;
prop_as_int = gretl_xml_get_prop_as_int(node, "n_atoms", &n_atoms);
... | static identity *sys_retrieve_identity(xmlNodePtr node, int *err) {
identity *ident;
xmlNodePtr cur;
int n_atoms, depvar;
int i, got = 0;
got += gretl_xml_get_prop_as_int(node, "n_atoms", &n_atoms);
got += gretl_xml_get_prop_as_int(node, "depvar", &depvar);
if (got < 2) {
*err = E_DATA;
return NU... | sys_retrieve_identity | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int sys_test_type(equation_system *sys) {
int ret;
ret = 0;
if (system_n_restrictions(sys) > 0) {
if (sys->method && sys->method != 6) {
if (sys->method == 4 || sys->method == 5 || sys->method == 1) {
return 2;
} else if (sys->method == 3) {
return 2;
} else {
return... | static int sys_test_type(equation_system *sys) {
int ret = SYS_TEST_NONE;
if (system_n_restrictions(sys) > 0) {
if (sys->method == SYS_METHOD_SUR || sys->method == SYS_METHOD_WLS) {
if (sys->flags & SYSTEM_ITERATE) {
ret = SYS_TEST_LR;
} else {
ret = SYS_TEST_F;
}
} else i... | sys_test_type | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void sys_xlist_reshuffle_const(int *list) {
int i;
int ia;
int cpos;
cpos = 0;
for (i = 1; i <= *list; ++i) {
if (!list[i]) {
cpos = i;
break;
}
}
if (cpos > 1) {
for (ia = cpos; ia > 1; --ia)
list[ia] = list[ia - 1];
list[1] = 0;
}
} | static void sys_xlist_reshuffle_const(int *list) {
int i, cpos = 0;
for (i = 1; i <= list[0]; i++) {
if (list[i] == 0) {
cpos = i;
break;
}
}
if (cpos > 1) {
for (i = cpos; i > 1; i--) {
list[i] = list[i - 1];
}
list[1] = 0;
}
} | sys_xlist_reshuffle_const | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void *sysinfo_bundle_get_data(const char *key, GretlType *type, int *err) {
void *ret;
gretl_bundle *b;
b = get_sysinfo_bundle(err);
ret = 0;
if (b)
return gretl_bundle_get_data(b, key, type, 0, err);
return ret;
} | void *sysinfo_bundle_get_data(const char *key, GretlType *type, int *err) {
gretl_bundle *b = get_sysinfo_bundle(err);
void *ret = NULL;
if (b != NULL) {
ret = gretl_bundle_get_data(b, key, type, NULL, err);
}
return ret;
} | sysinfo_bundle_get_data | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_add_yhat_matrix(equation_system *sys) {
int v2;
int v3;
double v4;
int k;
int i;
int s;
int t;
k = 0;
sys->yhat = gretl_matrix_alloc(sys->T, sys->neqns);
if (!sys->yhat)
return 12;
gretl_matrix_set_t1(sys->yhat, sys->t1);
gretl_matrix_set_t2(sys->yhat, sys->t2);
for (i = 0; i <... | static int system_add_yhat_matrix(equation_system *sys) {
double x, avc;
int k = 0;
int i, s, t;
sys->yhat = gretl_matrix_alloc(sys->T, sys->neqns);
if (sys->yhat == NULL) {
return E_ALLOC;
}
gretl_matrix_set_t1(sys->yhat, sys->t1);
gretl_matrix_set_t2(sys->yhat, sys->t2);
for (i = 0; i < sys->... | system_add_yhat_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_adjust_t1t2(equation_system *sys, const DATASET *dset) {
int err;
if (sys->biglist) {
sys->t1 = dset->t1;
sys->t2 = dset->t2;
err = list_adjust_sample(sys->biglist, &sys->t1, &sys->t2, dset, 0);
if (!err)
sys->T = sys->t2 - sys->t1 + 1;
return err;
} else {
fwrite("system... | int system_adjust_t1t2(equation_system *sys, const DATASET *dset) {
int err;
if (sys->biglist == NULL) {
fprintf(stderr, "system_adjust_t1t2: no 'biglist' present!\n");
return E_DATA;
}
sys->t1 = dset->t1;
sys->t2 = dset->t2;
err = list_adjust_sample(sys->biglist, &sys->t1, &sys->t2, dset, NULL);... | system_adjust_t1t2 | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_arch_test(equation_system *sys, int order, gretlopt opt, PRN *prn) {
char *v4;
gretlopt v5;
int i;
int err;
err = 0;
if ((opt & 0x100) == 0)
pputc(prn, 10);
for (i = 0; i < sys->neqns && !err; ++i) {
if ((opt & 0x100) == 0) {
v4 = gettext("Equation");
pprintf(prn, "%s %d:\n... | int system_arch_test(equation_system *sys, int order, gretlopt opt, PRN *prn) {
const double *u;
int i, err = 0;
if (!(opt & OPT_I)) {
pputc(prn, '\n');
}
for (i = 0; i < sys->neqns && !err; i++) {
if (!(opt & OPT_I)) {
pprintf(prn, "%s %d:\n", _("Equation"), i + 1);
}
u = sys->E->val ... | system_arch_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_attach_coeffs(equation_system *sys, gretl_matrix *b) {
gretl_matrix_replace(&sys->b, b);
} | void system_attach_coeffs(equation_system *sys, gretl_matrix *b) {
gretl_matrix_replace(&sys->b, b);
} | system_attach_coeffs | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_attach_sigma(equation_system *sys, gretl_matrix *S) {
gretl_matrix_replace(&sys->S, S);
} | void system_attach_sigma(equation_system *sys, gretl_matrix *S) {
gretl_matrix_replace(&sys->S, S);
} | system_attach_sigma | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_attach_uhat(equation_system *sys, gretl_matrix *E) {
gretl_matrix_replace(&sys->E, E);
} | void system_attach_uhat(equation_system *sys, gretl_matrix *E) {
gretl_matrix_replace(&sys->E, E);
} | system_attach_uhat | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_attach_vcv(equation_system *sys, gretl_matrix *vcv) {
gretl_matrix_replace(&sys->vcv, vcv);
} | void system_attach_vcv(equation_system *sys, gretl_matrix *vcv) {
gretl_matrix_replace(&sys->vcv, vcv);
} | system_attach_vcv | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_autocorrelation_test(equation_system *sys, int order, gretlopt opt,
PRN *prn) {
int v4;
char *v5;
double v6;
char *v7;
char *v8;
int err;
int i;
double *u;
double lb;
unsigned long v16;
v16 = __readfsqword(0x28u);
err = 0;
for (i = 0; i < sys->neqns ... | int system_autocorrelation_test(equation_system *sys, int order, gretlopt opt,
PRN *prn) {
double *u, lb;
int i, err = 0;
for (i = 0; i < sys->neqns && !err; i++) {
if (!(opt & OPT_Q)) {
pprintf(prn, "%s %d:\n", _("Equation"), i + 1);
}
u = sys->E->val + (i * sys... | system_autocorrelation_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_clear_restrictions(equation_system *sys) {
if (sys->R) {
free(sys->R);
sys->R = 0;
}
if (sys->q) {
free(sys->q);
sys->q = 0;
}
sys->flags &= ~0x10u;
} | static void system_clear_restrictions(equation_system *sys) {
if (sys->R != NULL) {
free(sys->R);
sys->R = NULL;
}
if (sys->q != NULL) {
free(sys->q);
sys->q = NULL;
}
sys->flags &= ~SYSTEM_RESTRICT;
} | system_clear_restrictions | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_clear_results(equation_system *sys) {
sys->iters = 0;
sys->t2 = 0;
sys->t1 = sys->t2;
sys->smpl_t2 = 0;
sys->smpl_t1 = sys->smpl_t2;
sys->df = 0;
sys->T = sys->df;
sys->ll = NAN;
sys->llu = NAN;
sys->ldet = NAN;
sys->X2 = NAN;
sys->ess = NAN;
sys->diag_test = 0.0;
sys->bdiff = 0.... | static void system_clear_results(equation_system *sys) {
sys->iters = 0;
sys->t1 = sys->t2 = 0;
sys->smpl_t1 = sys->smpl_t2 = 0;
sys->T = sys->df = 0;
sys->ll = NADBL;
sys->llu = NADBL;
sys->ldet = NADBL;
sys->X2 = NADBL;
sys->ess = NADBL;
sys->diag_test = 0.0;
sys->bdiff = 0.0;
if (sys->b !... | system_clear_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_diag_test(const equation_system *sys, double *test, double *pval) {
int err;
int df_0;
double lr;
err = 0;
if (!sys->S)
return 30;
df_0 = sys->S->rows * (sys->S->rows - 1) / 2;
if (sys->method || sys->iters <= 0) {
if (sys->diag_test <= 0.0) {
return 30;
} else {
if (te... | int system_diag_test(const equation_system *sys, double *test, double *pval) {
int k, df, err = 0;
if (sys->S == NULL) {
return E_BADSTAT;
}
k = sys->S->rows;
df = k * (k - 1) / 2;
if (sys->method == SYS_METHOD_SUR && sys->iters > 0) {
if (!na(sys->ldet) && sys->diag_test != 0.0) {
double ... | system_diag_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_do_LR_test(const equation_system *sys, double llu, gretlopt opt,
PRN *prn) {
int rows;
char *v6;
char *v7;
char *v8;
char *v9;
int df_0;
double llr;
double X2;
double pval;
llr = sys->ll;
if (sys->R)
rows = sys->R->rows;
else
rows = 0;
df_0 = rows;
i... | static int system_do_LR_test(const equation_system *sys, double llu,
gretlopt opt, PRN *prn) {
double X2, pval, llr = sys->ll;
int df = gretl_matrix_rows(sys->R);
int err = 0;
if (na(llr) || na(llu) || llr == 0.0 || llu == 0.0 || df <= 0) {
fputs("bad or missing data in system ... | system_do_LR_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_do_forecast(const char *str, void *ptr, int type, DATASET *dset,
gretlopt opt, PRN *prn) {
int t1;
int t2;
int os_case;
int err;
int t2est;
int ci;
int imax;
int imin;
int df_0;
gretlopt printopt;
int i;
int asy;
GRETL_VAR *var;
equation_system *sys;
const... | static int system_do_forecast(const char *str, void *ptr, int type,
DATASET *dset, gretlopt opt, PRN *prn) {
char vname[VNAMELEN];
GRETL_VAR *var = NULL;
equation_system *sys = NULL;
const int *ylist = NULL;
const gretl_matrix *F = NULL;
int t1 = 0, t2 = 0;
int t2est, ci;
i... | system_do_forecast | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_get_depvar(const equation_system *sys, int i) {
if (i < sys->neqns)
return sys->lists[i][1];
else
return 0;
} | int system_get_depvar(const equation_system *sys, int i) {
if (i >= sys->neqns)
return 0;
return sys->lists[i][1];
} | system_get_depvar | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_get_dfu(const equation_system *sys) {
int v1;
int dfu;
int i;
int pos;
dfu = sys->T * sys->neqns;
for (i = 0; i < sys->neqns; ++i) {
pos = gretl_list_separator_position(sys->lists[i]);
if (pos <= 0)
v1 = *sys->lists[i] - 1;
else
v1 = pos - 2;
dfu -= v1;
}
return d... | static int system_get_dfu(const equation_system *sys) {
int dfu = sys->T * sys->neqns;
int i, pos;
for (i = 0; i < sys->neqns; i++) {
pos = gretl_list_separator_position(sys->lists[i]);
if (pos > 0) {
dfu -= pos - 2;
} else {
dfu -= sys->lists[i][0] - 1;
}
}
return dfu;
} | system_get_dfu | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *system_get_endog_vars(const equation_system *sys) { return sys->ylist; } | int *system_get_endog_vars(const equation_system *sys) { return sys->ylist; } | system_get_endog_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const gretl_matrix *system_get_forecast_matrix(equation_system *sys, int t1,
int t2, DATASET *dset,
gretlopt opt, int *err) {
if (sys->F)
gretl_matrix_replace(&sys->F, 0);
*err = sys_add_forecast(sys, t1, t2, dset, opt... | const gretl_matrix *system_get_forecast_matrix(equation_system *sys, int t1,
int t2, DATASET *dset,
gretlopt opt, int *err) {
if (sys->F != NULL) {
gretl_matrix_replace(&sys->F, NULL);
}
*err = sys_add_forecast(sys,... | system_get_forecast_matrix | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
gchar *system_get_full_string(const equation_system *sys) {
char *v1;
char *v2;
char *v3;
const char *lstr;
lstr = gretl_system_long_strings[sys->method];
if ((sys->flags & 0x20) != 0) {
v1 = gettext(lstr);
v2 = gettext("iterated %s");
return (gchar *)g_strdup_printf(v2, v1);
} else {
v3 ... | static gchar *system_get_full_string(const equation_system *sys) {
const char *lstr = gretl_system_long_strings[sys->method];
gchar *ret;
if (sys->flags & SYSTEM_ITERATE) {
ret = g_strdup_printf(_("iterated %s"), _(lstr));
} else {
ret = g_strdup(_(lstr));
}
return ret;
} | system_get_full_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *system_get_instr_vars(const equation_system *sys) { return sys->ilist; } | int *system_get_instr_vars(const equation_system *sys) { return sys->ilist; } | system_get_instr_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int *system_get_list(const equation_system *sys, int i) {
if (i < sys->neqns)
return sys->lists[i];
else
return 0;
} | int *system_get_list(const equation_system *sys, int i) {
if (i >= sys->neqns)
return NULL;
return sys->lists[i];
} | system_get_list | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_get_list_length(const equation_system *sys, int i) {
if (i < 0 || i >= sys->neqns)
return 0;
else
return get_real_list_length(sys->lists[i]);
} | int system_get_list_length(const equation_system *sys, int i) {
if (i >= 0 && i < sys->neqns) {
return get_real_list_length(sys->lists[i]);
} else {
return 0;
}
} | system_get_list_length | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_get_method(const equation_system *sys) { return sys->method; } | int system_get_method(const equation_system *sys) { return sys->method; } | system_get_method | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
MODEL *system_get_model(const equation_system *sys, int i) {
if (sys->models && i < sys->neqns)
return sys->models[i];
else
return 0;
} | MODEL *system_get_model(const equation_system *sys, int i) {
if (sys->models == NULL || i >= sys->neqns) {
return NULL;
}
return sys->models[i];
} | system_get_model | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_get_overid_df(const equation_system *sys) {
int i;
int k;
k = 0;
for (i = 0; i < sys->neqns; ++i)
k += *sys->lists[i] - 1;
return sys->neqns * *sys->ilist - k;
} | int system_get_overid_df(const equation_system *sys) {
int gl, i, k = 0;
gl = sys->neqns * sys->ilist[0];
for (i = 0; i < sys->neqns; i++) {
k += sys->lists[i][0] - 1;
}
return gl - k;
} | system_get_overid_df | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double *system_get_resid_series(equation_system *sys, int eqnum, DATASET *dset,
int *err) {
int t;
double *u;
if (sys->E) {
u = (double *)malloc(8LL * dset->n);
if (u) {
for (t = 0; t < dset->n; ++t) {
if (t >= sys->t1 && t <= sys->t2)
u[t] = sys->E... | double *system_get_resid_series(equation_system *sys, int eqnum, DATASET *dset,
int *err) {
double *u = NULL;
int t;
if (sys->E == NULL) {
*err = E_DATA;
return NULL;
}
u = malloc(dset->n * sizeof *u);
if (u == NULL) {
*err = E_ALLOC;
return NULL;
}
for... | system_get_resid_series | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_max_indep_vars(const equation_system *sys) {
int i;
int nv;
int nvi;
nv = 0;
for (i = 0; i < sys->neqns; ++i) {
nvi = get_real_list_length(sys->lists[i]) - 1;
if (nvi > nv)
nv = nvi;
}
return nv;
} | int system_max_indep_vars(const equation_system *sys) {
int i, nvi, nv = 0;
for (i = 0; i < sys->neqns; i++) {
nvi = get_real_list_length(sys->lists[i]) - 1;
if (nvi > nv)
nv = nvi;
}
return nv;
} | system_max_indep_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_method_from_string(const char *s) {
int i;
for (i = 0; gretl_system_method_strings[i]; ++i) {
if (!strcmp(s, gretl_system_method_strings[i]))
return i;
}
return i;
} | int system_method_from_string(const char *s) {
int i = 0;
while (gretl_system_method_strings[i] != NULL) {
if (!strcmp(s, gretl_system_method_strings[i])) {
return i;
}
i++;
}
return i;
} | system_method_from_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *system_method_full_string(int method) {
if ((unsigned int)method > 6)
return 0;
else
return gretl_system_long_strings[method];
} | const char *system_method_full_string(int method) {
if (method >= SYS_METHOD_SUR && method < SYS_METHOD_MAX) {
return gretl_system_long_strings[method];
} else {
return NULL;
}
} | system_method_full_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *system_method_short_string(int method) {
if ((unsigned int)method > 6)
return 0;
else
return gretl_system_method_strings[method];
} | const char *system_method_short_string(int method) {
if (method >= SYS_METHOD_SUR && method < SYS_METHOD_MAX) {
return gretl_system_method_strings[method];
} else {
return NULL;
}
} | system_method_short_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_n_indep_vars(const equation_system *sys) {
int i;
int nv;
nv = 0;
for (i = 0; i < sys->neqns; ++i)
nv += get_real_list_length(sys->lists[i]) - 1;
return nv;
} | int system_n_indep_vars(const equation_system *sys) {
int i, nvi, nv = 0;
for (i = 0; i < sys->neqns; i++) {
nvi = get_real_list_length(sys->lists[i]) - 1;
nv += nvi;
}
return nv;
} | system_n_indep_vars | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_n_restrictions(const equation_system *sys) {
int nr;
nr = 0;
if (sys->R && (sys->flags & 0x10) != 0) {
if (sys->R)
return sys->R->rows;
else
return 0;
}
return nr;
} | int system_n_restrictions(const equation_system *sys) {
int nr = 0;
if (sys->R != NULL && (sys->flags & SYSTEM_RESTRICT)) {
nr = gretl_matrix_rows(sys->R);
}
return nr;
} | system_n_restrictions | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_normality_test(const equation_system *sys, gretlopt opt, PRN *prn) {
if (sys->E && sys->S)
return multivariate_normality_test(sys->E, sys->S, opt, prn);
else
return 1;
} | int system_normality_test(const equation_system *sys, gretlopt opt, PRN *prn) {
int err = 0;
if (sys->E == NULL || sys->S == NULL) {
err = 1;
} else {
err = multivariate_normality_test(sys->E, sys->S, opt, prn);
}
return err;
} | system_normality_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_parse_line(equation_system *sys, const char *line, DATASET *dset) {
const char *linea;
int err;
gretl_error_clear();
linea = &line[strspn(line, " ")];
if (!strncmp(linea, "identity ", 9u)) {
err = add_identity_to_sys(sys, linea + 8, dset);
} else if (!strncmp(linea, "endog ", 6u)) {
err ... | int system_parse_line(equation_system *sys, const char *line, DATASET *dset) {
int err = 0;
gretl_error_clear();
#if SYSDEBUG > 1
fprintf(stderr, "*** system_parse_line: '%s'\n", line);
#endif
line += strspn(line, " ");
if (!strncmp(line, "identity ", 9)) {
err = add_identity_to_sys(sys, line + 8, dse... | system_parse_line | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_print_sigma(const equation_system *sys, PRN *prn) {
char *v3;
const char *v4;
const char *v5;
char *v6;
int tex;
int df_0;
const char *label;
double test;
double pval;
tex = tex_format(prn);
if (!sys->S)
return 2;
df_0 = sys->S->rows * (sys->S->rows - 1) / 2;
print_contemp_cova... | int system_print_sigma(const equation_system *sys, PRN *prn) {
double test, pval;
int tex = tex_format(prn);
int k, df;
if (sys->S == NULL) {
return E_DATA;
}
k = sys->S->rows;
df = k * (k - 1) / 2;
print_contemp_covariance_matrix(sys->S, sys->ldet, prn);
if (sys->method == SYS_METHOD_SUR && s... | system_print_sigma | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_save_and_print_results(equation_system *sys, DATASET *dset,
gretlopt opt, PRN *prn) {
int err;
int nr;
unsigned long v9;
v9 = __readfsqword(0x28u);
nr = system_n_restrictions(sys);
err = 0;
if (sys->E) {
gretl_matrix_set_t1(sys->E, sys->t1);
gretl_matr... | int system_save_and_print_results(equation_system *sys, DATASET *dset,
gretlopt opt, PRN *prn) {
int nr = system_n_restrictions(sys);
int err = 0;
if (sys->E != NULL) {
gretl_matrix_set_t1(sys->E, sys->t1);
gretl_matrix_set_t2(sys->E, sys->t2);
}
if (sys->iters > 0 ... | system_save_and_print_results | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
void system_set_restriction_matrices(equation_system *sys, gretl_matrix *R,
gretl_matrix *q) {
system_clear_restrictions(sys);
sys->R = R;
sys->q = q;
sys->flags |= 0x10u;
} | void system_set_restriction_matrices(equation_system *sys, gretl_matrix *R,
gretl_matrix *q) {
system_clear_restrictions(sys);
sys->R = R;
sys->q = q;
sys->flags |= SYSTEM_RESTRICT;
} | system_set_restriction_matrices | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
const char *system_short_string(const MODEL *pmod) {
return gretl_system_short_strings[gretl_model_get_int(pmod, "method")];
} | const char *system_short_string(const MODEL *pmod) {
int i = gretl_model_get_int(pmod, "method");
return gretl_system_short_strings[i];
} | system_short_string | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_supports_method(equation_system *sys, int method) {
int i;
if (sys) {
for (i = 0; i < sys->neqns; ++i) {
if (gretl_list_has_separator(sys->lists[i]))
return method == 5 || method == 1;
}
}
return 1;
} | int system_supports_method(equation_system *sys, int method) {
if (sys != NULL) {
int i;
for (i = 0; i < sys->neqns; i++) {
if (gretl_list_has_separator(sys->lists[i])) {
return method == SYS_METHOD_TSLS || method == SYS_METHOD_3SLS;
}
}
}
return 1;
} | system_supports_method | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
double system_vcv_denom(const equation_system *sys, int i, int j) {
int ki;
int kj;
double den;
den = (double)sys->T;
if ((sys->flags & 8) != 0 && i < sys->neqns && j < sys->neqns) {
ki = sys_eqn_indep_coeffs(sys, i);
if (j == i) {
return (double)(sys->T - ki);
} else {
kj = sys_eqn_i... | double system_vcv_denom(const equation_system *sys, int i, int j) {
double den = sys->T;
if ((sys->flags & SYSTEM_VCV_GEOMEAN) && i < sys->neqns && j < sys->neqns) {
int ki = sys_eqn_indep_coeffs(sys, i);
if (j == i) {
den = sys->T - ki;
} else {
int kj = sys_eqn_indep_coeffs(sys, j);
... | system_vcv_denom | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_vcv_geomean(const equation_system *sys) { return sys->flags & 8; } | int system_vcv_geomean(const equation_system *sys) {
return sys->flags & SYSTEM_VCV_GEOMEAN;
} | system_vcv_geomean | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_wald_test(const equation_system *sys, const gretl_matrix *R,
const gretl_matrix *q, gretlopt opt, PRN *prn) {
int dfu;
gretl_matrix *b;
gretl_matrix *V;
b = sys->b;
V = sys->vcv;
dfu = 0;
if (b && V) {
if (sys->method == 4 || sys->method == 5)
dfu = maybe_get_sin... | int system_wald_test(const equation_system *sys, const gretl_matrix *R,
const gretl_matrix *q, gretlopt opt, PRN *prn) {
const gretl_matrix *b = sys->b;
const gretl_matrix *V = sys->vcv;
int dfu = 0;
if (b == NULL || V == NULL) {
gretl_errmsg_set("restrict: no estimates are available")... | system_wald_test | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
int system_want_df_corr(const equation_system *sys) { return sys->flags & 4; } | int system_want_df_corr(const equation_system *sys) {
return sys->flags & SYSTEM_DFCORR;
} | system_want_df_corr | gretl-2021d | sci-mathematics | O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.