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 gretl_matrix_multiply_mod(const gretl_matrix *a, GretlMatrixMod amod, const gretl_matrix *b, GretlMatrixMod bmod, gretl_matrix *c, GretlMatrixMod cmod) { int cols; int rows; int v9; int v10; int atr; int btr; int lrows; int lcols; int rro...
int gretl_matrix_multiply_mod(const gretl_matrix *a, GretlMatrixMod amod, const gretl_matrix *b, GretlMatrixMod bmod, gretl_matrix *c, GretlMatrixMod cmod) { const int atr = (amod == GRETL_MOD_TRANSPOSE); const int btr = (bmod == GRETL_MOD_TRANSPOSE); in...
gretl_matrix_multiply_mod
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_multiply_mod_single(const gretl_matrix *a, GretlMatrixMod amod, const gretl_matrix *b, GretlMatrixMod bmod, gretl_matrix *c, GretlMatrixMod cmod) { int cols; int rows; int v9; int v10; int atr; int btr; int lrows; ...
int gretl_matrix_multiply_mod_single(const gretl_matrix *a, GretlMatrixMod amod, const gretl_matrix *b, GretlMatrixMod bmod, gretl_matrix *c, GretlMatrixMod cmod) { const int atr = (amod == GRETL_MOD_TRANSPOSE); const int btr = (bmod == GRETL...
gretl_matrix_multiply_mod_single
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_multiply_new(const gretl_matrix *a, const gretl_matrix *b, int *err) { gretl_matrix *c; if (a && a->rows && a->cols && b && b->rows && b->cols) { if (a->cols == b->rows) { c = gretl_matrix_alloc(a->rows, b->cols); if (c) { *...
gretl_matrix *gretl_matrix_multiply_new(const gretl_matrix *a, const gretl_matrix *b, int *err) { gretl_matrix *c; if (gretl_is_null_matrix(a) || gretl_is_null_matrix(b)) { *err = E_DATA; return NULL; } if (a->cols != b->rows) { fprintf(stderr, "...
gretl_matrix_multiply_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_multiply_single(const gretl_matrix *a, const gretl_matrix *b, gretl_matrix *c) { int err; if (!a || !a->rows || !a->cols || !b || !b->rows || !b->cols || !c || !c->rows || !c->cols) return 2; if (a->rows == 1 && a->cols == 1) { err = gretl_matrix_co...
int gretl_matrix_multiply_single(const gretl_matrix *a, const gretl_matrix *b, gretl_matrix *c) { int err = 0; if (gretl_is_null_matrix(a) || gretl_is_null_matrix(b) || gretl_is_null_matrix(c)) { return E_DATA; } if (matrix_is_scalar(a)) { err = gretl_matrix_copy...
gretl_matrix_multiply_single
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_na_check(const gretl_matrix *m) { int i; if (m) { for (i = 0; i < m->rows * m->cols; ++i) { if (fabs(m->val[i]) > 1.797693134862316e308) return 35; } } return 0; }
int gretl_matrix_na_check(const gretl_matrix *m) { if (m != NULL) { int i, n = m->rows * m->cols; for (i = 0; i < n; i++) { if (na(m->val[i])) { return E_NAN; } } } return 0; }
gretl_matrix_na_check
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_ols(const gretl_vector *y, const gretl_matrix *X, gretl_vector *b, gretl_matrix *vcv, gretl_vector *uhat, double *s2) { int rows; int v8; int nasty; int use_lapack; int try_QR; int err; int k; int T; gretl_matrix *XTX; unsigned long v20; ...
int gretl_matrix_ols(const gretl_vector *y, const gretl_matrix *X, gretl_vector *b, gretl_matrix *vcv, gretl_vector *uhat, double *s2) { gretl_matrix *XTX = NULL; int use_lapack = 0; int try_QR = 0; int nasty = 0; int k, T, err = 0; if (gretl_is_null_matrix(y) || g...
gretl_matrix_ols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_matrix_one_norm(const gretl_matrix *m) { int i; int j; double csum; double cmax; cmax = 0.0; if (!m || !m->rows || !m->cols) return NAN; for (j = 0; j < m->cols; ++j) { csum = 0.0; for (i = 0; i < m->rows; ++i) csum = fabs(m->val[j * m->rows + i]) + csum; if (csum > cma...
double gretl_matrix_one_norm(const gretl_matrix *m) { double csum, cmax = 0.0; int i, j; if (gretl_is_null_matrix(m)) { return NADBL; } for (j = 0; j < m->cols; j++) { csum = 0.0; for (i = 0; i < m->rows; i++) { csum += fabs(gretl_matrix_get(m, i, j)); } if (csum > cmax) { cm...
gretl_matrix_one_norm
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_packed_XTX_new(const gretl_matrix *X, int *nasty) { int v3; int i; int j; int k; int n; int nc; int nr; double x; gretl_matrix *XTX; _QWORD v12[3]; int v13; int v14; unsigned long v15; v15 = __readfsqword(0x28u); if (!X || !X->rows || !X->cols) return 0; n...
static gretl_matrix *gretl_matrix_packed_XTX_new(const gretl_matrix *X, int *nasty) { gretl_matrix *XTX = NULL; double x; #if defined(_OPENMP) int ii; guint64 fpm; #endif int i, j, k, nc, nr, n; if (gretl_is_null_matrix(X)) { return NULL; } nc = X->...
gretl_matrix_packed_XTX_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_pca(const gretl_matrix *X, int p, gretlopt opt, int *err) { gretl_matrix *P; gretl_matrix *D; gretl_matrix *V; gretl_matrix *e; P = 0; if (X && X->rows && X->cols) { if (p > 0 && p <= X->cols) { if (X->rows > 1) { if (X->is_complex...
gretl_matrix *gretl_matrix_pca(const gretl_matrix *X, int p, gretlopt opt, int *err) { gretl_matrix *D = NULL; gretl_matrix *V = NULL; gretl_matrix *P = NULL; gretl_matrix *e; if (gretl_is_null_matrix(X)) { *err = E_DATA; return NULL; } if (p <= 0 || p > X->cols) {...
gretl_matrix_pca
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_pergm(const gretl_matrix *x, int m, int *err) { int rows; int i; gretl_matrix *p; gretl_matrix *f; double re; double im; f = gretl_matrix_fft(x, 0, err); if (*err) return 0; p = gretl_matrix_alloc(m, 1); if (p) { if (x) { if (x->cols == 1) { rows = x...
static gretl_matrix *gretl_matrix_pergm(const gretl_matrix *x, int m, int *err) { gretl_matrix *p = NULL; gretl_matrix *f = NULL; f = gretl_matrix_fft(x, 0, err); if (*err) { return NULL; } p = gretl_column_vector_alloc(m); if (p == NULL) { *err = E_ALLOC...
gretl_matrix_pergm
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_polroots(const gretl_matrix *a, int force_complex, int *err) { int rows; int i; int ia; int ib; _BOOL4 allreal; int m; int order; gretl_matrix *r; double *xcof; double *cof; cmplx *roots; r = 0; *err = 0; if (a) { if (a->col...
gretl_matrix *gretl_matrix_polroots(const gretl_matrix *a, int force_complex, int *err) { gretl_matrix *r = NULL; double *xcof = NULL, *cof = NULL; cmplx *roots = NULL; int i, m, order, polerr; *err = 0; m = gretl_vector_get_length(a); if (m < 2) { *err = E_DATA;...
gretl_matrix_polroots
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_pow(const gretl_matrix *A, double s, int *err) { int k; if (A && A->rows && A->cols) { if (A->is_complex) { fwrite("E_CMPLX in gretl_matrix_pow\n", 1u, 0x1Cu, stderr); *err = 50; } else if (A->rows != A->cols) { *err = 36; } } else { *err = 2; } if...
gretl_matrix *gretl_matrix_pow(const gretl_matrix *A, double s, int *err) { if (gretl_is_null_matrix(A)) { *err = E_DATA; } else if (A->is_complex) { fprintf(stderr, "E_CMPLX in gretl_matrix_pow\n"); *err = E_CMPLX; } else if (A->rows != A->cols) { *err = E_NONCONF; } if (*err) { return N...
gretl_matrix_pow
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_print(const gretl_matrix *m, const char *msg) { int i; int j; int mt1; int mt2; char *fmt; const char *envstr; const char *envstra; PRN *prn; fmt = "%#12.5g "; if (m && m->val) { if (m->is_complex) { prn = gretl_print_new(GRETL_PRINT_STDERR, 0); if (prn) { ...
void gretl_matrix_print(const gretl_matrix *m, const char *msg) { char *fmt = "%#12.5g "; char *envstr; int i, j; if (m == NULL || m->val == NULL) { if (msg != NULL && *msg != '\0') { fprintf(stderr, "%s: matrix is NULL\n", msg); } else { fputs("matrix is NULL\n", stderr); } return;...
gretl_matrix_print
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_print_range(const gretl_matrix *m, const char *msg, int rmin, int rmax, PRN *prn) { if (m->is_complex) gretl_cmatrix_print_range(m, msg, rmin, rmax, prn); else real_matrix_print_to_prn(m, msg, 0, 0, 0, rmin, rmax, prn); }
void gretl_matrix_print_range(const gretl_matrix *m, const char *msg, int rmin, int rmax, PRN *prn) { if (m->is_complex) { gretl_cmatrix_print_range(m, msg, rmin, rmax, prn); } else { real_matrix_print_to_prn(m, msg, 0, NULL, NULL, rmin, rmax, prn); } }
gretl_matrix_print_range
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_print_to_prn(const gretl_matrix *m, const char *msg, PRN *prn) { real_matrix_print_to_prn(m, msg, 0, 0, 0, -1, -1, prn); }
void gretl_matrix_print_to_prn(const gretl_matrix *m, const char *msg, PRN *prn) { real_matrix_print_to_prn(m, msg, 0, NULL, NULL, -1, -1, prn); }
gretl_matrix_print_to_prn
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_print_with_col_heads(const gretl_matrix *m, const char *title, const char **heads, const DATASET *dset, PRN *prn) { real_matrix_print_to_prn(m, title, 0, heads, dset, -1, -1, prn); }
void gretl_matrix_print_with_col_heads(const gretl_matrix *m, const char *title, const char **heads, const DATASET *dset, PRN *prn) { real_matrix_print_to_prn(m, title, 0, heads, dset, -1, -1, prn); }
gretl_matrix_print_with_col_heads
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_print_with_format(const gretl_matrix *m, const char *fmt, int wid, int prec, PRN *prn) { unsigned int v5; unsigned int v6; char c; int intcast; int llen; int variant; int i; int j; int cpos; int k; char *ifmt; char *intcols; const char **ro...
void gretl_matrix_print_with_format(const gretl_matrix *m, const char *fmt, int wid, int prec, PRN *prn) { if (prn == NULL) { return; } if (gretl_is_null_matrix(m) || fmt == NULL || *fmt == '\0') { real_matrix_print_to_prn(m, NULL, 1, NULL, NULL, -1, -1, prn); } else...
gretl_matrix_print_with_format
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_psd_root(gretl_matrix *a, int check) { int err; gretl_matrix *a0; a0 = 0; if (!a || !a->rows || !a->cols || a->rows != a->cols) return 2; if (check) { a0 = gretl_matrix_copy(a); if (!a0) return 12; } err = real_psd_root(a, a0); gretl_matrix_free(a0); return err; }
int gretl_matrix_psd_root(gretl_matrix *a, int check) { gretl_matrix *a0 = NULL; int err = 0; if (gretl_is_null_matrix(a) || a->rows != a->cols) { return E_DATA; } if (check) { a0 = gretl_matrix_copy(a); if (a0 == NULL) { return E_ALLOC; } } err = real_psd_root(a, a0); gretl_ma...
gretl_matrix_psd_root
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_qform(const gretl_matrix *A, GretlMatrixMod amod, const gretl_matrix *X, gretl_matrix *C, GretlMatrixMod cmod) { int cols; int rows; const char *v8; int i; int j; int n; int ii; int jj; int kk; int mm; int nn; int m; int k; doubl...
int gretl_matrix_qform(const gretl_matrix *A, GretlMatrixMod amod, const gretl_matrix *X, gretl_matrix *C, GretlMatrixMod cmod) { register int i, j, ii, jj; double xi, xj, xij, xx; int m, k; guint64 N; if (gretl_is_null_matrix(A) || gretl_is_null_matrix(X) || ...
gretl_matrix_qform
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_quantiles(const gretl_matrix *m, const gretl_matrix *p, int *err) { int rows; int v5; int i; int ia; int ib; int ic; int j; int k; int plen; int n; gretl_matrix *qvals; double *mval; double *a; double *q; if (m && m->rows && ...
gretl_matrix *gretl_matrix_quantiles(const gretl_matrix *m, const gretl_matrix *p, int *err) { gretl_matrix *qvals; const double *mval; double *a, *q; int i, j, k; int n, plen; if (gretl_is_null_matrix(m)) { *err = E_INVARG; return NULL; } plen = gretl_vect...
gretl_matrix_quantiles
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_matrix_r_squared(const gretl_matrix *y, const gretl_matrix *X, const gretl_matrix *b, int *err) { int rows; int cols; double v7; int i; int j; double ess; double tss; double xx; double ybar; ess = 0.0; tss = 0.0; if (y) { if (y->cols == 1) { ...
double gretl_matrix_r_squared(const gretl_matrix *y, const gretl_matrix *X, const gretl_matrix *b, int *err) { double ess = 0.0, tss = 0.0; double xx, ybar; int i, j; if (gretl_vector_get_length(y) != X->rows || gretl_vector_get_length(b) != X->cols) { *err = E_NONCONF; ...
gretl_matrix_r_squared
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_raise(gretl_matrix *m, double x) { double *v2; int i; int n; if (m && m->rows && m->cols) { n = m->rows * m->cols; for (i = 0; i < n; ++i) { v2 = &m->val[i]; *v2 = pow(*v2, x); } } }
void gretl_matrix_raise(gretl_matrix *m, double x) { if (!gretl_is_null_matrix(m)) { int i, n = m->rows * m->cols; for (i = 0; i < n; i++) { m->val[i] = pow(m->val[i], x); } } }
gretl_matrix_raise
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_random_fill(gretl_matrix *m, int dist) { int n; if (!m || dist != 1 && dist != 3) return 1; n = m->rows * m->cols; if (n > 0) { if (dist == 3) gretl_rand_normal(m->val, 0, n - 1); else gretl_rand_uniform(m->val, 0, n - 1); } return 0; }
int gretl_matrix_random_fill(gretl_matrix *m, int dist) { int n; if (m == NULL || (dist != D_UNIFORM && dist != D_NORMAL)) { return 1; } n = m->rows * m->cols; if (n > 0) { if (dist == D_NORMAL) { gretl_rand_normal(m->val, 0, n - 1); } else if (dist == D_UNIFORM) { gretl_rand_unifor...
gretl_matrix_random_fill
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_rank(const gretl_matrix *a, int *err) { int rows; int i; int rank; int k; gretl_matrix *s; gretl_matrix *b; double smin; unsigned long v10; v10 = __readfsqword(0x28u); s = 0; rank = 0; if (!a || !a->rows || !a->cols) return 0; rows = a->rows; if (a->cols <= a->rows) ...
int gretl_matrix_rank(const gretl_matrix *a, int *err) { gretl_matrix *s = NULL; int i, k, rank = 0; if (gretl_is_null_matrix(a)) { return 0; } k = (a->rows < a->cols) ? a->rows : a->cols; if (a->rows > 4 * k || a->cols > 4 * k) { gretl_matrix *b = gretl_matrix_alloc(k, k); GretlMatrixMod mod...
gretl_matrix_rank
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_matrix_rank_mask(const gretl_matrix *m, int *err) { int fullrank; int i; _BYTE n[12]; gretl_matrix *Q; gretl_matrix *R; *(_DWORD *)&n[8] = 0; fullrank = 1; *(_QWORD *)n = (unsigned int)m->cols; Q = gretl_matrix_copy(m); if (Q) { R = gretl_matrix_alloc(*(int *)n, *(int *)n); if (...
char *gretl_matrix_rank_mask(const gretl_matrix *m, int *err) { gretl_matrix *Q = NULL; gretl_matrix *R = NULL; char *mask = NULL; double Ri; int fullrank = 1; int i, n = m->cols; Q = gretl_matrix_copy(m); if (Q == NULL) { *err = E_ALLOC; return NULL; } R = gretl_matrix_alloc(n, n); if (...
gretl_matrix_rank_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_matrix_rcond(const gretl_matrix *m, int *err) { return gretl_general_matrix_rcond(m, err); }
double gretl_matrix_rcond(const gretl_matrix *m, int *err) { return gretl_general_matrix_rcond(m, err); }
gretl_matrix_rcond
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_read_from_file(const char *fname, int import, int *err) { const char *v3; const char *v4; int r; int c; int is_complex; int n; int bin; int i; int j; int gz; double x; gchar *unzname; gretl_matrix *A; FILE *fp; long pos; ...
gretl_matrix *gretl_matrix_read_from_file(const char *fname, int import, int *err) { char fullname[FILENAME_MAX]; gchar *unzname = NULL; int r = -1, c = -1, n = 0; int gz, bin = 0; gretl_matrix *A = NULL; int is_complex = 0; FILE *fp = NULL; gz = has_suffix(fna...
gretl_matrix_read_from_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_realloc(gretl_matrix *m, int rows, int cols) { int n; int oldrows; int oldcols; double *x; n = cols * rows; x = 0; if (!m) return 2; if (rows == m->rows && cols == m->cols) return 0; if (n == m->rows * m->cols) { m->rows = rows; m->cols = cols; gretl_matrix_destro...
int gretl_matrix_realloc(gretl_matrix *m, int rows, int cols) { int n = rows * cols; int oldrows, oldcols; double *x = NULL; if (m == NULL) { return E_DATA; } if (rows == m->rows && cols == m->cols) { return 0; } if (m->rows * m->cols == n) { m->rows = rows; m->cols = cols; gret...
gretl_matrix_realloc
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_replace(gretl_matrix **pa, gretl_matrix *b) { gretl_matrix_free(*pa); *pa = b; return b; }
gretl_matrix *gretl_matrix_replace(gretl_matrix **pa, gretl_matrix *b) { gretl_matrix_free(*pa); *pa = b; return b; }
gretl_matrix_replace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_replace_content(gretl_matrix *targ, gretl_matrix *donor) { if (targ->info == (matrix_info *)3735928559LL || donor->info == (matrix_info *)3735928559LL) { matrix_block_error("gretl_matrix_replace_content"); return 2; } else { gretl_matrix_destroy_info(targ); free(targ->val); ...
int gretl_matrix_replace_content(gretl_matrix *targ, gretl_matrix *donor) { if (is_block_matrix(targ) || is_block_matrix(donor)) { matrix_block_error("gretl_matrix_replace_content"); return E_DATA; } else { gretl_matrix_destroy_info(targ); free(targ->val); targ->rows = donor->rows; targ->col...
gretl_matrix_replace_content
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_resample(const gretl_matrix *m, int draws, int *err) { gretl_matrix *v4; gretl_matrix *R; if (m && m->rows && m->cols) { if (m->is_complex) { *err = 50; return 0; } else if (draws >= 0) { if (draws <= 0) v4 = gretl_m...
gretl_matrix *gretl_matrix_resample(const gretl_matrix *m, int draws, int *err) { gretl_matrix *R = NULL; int r; if (gretl_is_null_matrix(m)) { *err = E_DATA; return NULL; } else if (m->is_complex) { *err = E_CMPLX; return NULL; } if (draws < 0) { *e...
gretl_matrix_resample
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_resample2(gretl_matrix *targ, const gretl_matrix *src) { if (!targ || !targ->rows || !targ->cols || !src || !src->rows || !src->cols) return 2; if (targ->is_complex || src->is_complex) return 50; return real_matrix_resample(targ, src); }
int gretl_matrix_resample2(gretl_matrix *targ, const gretl_matrix *src) { if (gretl_is_null_matrix(targ) || gretl_is_null_matrix(src)) { return E_DATA; } else if (targ->is_complex || src->is_complex) { return E_CMPLX; } else { return real_matrix_resample(targ, src); } }
gretl_matrix_resample2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_restricted_multi_ols(const gretl_matrix *Y, const gretl_matrix *X, const gretl_matrix *R, const gretl_matrix *q, gretl_matrix *B, gretl_matrix *U, gret...
int gretl_matrix_restricted_multi_ols(const gretl_matrix *Y, const gretl_matrix *X, const gretl_matrix *R, const gretl_matrix *q, gretl_matrix *B, gretl_matrix *U, gret...
gretl_matrix_restricted_multi_ols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_restricted_ols(const gretl_vector *y, const gretl_matrix *X, const gretl_matrix *R, const gretl_vector *q, gretl_vector *b, gretl_matrix *vcv, gretl_vector *uhat, double *s2) { int rows; int err; int i...
int gretl_matrix_restricted_ols(const gretl_vector *y, const gretl_matrix *X, const gretl_matrix *R, const gretl_vector *q, gretl_vector *b, gretl_matrix *vcv, gretl_vector *uhat, double *s2) { gretl_matrix *W = NULL; do...
gretl_matrix_restricted_ols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_reuse(gretl_matrix *m, int rows, int cols) { int v3; int v4; int r; if (rows > 0) v3 = rows; else v3 = m->rows; r = v3; if (cols > 0) v4 = cols; else v4 = m->cols; m->rows = r; m->cols = v4; return m; }
gretl_matrix *gretl_matrix_reuse(gretl_matrix *m, int rows, int cols) { int r = rows > 0 ? rows : m->rows; int c = cols > 0 ? cols : m->cols; m->rows = r; m->cols = c; return m; }
gretl_matrix_reuse
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_reverse_cols(const gretl_matrix *m, int *err) { int i; int r; int c; double *x; double *y; gretl_matrix *ret; if (m) { if (m->rows && m->cols) { r = m->rows; c = m->cols; ret = gretl_matching_matrix_new(m->rows, c, m); if (ret) { if (m->is_co...
gretl_matrix *gretl_matrix_reverse_cols(const gretl_matrix *m, int *err) { gretl_matrix *ret; const double *x; double *y; size_t csize; int i, r, c; if (m == NULL) { *err = E_INVARG; return NULL; } else if (gretl_is_null_matrix(m)) { return gretl_null_matrix_new(); } r = m->rows; c = m...
gretl_matrix_reverse_cols
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_reverse_rows(const gretl_matrix *m, int *err) { complex_double *v3; double *p_real; int i; int j; int r; gretl_matrix *ret; double z; double z_8; if (m) { if (m->rows && m->cols) { r = m->rows; ret = gretl_matching_matrix_new(m->rows, m->cols, m); if (...
gretl_matrix *gretl_matrix_reverse_rows(const gretl_matrix *m, int *err) { gretl_matrix *ret; int i, j, r, c; if (m == NULL) { *err = E_INVARG; return NULL; } else if (gretl_is_null_matrix(m)) { return gretl_null_matrix_new(); } r = m->rows; c = m->cols; ret = gretl_matching_matrix_new(r,...
gretl_matrix_reverse_rows
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_right_nullspace(const gretl_matrix *M, int *err) { int v3; int v4; char E; int i; int j; int k; int m; int n; int r; int sz; gretl_matrix *V; gretl_matrix *S; gretl_matrix *R; double eps; double smin; double x; unsigned long v19; v19 = __readfsqword(0x28u)...
gretl_matrix *gretl_matrix_right_nullspace(const gretl_matrix *M, int *err) { gretl_matrix *R = NULL; gretl_matrix *V = NULL; gretl_matrix *S = NULL; int i, j, k; if (gretl_is_null_matrix(M)) { *err = E_DATA; return NULL; } *err = real_gretl_matrix_SVD(M, NULL, &S, &V, 1); if (!*err) { ch...
gretl_matrix_right_nullspace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_row_concat(const gretl_matrix *a, const gretl_matrix *b, int *err) { complex_double *z; double real; double imag; double *p_real; complex_double *v8; double v9; double v10; double *v11; complex_double *v12; double v13; double v14; ...
gretl_matrix *gretl_matrix_row_concat(const gretl_matrix *a, const gretl_matrix *b, int *err) { gretl_matrix *c = NULL; if (a == NULL || b == NULL) { *err = E_DATA; } else if (true_null_matrix(a)) { c = gretl_matrix_copy(b); goto finish; } else if (true_null_ma...
gretl_matrix_row_concat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_row_to_array(const gretl_matrix *m, int i, double *x) { int v3; int j; int err; err = 0; if (i < 0) return 2; v3 = m ? m->rows : 0; if (v3 <= i) return 2; for (j = 0; j < m->cols; ++j) x[j] = m->val[j * m->rows + i]; return err; }
int gretl_matrix_row_to_array(const gretl_matrix *m, int i, double *x) { int j, err = 0; if (i < 0 || i >= gretl_matrix_rows(m)) { err = E_DATA; } else { for (j = 0; j < m->cols; j++) { x[j] = gretl_matrix_get(m, i, j); } } return err; }
gretl_matrix_row_to_array
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_seq(double start, double end, double step, int *err) { double v5; double v6; double stepa; int i; int ia; int ib; int n; double k; double ka; gretl_matrix *v; stepa = step; k = start; n = 0; if (step > 0.0) { if (step == 1.0) { ...
gretl_matrix *gretl_matrix_seq(double start, double end, double step, int *err) { gretl_matrix *v; int reverse = (start > end); double k = start; int i, n = 0; if (step <= 0) { *err = E_DATA; return NULL; } if (step == 1.0) { if (reverse) { n = start - en...
gretl_matrix_seq
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_serialize(const gretl_matrix *m, const char *name, PRN *prn) { const char *v3; const char *v4; int is_complex; int i; int j; int ja; int jb; int mt1; int mt2; const char **S; const char **Sa; is_complex = 0; if (m) { if (name) pprintf(prn, "<gretl-matrix name=\"%s\...
void gretl_matrix_serialize(const gretl_matrix *m, const char *name, PRN *prn) { int is_complex = 0; const char **S; double x; int i, j; if (m == NULL) { return; } if (name == NULL) { pprintf(prn, "<gretl-matrix rows=\"%d\" cols=\"%d\"\n", m->rows, m->cols); } else { pprintf(prn, "<gretl-m...
gretl_matrix_serialize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_colnames(gretl_matrix *m, char **S) { if (!m) return 2; if (m->info == (matrix_info *)3735928559LL) return matrix_block_error("gretl_matrix_set_colnames"); if (S && !m->info && gretl_matrix_add_info(m)) return 12; if (m->info) { if (m->info->colnames) strings_array_fre...
int gretl_matrix_set_colnames(gretl_matrix *m, char **S) { if (m == NULL) { return E_DATA; } else if (is_block_matrix(m)) { return matrix_block_error("gretl_matrix_set_colnames"); } else if (S != NULL && m->info == NULL && gretl_matrix_add_info(m)) { return E_ALLOC; } if (m->info != NULL) { i...
gretl_matrix_set_colnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_complex(gretl_matrix *m, int c) { return matrix_set_complex(m, c, 0); }
int gretl_matrix_set_complex(gretl_matrix *m, int c) { return matrix_set_complex(m, c, 0); }
gretl_matrix_set_complex
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_complex_full(gretl_matrix *m, int c) { return matrix_set_complex(m, c, 1); }
int gretl_matrix_set_complex_full(gretl_matrix *m, int c) { return matrix_set_complex(m, c, 1); }
gretl_matrix_set_complex_full
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_diagonal(gretl_matrix *targ, const gretl_matrix *src, double x) { int rows; int cols; int i; int match; int err; int n; match = 0; err = 0; if (!targ || !targ->rows || !targ->cols || targ->is_complex) return 17; if (src && src->is_complex) ...
int gretl_matrix_set_diagonal(gretl_matrix *targ, const gretl_matrix *src, double x) { int i, n, match = 0; int err = 0; if (gretl_is_null_matrix(targ) || targ->is_complex) { return E_INVARG; } else if (src != NULL && src->is_complex) { return E_INVARG; } n = MIN(targ...
gretl_matrix_set_diagonal
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_set_equals_tolerance(double tol) { eq_tol = tol; }
void gretl_matrix_set_equals_tolerance(double tol) { eq_tol = tol; }
gretl_matrix_set_equals_tolerance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_part(gretl_matrix *targ, const gretl_matrix *src, double x, SelType sel) { int err; _BOOL4 upper; err = 0; switch (sel) { case SEL_DIAG: if (targ->is_complex) return gretl_cmatrix_set_diagonal(targ, src, x); else return gretl_matrix_set_diago...
int gretl_matrix_set_part(gretl_matrix *targ, const gretl_matrix *src, double x, SelType sel) { int err = 0; if (sel == SEL_DIAG) { if (targ->is_complex) { err = gretl_cmatrix_set_diagonal(targ, src, x); } else { err = gretl_matrix_set_diagonal(targ, src, x); } }...
gretl_matrix_set_part
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_rownames(gretl_matrix *m, char **S) { if (!m) return 2; if (m->info == (matrix_info *)3735928559LL) return matrix_block_error("gretl_matrix_set_rownames"); if (S && !m->info && gretl_matrix_add_info(m)) return 12; if (m->info) { if (m->info->rownames) strings_array_fre...
int gretl_matrix_set_rownames(gretl_matrix *m, char **S) { if (m == NULL) { return E_DATA; } else if (is_block_matrix(m)) { return matrix_block_error("gretl_matrix_set_rownames"); } else if (S != NULL && m->info == NULL && gretl_matrix_add_info(m)) { return E_ALLOC; } if (m->info != NULL) { i...
gretl_matrix_set_rownames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_t1(gretl_matrix *m, int t) { if (!m) return 2; if (m->info == (matrix_info *)3735928559LL) return matrix_block_error("gretl_matrix_set_t1"); if (!m->info && gretl_matrix_add_info(m)) return 12; m->info->t1 = t; return 0; }
int gretl_matrix_set_t1(gretl_matrix *m, int t) { if (m == NULL) { return E_DATA; } else if (is_block_matrix(m)) { return matrix_block_error("gretl_matrix_set_t1"); } else if (m->info == NULL && gretl_matrix_add_info(m)) { return E_ALLOC; } m->info->t1 = t; return 0; }
gretl_matrix_set_t1
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_t2(gretl_matrix *m, int t) { if (!m) return 2; if (m->info == (matrix_info *)3735928559LL) return matrix_block_error("gretl_matrix_set_t2"); if (!m->info && gretl_matrix_add_info(m)) return 12; m->info->t2 = t; return 0; }
int gretl_matrix_set_t2(gretl_matrix *m, int t) { if (m == NULL) { return E_DATA; } else if (is_block_matrix(m)) { return matrix_block_error("gretl_matrix_set_t2"); } else if (m->info == NULL && gretl_matrix_add_info(m)) { return E_ALLOC; } m->info->t2 = t; return 0; }
gretl_matrix_set_t2
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_set_triangle(gretl_matrix *targ, const gretl_matrix *src, double x, int upper) { int rows; int cols; int v7; int v8; int v9; int i; int j; int n; int match; int err; int imin; int imax; int k; int r; int c; int jmax; match = 0; err = 0;...
int gretl_matrix_set_triangle(gretl_matrix *targ, const gretl_matrix *src, double x, int upper) { int r, c, p, i, j, n; int lower = !upper; int match = 0; int err = 0; if (gretl_is_null_matrix(targ) || targ->is_complex) { return E_INVARG; } else if (src != NULL && src->is_...
gretl_matrix_set_triangle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_shape(const gretl_matrix *A, int r, int c, int *err) { int v5; long ca; int nA; int nB; int i; int k; gretl_matrix *B; HIDWORD(ca) = r; LODWORD(ca) = c; if (A && A->rows && A->cols && r >= 0 && c >= 0) { if (ca > 0) { if (A->is_c...
gretl_matrix *gretl_matrix_shape(const gretl_matrix *A, int r, int c, int *err) { gretl_matrix *B = NULL; if (gretl_is_null_matrix(A) || r < 0 || c < 0) { *err = E_INVARG; return NULL; } if (r == 0 && c == 0) { return gretl_null_matrix_new(); } if (A->is_compl...
gretl_matrix_shape
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_solve(gretl_matrix *a, gretl_matrix *b) { if (!a || !a->rows || !a->cols || !b || !b->rows || !b->cols) return 2; if (a->rows == a->cols) return gretl_LU_solve(a, b); if (a->rows <= a->cols) return 2; return QR_solve(a, b); }
static int gretl_matrix_solve(gretl_matrix *a, gretl_matrix *b) { if (gretl_is_null_matrix(a) || gretl_is_null_matrix(b)) { return E_DATA; } if (a->rows == a->cols) { return gretl_LU_solve(a, b); } else if (a->rows > a->cols) { return QR_solve(a, b); } else { return E_DATA; } }
gretl_matrix_solve
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_sort_by_column(const gretl_matrix *m, int k, int *err) { int i; int ia; int ib; int ic; int j; gretl_matrix_sort_by_column_rsort *rs; gretl_matrix *a; char **S; if (m && m->rows && m->cols && k >= 0 && k < m->cols) { rs = (gretl...
gretl_matrix *gretl_matrix_sort_by_column(const gretl_matrix *m, int k, int *err) { struct rsort { double x; int row; } *rs; gretl_matrix *a; double x; int i, j; if (gretl_is_null_matrix(m) || k < 0 || k >= m->cols) { *err = E_DATA; return NULL; }...
gretl_matrix_sort_by_column
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_array *gretl_matrix_split_by(const gretl_matrix *X, const gretl_matrix *v, int colwise, int *err) { int cols; bool v5; int rows; int v8; int i; int ia; int nm; int chunk; int dim; gretl_array *ret; gretl_matrix *vals; double *sel; double x; ret = 0; ...
gretl_array *gretl_matrix_split_by(const gretl_matrix *X, const gretl_matrix *v, int colwise, int *err) { gretl_array *ret = NULL; int i, dim, nm = 0; int chunk = 0; gretl_matrix *vals = NULL; const double *sel; double x; dim = colwise ? X->cols : X->rows; if (gretl_...
gretl_matrix_split_by
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_standardize(gretl_matrix *m, int dfcorr) { int i; int ia; int ib; int j; double xbar; double xbara; double sdc; double sdca; double x; gretl_matrix *v12; int v13; unsigned long v14; v14 = __readfsqword(0x28u); if (m->rows <= 1) return 45; if (m->cols == 1 || m->rows *...
int gretl_matrix_standardize(gretl_matrix *m, int dfcorr) { double x, xbar, sdc; int i, j; if (m->rows < 2) { return E_TOOFEW; } #if defined(_OPENMP) if (m->cols == 1 || m->rows * m->cols < 4096) { goto st_mode; } #pragma omp parallel for private(i, j, x, xbar, sdc) for (j = 0; j < m->cols; j++)...
gretl_matrix_standardize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double *gretl_matrix_steal_data(gretl_matrix *m) { double *vals; vals = 0; if (m) { if (m->info == (matrix_info *)3735928559LL) { matrix_block_error("gretl_matrix_steal_data"); return 0; } vals = m->val; m->val = 0; m->z = 0; } return vals; }
double *gretl_matrix_steal_data(gretl_matrix *m) { double *vals = NULL; if (m != NULL) { if (is_block_matrix(m)) { matrix_block_error("gretl_matrix_steal_data"); return NULL; } vals = m->val; m->val = NULL; m->z = NULL; } return vals; }
gretl_matrix_steal_data
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_subtract(const gretl_matrix *a, const gretl_matrix *b, gretl_matrix *c) { int i; int rows; int cols; rows = a->rows; cols = a->cols; if (a->is_complex || b->is_complex) { fwrite("E_CMPLX in gretl_matrix_subtract\n", 1u, 0x21u, stderr); return 50; } else ...
int gretl_matrix_subtract(const gretl_matrix *a, const gretl_matrix *b, gretl_matrix *c) { int rows = a->rows, cols = a->cols; int i, n; if (a->is_complex || b->is_complex) { fprintf(stderr, "E_CMPLX in gretl_matrix_subtract\n"); return E_CMPLX; } else if (b->rows != rows || c...
gretl_matrix_subtract
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_subtract_from(gretl_matrix *targ, const gretl_matrix *src) { int i; int n; _QWORD v5[2]; int v6; unsigned long v7; v7 = __readfsqword(0x28u); if (targ->is_complex || src->is_complex) { fwrite("E_CMPLX in gretl_matrix_subtract_from\n", 1u, 0x26u, stderr); return 50; } else if (t...
int gretl_matrix_subtract_from(gretl_matrix *targ, const gretl_matrix *src) { int i, n; if (targ->is_complex || src->is_complex) { fprintf(stderr, "E_CMPLX in gretl_matrix_subtract_from\n"); return E_CMPLX; } else if (targ->rows != src->rows || targ->cols != src->cols) { if (matrix_is_scalar(src)) { ...
gretl_matrix_subtract_from
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_subtract_reversed(const gretl_matrix *a, gretl_matrix *b) { int i; int n; _QWORD v5[2]; int v6; unsigned long v7; v7 = __readfsqword(0x28u); if (a->rows != b->rows || a->cols != b->cols) return 36; n = a->rows * b->cols; if (gretl_use_openmp(n)) { v6 = n; v5[1] = b; v...
int gretl_matrix_subtract_reversed(const gretl_matrix *a, gretl_matrix *b) { int i, n; if (a->rows != b->rows || a->cols != b->cols) { return E_NONCONF; } n = a->rows * b->cols; #if defined(_OPENMP) if (!gretl_use_openmp(n)) { goto st_mode; } #pragma omp parallel for private(i) for (i = 0; i < ...
gretl_matrix_subtract_reversed
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_switch_sign(gretl_matrix *m) { int i; int n; if (m && m->rows && m->cols) { n = m->rows * m->cols; for (i = 0; i < n; ++i) m->val[i] = -m->val[i]; } }
void gretl_matrix_switch_sign(gretl_matrix *m) { if (!gretl_is_null_matrix(m)) { int i, n = m->rows * m->cols; for (i = 0; i < n; i++) { m->val[i] = -m->val[i]; } } }
gretl_matrix_switch_sign
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_matrix_trace(const gretl_matrix *m) { int i; double tr; tr = 0.0; if (!m || !m->rows || !m->cols || m->rows != m->cols) return NAN; for (i = 0; i < m->rows; ++i) tr = m->val[i * m->rows + i] + tr; return tr; }
double gretl_matrix_trace(const gretl_matrix *m) { double tr = 0.0; int i; if (gretl_is_null_matrix(m) || m->rows != m->cols) { return NADBL; } for (i = 0; i < m->rows; i++) { tr += gretl_matrix_get(m, i, i); } return tr; }
gretl_matrix_trace
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_transcribe_obs_info(gretl_matrix *targ, const gretl_matrix *src) { if (targ->rows == src->rows && src->info && !targ->info) { gretl_matrix_set_t1(targ, src->info->t1); gretl_matrix_set_t2(targ, src->info->t2); } }
void gretl_matrix_transcribe_obs_info(gretl_matrix *targ, const gretl_matrix *src) { if (targ->rows == src->rows && src->info != NULL && targ->info == NULL) { gretl_matrix_set_t1(targ, src->info->t1); gretl_matrix_set_t2(targ, src->info->t2); } }
gretl_matrix_transcribe_obs_info
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_transpose(gretl_matrix *targ, const gretl_matrix *src) { int v3; int i; int j; int k; k = 0; if (targ->rows != src->cols || targ->cols != src->rows) return 36; for (j = 0; j < src->cols; ++j) { for (i = 0; i < src->rows; ++i) { v3 = k++; targ->val[i * targ->rows + j] ...
int gretl_matrix_transpose(gretl_matrix *targ, const gretl_matrix *src) { int i, j, k = 0; double x; if (targ->rows != src->cols || targ->cols != src->rows) { return E_NONCONF; } for (j = 0; j < src->cols; j++) { for (i = 0; i < src->rows; i++) { x = src->val[k++]; gretl_matrix_set(targ,...
gretl_matrix_transpose
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_transpose_in_place(gretl_matrix *m) { int v2; int i; int ia; int j; int ja; int k; int r; int c; double *val; double mij; r = m->rows; c = m->cols; gretl_matrix_destroy_info(m); if (r == 1 || c == 1) { m->cols = r; m->rows = c; return 0; } if (r == c) { ...
int gretl_matrix_transpose_in_place(gretl_matrix *m) { int r = m->rows; int c = m->cols; int i, j; gretl_matrix_destroy_info(m); if (r == 1 || c == 1) { m->cols = r; m->rows = c; return 0; } if (r == c) { double mij, mji; int n = r - 1; for (i = 0; i < n; i++) { for (j = ...
gretl_matrix_transpose_in_place
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_trim_rows(const gretl_matrix *A, int ttop, int tbot, int *err) { complex_double *v5; double *p_real; int i; int j; int m; gretl_matrix *B; double z; double z_8; if (A && A->rows && A->cols) { m = A->rows - (ttop + tbot); if (ttop...
gretl_matrix *gretl_matrix_trim_rows(const gretl_matrix *A, int ttop, int tbot, int *err) { gretl_matrix *B; double complex z; double x; int i, j, m; if (gretl_is_null_matrix(A)) { *err = E_DATA; return NULL; } m = A->rows - (ttop + tbot); if (ttop < 0 || ...
gretl_matrix_trim_rows
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_unset_equals_tolerance() { eq_tol = 0.000000001; }
void gretl_matrix_unset_equals_tolerance(void) { eq_tol = DEFAULT_EQTOL; }
gretl_matrix_unset_equals_tolerance
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_unvectorize(gretl_matrix *targ, const gretl_matrix *src) { int n; if (!src || !src->rows || !src->cols || !targ || !targ->rows || !targ->cols) return 2; if (src->is_complex + targ->is_complex == 1) return 51; n = targ->rows * targ->cols; if (*(_QWORD *)&src->rows != ((unsigned int)n ...
int gretl_matrix_unvectorize(gretl_matrix *targ, const gretl_matrix *src) { int n; if (gretl_is_null_matrix(src) || gretl_is_null_matrix(targ)) { return E_DATA; } else if (src->is_complex + targ->is_complex == 1) { return E_MIXED; } n = targ->rows * targ->cols; if (src->cols != 1 || src->rows != ...
gretl_matrix_unvectorize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_unvectorize_h(gretl_matrix *targ, const gretl_matrix *src) { int v3; complex_double *v4; complex_double *v5; complex_double *v6; int i; int j; int k; int n; double x; double z; double z_8; n = targ->rows; if (src->cols != 1 || n * (n + 1) != 2 * src->rows) return 36; if...
int gretl_matrix_unvectorize_h(gretl_matrix *targ, const gretl_matrix *src) { int n = targ->rows, m = src->rows; double complex z; double x; int i, j, k; if (src->cols != 1 || n * (n + 1) != 2 * m) { return E_NONCONF; } else if (src->is_complex + targ->is_complex == 1) { return E_MIXED; } k = ...
gretl_matrix_unvectorize_h
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_values(const double *x, int n, gretlopt opt, int *err) { int v5; int v6; int v7; int v8; int i; int ia; int ib; int k; int mb; int m; int ma; int j; int add; gretl_matrix *v; double last; double *sorted; sorted = (double *)m...
gretl_matrix *gretl_matrix_values(const double *x, int n, gretlopt opt, int *err) { gretl_matrix *v = NULL; double *sorted = NULL; double last; int i, k, m; sorted = malloc(n * sizeof *sorted); if (sorted == NULL) { *err = E_ALLOC; return NULL; } k = 0; for ...
gretl_matrix_values
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_varsimul(const gretl_matrix *A, const gretl_matrix *U, const gretl_matrix *x0, int *err) { int t; int ta; int i; int p; long n; int T; int t1; gretl_matrix *A2; gretl_matrix *X; gretl_matrix *UT; gre...
gretl_matrix *gretl_matrix_varsimul(const gretl_matrix *A, const gretl_matrix *U, const gretl_matrix *x0, int *err) { gretl_matrix *A2, *X, *UT; gretl_vector xt, xtlag, ut; double x; int p = x0->rows; int n = x0->cols; int np = n * p; ...
gretl_matrix_varsimul
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_vector_stat(const gretl_matrix *m, GretlVecStat vs, int rowwise, int *err) { if (m->is_complex) return gretl_cmatrix_vector_stat(m, vs, rowwise, err); else return gretl_rmatrix_vector_stat(m, vs, rowwise, err); }
gretl_matrix *gretl_matrix_vector_stat(const gretl_matrix *m, GretlVecStat vs, int rowwise, int *err) { if (m->is_complex) { return gretl_cmatrix_vector_stat(m, vs, rowwise, err); } else { return gretl_rmatrix_vector_stat(m, vs, rowwise, err); } }
gretl_matrix_vector_stat
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_vectorize(gretl_matrix *targ, const gretl_matrix *src) { int n; if (!src || !src->rows || !src->cols || !targ || !targ->rows || !targ->cols) return 2; if (src->is_complex + targ->is_complex == 1) return 51; n = src->rows * src->cols; if (*(_QWORD *)&targ->rows != ((unsigned int)n | 0...
int gretl_matrix_vectorize(gretl_matrix *targ, const gretl_matrix *src) { int n; if (gretl_is_null_matrix(src) || gretl_is_null_matrix(targ)) { return E_DATA; } else if (src->is_complex + targ->is_complex == 1) { return E_MIXED; } n = src->rows * src->cols; if (targ->cols != 1 || targ->rows != n)...
gretl_matrix_vectorize
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_vectorize_h(gretl_matrix *targ, const gretl_matrix *src) { complex_double *v3; int v4; complex_double *v5; double imag; int v7; int i; int j; int k; int n; n = src->rows; if (*(_QWORD *)&targ->rows != ((unsigned int)(n * (n + 1) / 2) | 0x100000000LL)) return 36; if (s...
int gretl_matrix_vectorize_h(gretl_matrix *targ, const gretl_matrix *src) { int n = src->rows; int m = n * (n + 1) / 2; int i, j, k; if (targ->cols != 1 || targ->rows != m) { return E_NONCONF; } else if (src->is_complex + targ->is_complex == 1) { return E_MIXED; } k = 0; for (i = 0; i < n; i++...
gretl_matrix_vectorize_h
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_vectorize_new(const gretl_matrix *m) { int n; gretl_matrix *v; if (!m || !m->rows || !m->cols) return 0; n = m->rows * m->cols; v = gretl_matching_matrix_new(n, 1, m); if (v) { if (m->is_complex) n *= 2; memcpy(v->val, m->val, 8LL * n); } return v; }
gretl_matrix *gretl_matrix_vectorize_new(const gretl_matrix *m) { gretl_matrix *v; int n; if (gretl_is_null_matrix(m)) { return NULL; } n = m->rows * m->cols; v = gretl_matching_matrix_new(n, 1, m); if (v != NULL) { if (m->is_complex) { n *= 2; } memcpy(v->val, m->val, n * sizeof...
gretl_matrix_vectorize_new
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_write_as_gdt(const char *fname, const gretl_matrix *X, const char **varnames, const char **labels) { char *v4; unsigned long v6; double v7; int in_c_locale; int i; int ia; int t; int err; int T; _BYTE k[12]; double msize; gzFile fz; char *xmlbuf; ...
int gretl_matrix_write_as_gdt(const char *fname, const gretl_matrix *X, const char **varnames, const char **labels) { gzFile fz = Z_NULL; char datname[MAXLEN]; char *xmlbuf = NULL; int (*show_progress)(double, double, int) = NULL; double msize = 0; int T = X->rows; int k = X-...
gretl_matrix_write_as_gdt
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_write_to_file(gretl_matrix *A, const char *fname, int export) { const char *v4; const char *v5; size_t v6; char v7; const char *fnamea; char pad; int err; int i; int j; int is_complex; int csv; int bin; int gz; int r; int c; int format_g; PRN *prn; FILE *fp; double...
int gretl_matrix_write_to_file(gretl_matrix *A, const char *fname, int export) { char targ[FILENAME_MAX]; int r, c, i, j; int is_complex = 0; PRN *prn = NULL; FILE *fp = NULL; int csv = 0; int gz, bin = 0; int err = 0; gz = has_suffix(fname, ".gz"); if (!gz) { bin = has_suffix(fname, ".bin"); ...
gretl_matrix_write_to_file
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
gretl_matrix *gretl_matrix_xtab(int t1, int t2, const double *x, const double *y, int *err) { int v6; int v7; int rows; int v9; int i; int ia; int ib; int t; int ta; int tb; _BYTE nmax[12]; double **X; gretl_matrix *vx; gretl_matrix *vy; double *tmp; *(_D...
gretl_matrix *gretl_matrix_xtab(int t1, int t2, const double *x, const double *y, int *err) { gretl_matrix *tab = NULL; gretl_matrix *vx = NULL; gretl_matrix *vy = NULL; double *tmp = NULL; double **X = NULL; int i, t, nmax = t2 - t1 + 1; *err = 0; nmax = ok_xy_count(t1...
gretl_matrix_xtab
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_xtr_symmetric(gretl_matrix *m) { double *v1; int i; int j; int mij; for (i = 0; i < m->rows; ++i) { for (j = 0; j < i; ++j) { mij = j * m->rows + i; v1 = &m->val[i * m->rows + j]; *v1 = 0.5 * (*v1 + m->val[mij]); m->val[mij] = *v1; } } }
void gretl_matrix_xtr_symmetric(gretl_matrix *m) { double x; int mij, mji; int i, j; for (i = 0; i < m->rows; i++) { for (j = 0; j < i; j++) { mij = mdx(m, i, j); mji = mdx(m, j, i); x = m->val[mij]; x += m->val[mji]; m->val[mij] = m->val[mji] = 0.5 * x; } } }
gretl_matrix_xtr_symmetric
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_matrix_zero(gretl_matrix *m) { int i; int n; n = m->rows * m->cols; for (i = 0; i < n; ++i) m->val[i] = 0.0; }
void gretl_matrix_zero(gretl_matrix *m) { int i, n = m->rows * m->cols; for (i = 0; i < n; i++) { m->val[i] = 0.0; } }
gretl_matrix_zero
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_matrix_zero_col_mask(const gretl_matrix *m, int *err) { int col0; int any0; int i; int j; char *mask; any0 = 0; mask = (char *)calloc(m->cols, 1u); if (mask) { for (j = 0; j < m->cols; ++j) { col0 = 1; for (i = 0; i < m->rows; ++i) { if (m->val[j * m->rows + i] != 0....
char *gretl_matrix_zero_col_mask(const gretl_matrix *m, int *err) { char *mask = NULL; int col0, any0 = 0; int i, j; mask = calloc(m->cols, 1); if (mask == NULL) { *err = E_ALLOC; return NULL; } for (j = 0; j < m->cols; j++) { col0 = 1; for (i = 0; i < m->rows; i++) { if (gretl_mat...
gretl_matrix_zero_col_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_matrix_zero_diag_mask(const gretl_matrix *m, int *err) { int i; int ia; int trim; char *mask; mask = 0; trim = 0; if (!m || !m->rows || !m->cols) return 0; if (m->rows == m->cols) { for (i = 0; i < m->rows; ++i) { if (m->val[i * m->rows + i] == 0.0) { trim = 1; ...
char *gretl_matrix_zero_diag_mask(const gretl_matrix *m, int *err) { char *mask = NULL; int i, trim = 0; if (gretl_is_null_matrix(m)) { return NULL; } if (m->rows != m->cols) { *err = E_NONCONF; return NULL; } for (i = 0; i < m->rows; i++) { if (gretl_matrix_get(m, i, i) == 0.0) { ...
gretl_matrix_zero_diag_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_zero_lower(gretl_matrix *m) { return gretl_matrix_zero_triangle(m, 76); }
int gretl_matrix_zero_lower(gretl_matrix *m) { return gretl_matrix_zero_triangle(m, 'L'); }
gretl_matrix_zero_lower
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_matrix_zero_row_mask(const gretl_matrix *m, int *err) { int row0; int any0; int i; int j; char *mask; any0 = 0; mask = (char *)calloc(m->rows, 1u); if (mask) { for (i = 0; i < m->rows; ++i) { row0 = 1; for (j = 0; j < m->cols; ++j) { if (m->val[j * m->rows + i] != 0....
char *gretl_matrix_zero_row_mask(const gretl_matrix *m, int *err) { char *mask = NULL; int row0, any0 = 0; int i, j; mask = calloc(m->rows, 1); if (mask == NULL) { *err = E_ALLOC; return NULL; } for (i = 0; i < m->rows; i++) { row0 = 1; for (j = 0; j < m->cols; j++) { if (gretl_mat...
gretl_matrix_zero_row_mask
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_zero_triangle(gretl_matrix *m, char t) { complex_double *v3; complex_double *v4; int i; int ia; int j; int ja; if (!m || !m->rows || !m->cols) return 2; if (m->rows != m->cols) return 36; if (t == 85) { for (i = 0; i < m->rows - 1; ++i) { for (j = i + 1; j < m->cols...
static int gretl_matrix_zero_triangle(gretl_matrix *m, char t) { int i, j; if (gretl_is_null_matrix(m)) { return E_DATA; } else if (m->rows != m->cols) { return E_NONCONF; } if (t == 'U') { for (i = 0; i < m->rows - 1; i++) { for (j = i + 1; j < m->cols; j++) { if (m->is_complex) {...
gretl_matrix_zero_triangle
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_matrix_zero_upper(gretl_matrix *m) { return gretl_matrix_zero_triangle(m, 85); }
int gretl_matrix_zero_upper(gretl_matrix *m) { return gretl_matrix_zero_triangle(m, 'U'); }
gretl_matrix_zero_upper
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_max(int t1, int t2, const double *x) { double min; double max[2]; *(_QWORD *)&max[1] = __readfsqword(0x28u); gretl_minmax(t1, t2, x, &min, max); return max[0]; }
double gretl_max(int t1, int t2, const double *x) { double min, max; gretl_minmax(t1, t2, x, &min, &max); return max; }
gretl_max
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
char *gretl_maybe_prepend_dir(char *fname) { const gchar *home; char tmp[4104]; unsigned long v4; v4 = __readfsqword(0x28u); tmp[0] = 0; if (*fname == 126 && fname[1] == 47) { home = getenv("HOME"); if (home) gretl_build_path(tmp, home, fname + 2, 0); } else if (!(unsigned int)g_path_is_abs...
char *gretl_maybe_prepend_dir(char *fname) { char tmp[FILENAME_MAX]; *tmp = '\0'; if (fname[0] == '~' && fname[1] == '/') { char *home = getenv("HOME"); if (home != NULL) { gretl_build_path(tmp, home, fname + 2, NULL); } } else if (!g_path_is_absolute(fname)) { gretl_build_path(tmp, pat...
gretl_maybe_prepend_dir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
const char *gretl_maybe_switch_dir(const char *fname) { const char *fnamea; const char *home; fnamea = fname; if (*fname == 126 && fname[1] == 47) { home = getenv("HOME"); if (home && !gretl_chdir(home)) return fname + 2; } else if (!(unsigned int)g_path_is_absolute(fname)) { gretl_chdir(pa...
const char *gretl_maybe_switch_dir(const char *fname) { if (fname[0] == '~' && fname[1] == '/') { char *home = getenv("HOME"); if (home != NULL && gretl_chdir(home) == 0) { fname += 2; } } else if (!g_path_is_absolute(fname)) { gretl_chdir(paths.workdir); } return fname; }
gretl_maybe_switch_dir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_mean(int t1, int t2, const double *x) { int t; int ta; int n; double sum; double suma; double xbar; sum = 0.0; n = 0; for (t = t1; t <= t2; ++t) { if (fabs(x[t]) <= 1.797693134862316e308) { sum = x[t] + sum; ++n; } } if (!n) return NAN; xbar = sum / (double)...
double gretl_mean(int t1, int t2, const double *x) { double xbar, sum = 0.0; int t, n = 0; for (t = t1; t <= t2; t++) { if (!(na(x[t]))) { sum += x[t]; n++; } } if (n == 0) { return NADBL; } xbar = sum / n; sum = 0.0; for (t = t1; t <= t2; t++) { if (!(na(x[t]))) { ...
gretl_mean
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_median(int t1, int t2, const double *x) { int err; unsigned long v5; v5 = __readfsqword(0x28u); err = 0; return gretl_quantile(t1, t2, x, 0.5, OPT_NONE, &err); }
double gretl_median(int t1, int t2, const double *x) { int err = 0; return gretl_quantile(t1, t2, x, 0.5, OPT_NONE, &err); }
gretl_median
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_messages_on() { if (check_for_state()) return 1; else return flag_to_bool(state, MSGS_ON); }
int gretl_messages_on(void) { if (check_for_state()) { return 1; } else { return flag_to_bool(state, MSGS_ON); } }
gretl_messages_on
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
double gretl_min(int t1, int t2, const double *x) { double min; double max[2]; *(_QWORD *)&max[1] = __readfsqword(0x28u); gretl_minmax(t1, t2, x, &min, max); return min; }
double gretl_min(int t1, int t2, const double *x) { double min, max; gretl_minmax(t1, t2, x, &min, &max); return min; }
gretl_min
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_minmax(int t1, int t2, const double *x, double *min, double *max) { int n; n = 0; *min = NAN; *max = *min; while (t1 <= t2) { if (fabs(x[t1]) <= 1.797693134862316e308) { if (n) { if (x[t1] > *max) *max = x[t1]; if (*min > x[t1]) *min = x[t1]; } el...
int gretl_minmax(int t1, int t2, const double *x, double *min, double *max) { int t, n = 0; *max = *min = NADBL; for (t = t1; t <= t2; t++) { if (!(na(x[t]))) { if (n == 0) { *max = *min = x[t]; } else { if (x[t] > *max) *max = x[t]; if (x[t] < *min) *...
gretl_minmax
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_mkdir(const char *path) { int *v1; char *v2; int err; *__errno_location() = 0; err = g_mkdir_with_parents(path, 493); if (err) { v1 = __errno_location(); v2 = gretl_strerror(*v1); fprintf(stderr, "%s: %s\n", path, v2); return 1; } return err; }
int gretl_mkdir(const char *path) { int err; errno = 0; err = g_mkdir_with_parents(path, 0755); if (err) { fprintf(stderr, "%s: %s\n", path, gretl_strerror(errno)); err = 1; } return err; }
gretl_mkdir
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
FILE *gretl_mktemp(char *pattern, const char *mode) { int *v2; int fd; FILE *fp; fp = 0; gretl_error_clear(); fd = mkstemp(pattern); if (*__errno_location()) { v2 = __errno_location(); gretl_errmsg_set_from_errno(0, *v2); } else if (fd != -1) { return fdopen(fd, mode); } return fp; }
FILE *gretl_mktemp(char *pattern, const char *mode) { FILE *fp = NULL; int fd; gretl_error_clear(); #ifdef WIN32 fd = g_mkstemp(pattern); #else fd = mkstemp(pattern); #endif if (errno != 0) { gretl_errmsg_set_from_errno(NULL, errno); } else if (fd != -1) { fp = fdopen(fd, mode); } return f...
gretl_mktemp
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_model_add_OPG_vcv(MODEL *pmod, const gretl_matrix *G, gretl_matrix **pV) { int err; gretl_matrix *GG; GG = gretl_matrix_XTX_new(G); if (!GG) return 12; err = gretl_invert_symmetric_matrix(GG); if (err) { gretl_matrix_multiply_mod(G, GRETL_MOD_TRANSPOSE, G, GRET...
int gretl_model_add_OPG_vcv(MODEL *pmod, const gretl_matrix *G, gretl_matrix **pV) { gretl_matrix *GG = gretl_matrix_XTX_new(G); int err = 0; if (GG == NULL) { return E_ALLOC; } err = gretl_invert_symmetric_matrix(GG); if (!err) { err = gretl_model_write_vcv(pmod, GG);...
gretl_model_add_OPG_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
int gretl_model_add_QML_vcv(MODEL *pmod, int ci, const gretl_matrix *H, const gretl_matrix *G, const DATASET *dset, gretlopt opt, gretl_matrix **pV) { int v8; short opta; int cvar; int n_c; int err; int k; MLVCVType vt; gretl_matrix *GG; gretl_ma...
int gretl_model_add_QML_vcv(MODEL *pmod, int ci, const gretl_matrix *H, const gretl_matrix *G, const DATASET *dset, gretlopt opt, gretl_matrix **pV) { gretl_matrix *GG = NULL; gretl_matrix *V = NULL; int cvar = 0, n_c = 0; int k = H->rows; int err = 0; ...
gretl_model_add_QML_vcv
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0
void gretl_model_add_allocated_varnames(MODEL *pmod, char **vnames) { pmod->nparams = pmod->ncoeff; pmod->params = vnames; }
void gretl_model_add_allocated_varnames(MODEL *pmod, char **vnames) { pmod->nparams = pmod->ncoeff; pmod->params = vnames; }
gretl_model_add_allocated_varnames
gretl-2021d
sci-mathematics
O0/sci-mathematics/gretl-2021d/libgretl-1.0.so.40.0.0
ida
O0