|
Matrix r5059
|
Go to the source code of this file.
Macros | |
| #define | SUM_TYPEOF(c) |
| #define | MAP(i) |
| #define | lCAST(x) |
| #define | iCAST(x) |
| #define | dCAST(x) |
| #define | zCAST(x) |
| #define | nCAST(x) |
| #define | SUM(c0, c1) |
| #define | SUM_KERNEL(c0, c1, __for__) |
| #define | SUM(c0, c1) |
| #define | SUM_KERNEL(c0, c1, __for__) |
| #define | nCAST(x) |
| #define | SUM(c0, c1) |
| #define | SUM(c0, c1) |
| #define | SUM(c0, c1) |
Functions | |
| SEXP | sparse_aggregate (SEXP, const char *) |
| static void | dense_colsum (SEXP x, const char *class, int m, int n, char ul, char ct, char nu, int narm, int mean, SEXP ans) |
| static void | dense_rowsum (SEXP x, const char *class, int m, int n, char ul, char ct, char nu, int narm, int mean, SEXP ans) |
| static void | Csparse_colsum (SEXP obj, const char *class, int m, int n, char ul, char ct, char nu, int narm, int mean, SEXP ans) |
| static void | Csparse_rowsum (SEXP obj, const char *class, int m, int n, char ul, char ct, char nu, int narm, int mean, SEXP ans, SEXP iSym) |
| static void | Tsparse_colsum (SEXP obj, const char *class, int m, int n, char ul, char ct, char nu, int narm, int mean, SEXP ans, SEXP iSym, SEXP jSym) |
| SEXP | dense_marginsum (SEXP obj, const char *class, int mg, int narm, int mean) |
| SEXP | sparse_marginsum (SEXP obj, const char *class, int mg, int narm, int mean, int sparse) |
| SEXP | R_sparse_marginsum (SEXP s_obj, SEXP s_margin, SEXP s_narm, SEXP s_mean, SEXP s_sparse) |
| SEXP | R_dense_marginsum (SEXP s_obj, SEXP s_margin, SEXP s_narm, SEXP s_mean) |
| #define SUM | ( | c0, | |
| c1 ) |
Referenced by Csparse_colsum(), Csparse_rowsum(), dense_colsum(), dense_rowsum(), and Tsparse_colsum().
| #define SUM | ( | c0, | |
| c1 ) |
| #define SUM | ( | c0, | |
| c1 ) |
| #define SUM | ( | c0, | |
| c1 ) |
| #define SUM | ( | c0, | |
| c1 ) |
| #define SUM_KERNEL | ( | c0, | |
| c1, | |||
| __for__ ) |
| #define SUM_KERNEL | ( | c0, | |
| c1, | |||
| __for__ ) |
| #define SUM_TYPEOF | ( | c | ) |
Definition at line 9 of file colSums.c.
Referenced by Csparse_colsum(), Csparse_rowsum(), dense_marginsum(), sparse_marginsum(), and Tsparse_colsum().
|
static |
Definition at line 224 of file colSums.c.
References GET_SLOT, Matrix_iSym, Matrix_pSym, Matrix_xSym, SET_SLOT, SUM, SUM_TYPEOF, and TYPEOF.
Referenced by sparse_marginsum().
|
static |
Definition at line 316 of file colSums.c.
References GET_SLOT, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_pSym, Matrix_xSym, SET_SLOT, SUM, SUM_TYPEOF, and TYPEOF.
Referenced by sparse_marginsum().
|
static |
| SEXP dense_marginsum | ( | SEXP | obj, |
| const char * | class, | ||
| int | mg, | ||
| int | narm, | ||
| int | mean ) |
Definition at line 593 of file colSums.c.
References dense_colsum(), dense_rowsum(), DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_xSym, SUM_TYPEOF, TRANS, and UPLO.
Referenced by R_dense_marginsum().
|
static |
Definition at line 112 of file colSums.c.
References Matrix_Calloc, Matrix_Free, and SUM.
Referenced by dense_marginsum().
| SEXP R_dense_marginsum | ( | SEXP | s_obj, |
| SEXP | s_margin, | ||
| SEXP | s_narm, | ||
| SEXP | s_mean ) |
Definition at line 729 of file colSums.c.
References dense_marginsum(), Matrix_class(), valid_dense, VALID_LOGIC2, and VALID_MARGIN.
| SEXP R_sparse_marginsum | ( | SEXP | s_obj, |
| SEXP | s_margin, | ||
| SEXP | s_narm, | ||
| SEXP | s_mean, | ||
| SEXP | s_sparse ) |
Definition at line 713 of file colSums.c.
References Matrix_class(), sparse_marginsum(), VALID_LOGIC2, VALID_MARGIN, and valid_sparse.
| SEXP sparse_aggregate | ( | SEXP | from, |
| const char * | class ) |
Definition at line 5 of file aggregate.c.
Referenced by Tsparse_colsum().
| SEXP sparse_marginsum | ( | SEXP | obj, |
| const char * | class, | ||
| int | mg, | ||
| int | narm, | ||
| int | mean, | ||
| int | sparse ) |
Definition at line 629 of file colSums.c.
References cl, Csparse_colsum(), Csparse_rowsum(), DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_iSym, Matrix_jSym, Matrix_lengthSym, newObject(), SUM_TYPEOF, TRANS, Tsparse_colsum(), typeToKind(), and UPLO.
Referenced by R_sparse_marginsum().
|
static |
Definition at line 456 of file colSums.c.
References GET_SLOT, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_xSym, SET_SLOT, sparse_aggregate(), SUM, SUM_TYPEOF, and TYPEOF.
Referenced by sparse_marginsum().