Matrix r4655
|
Go to the source code of this file.
Macros | |
#define | TOLBASED_ISNZ_REAL(_X_) (ISNA_REAL(_X_) || fabs(_X_) > tol) |
#define | TOLBASED_ISNZ_COMPLEX(_X_) (ISNA_COMPLEX(_X_) || hypot((_X_).r, (_X_).i) > tol) |
#define | DROP0_CASES(_DO_) |
#define | DROP0_LOOP1(_CTYPE_, _PTR_, _ISNZ_) |
#define | DROP0_LOOP2(_CTYPE_, _PTR_, _ISNZ_) |
#define | DROP0_LOOP2(_CTYPE_, _PTR_, _ISNZ_) |
#define | BAND_CASES |
#define | BAND_SUBCASES(_CTYPE_, _PTR_, _MASK_) |
#define | BAND_SUBCASES(_CTYPE_, _PTR_, _MASK_) |
#define | DG_CASES |
#define | DG_LOOP(_CTYPE_, _PTR_, _MASK_, _REPLACE_, _INCREMENT_, _ZERO_, _ONE_) |
#define | DG_LOOP(_CTYPE_, _PTR_, _MASK_, _REPLACE_, _INCREMENT_, _ZERO_, _ONE_) |
#define | DG_LOOP(_CTYPE_, _PTR_, _MASK_, _REPLACE_, _INCREMENT_, _ZERO_, _ONE_) |
#define | DS_CASES |
#define | DS_LOOP(_CTYPE_, _PTR_, _MASK_, _ISNZ_) |
#define | DS_LOOP(_CTYPE_, _PTR_, _MASK_, _ISNZ_) |
#define | DS_LOOP(_CTYPE_, _PTR_, _MASK_, _ISNZ_) |
#define | DS_LOOP(_CTYPE_, _PTR_, _MASK_, _ISNZ_) |
#define | FS_CASES |
#define | FS_SUBCASES(_CTYPE_, _PTR_, _MASK_, _ONE_) |
#define | FS_SUBCASES(_CTYPE_, _PTR_, _MASK_, _ONE_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_, _INCREMENT_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_, _ONE_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_, _ONE_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_, _INCREMENT_) |
#define | SP_LOOP(_CTYPE_, _PTR_, _ASSIGN_) |
#define | IS_LOOP(_CTYPE_, _PTR_, _MASK_, _NOTREAL_, _NOTCONJ_) |
#define | NOTCONJ_PATTERN(_X_, _Y_) 0 |
#define | MAP(_I_) work[_I_] |
#define | NOMAP(_I_) _I_ |
#define | CAST_PATTERN(_X_) 1 |
#define | CAST_LOGICAL(_X_) (_X_ != 0) |
#define | CAST_INTEGER(_X_) _X_ |
#define | CAST_REAL(_X_) _X_ |
#define | CAST_COMPLEX(_X_) _X_ |
#define | SUM_CASES(_MAP_) |
#define | SUM_TYPEOF(c) (c == 'z') ? CPLXSXP : ((mean || c == 'd' || c == 'i') ? REALSXP : INTSXP) |
#define | SUM_LOOP(_CTYPE0_, _PTR0_, _CTYPE1_, _PTR1_, _MASK_, _ZERO_, _ONE_, _NA_, _ISNA_, _MAP_, _CAST_, _INCREMENT_, _SCALE2_) |
#define | SUM_LOOP(_CTYPE0_, _PTR0_, _CTYPE1_, _PTR1_, _MASK_, _ZERO_, _ONE_, _NA_, _ISNA_, _MAP_, _CAST_, _INCREMENT_, _SCALE2_) |
#define | SUM_LOOP(_CTYPE0_, _PTR0_, _CTYPE1_, _PTR1_, _MASK_, _ZERO_, _ONE_, _NA_, _ISNA_, _MAP_, _CAST_, _INCREMENT_, _SCALE2_) |
#define | TRY_INCREMENT(_LABEL_) |
#define | LONGDOUBLE_AS_DOUBLE(v) (v > DBL_MAX) ? R_PosInf : ((v < -DBL_MAX) ? R_NegInf : (double) v); |
Functions | |
SEXP | sparse_drop0 (SEXP from, const char *class, double tol) |
SEXP | R_sparse_drop0 (SEXP from, SEXP tol) |
SEXP | sparse_diag_U2N (SEXP from, const char *class) |
SEXP | R_sparse_diag_U2N (SEXP from) |
SEXP | sparse_diag_N2U (SEXP from, const char *class) |
SEXP | R_sparse_diag_N2U (SEXP from) |
SEXP | sparse_band (SEXP from, const char *class, int a, int b) |
SEXP | R_sparse_band (SEXP from, SEXP k1, SEXP k2) |
SEXP | sparse_diag_get (SEXP obj, const char *class, int names) |
SEXP | R_sparse_diag_get (SEXP obj, SEXP names) |
SEXP | sparse_diag_set (SEXP from, const char *class, SEXP value) |
SEXP | R_sparse_diag_set (SEXP from, SEXP value) |
SEXP | sparse_transpose (SEXP from, const char *class, int lazy) |
SEXP | R_sparse_transpose (SEXP from, SEXP lazy) |
SEXP | sparse_force_symmetric (SEXP from, const char *class, char ul) |
SEXP | R_sparse_force_symmetric (SEXP from, SEXP uplo) |
SEXP | sparse_symmpart (SEXP from, const char *class) |
SEXP | R_sparse_symmpart (SEXP from) |
SEXP | sparse_skewpart (SEXP from, const char *class) |
SEXP | R_sparse_skewpart (SEXP from) |
int | sparse_is_symmetric (SEXP obj, const char *class, int checkDN) |
SEXP | R_sparse_is_symmetric (SEXP obj, SEXP checkDN) |
int | sparse_is_triangular (SEXP obj, const char *class, int upper) |
SEXP | R_sparse_is_triangular (SEXP obj, SEXP upper) |
int | sparse_is_diagonal (SEXP obj, const char *class) |
SEXP | R_sparse_is_diagonal (SEXP obj) |
static void | Csparse_colsum (SEXP obj, const char *class, int m, int n, char di, int narm, int mean, SEXP res) |
static void | Csparse_rowsum (SEXP obj, const char *class, int m, int n, char di, int narm, int mean, SEXP res, SEXP iSym) |
static void | Tsparse_colsum (SEXP obj, const char *class, int m, int n, char di, int narm, int mean, SEXP res, SEXP iSym, SEXP jSym) |
SEXP | sparse_marginsum (SEXP obj, const char *class, int margin, int narm, int mean, int sparse) |
SEXP | R_sparse_marginsum (SEXP obj, SEXP margin, SEXP narm, SEXP mean, SEXP sparse) |
SEXP | sparse_sum (SEXP obj, const char *class, int narm) |
SEXP | R_sparse_sum (SEXP obj, SEXP narm) |
SEXP | sparse_prod (SEXP obj, const char *class, int narm) |
SEXP | R_sparse_prod (SEXP obj, SEXP narm) |
SEXP | Tsparse_aggregate (SEXP from) |
#define BAND_CASES |
#define BAND_SUBCASES | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_ | |||
) |
#define BAND_SUBCASES | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_ | |||
) |
#define DG_CASES |
#define DG_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_REPLACE_, | |||
_INCREMENT_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define DG_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_REPLACE_, | |||
_INCREMENT_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define DG_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_REPLACE_, | |||
_INCREMENT_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define DROP0_CASES | ( | _DO_ | ) |
#define DROP0_LOOP1 | ( | _CTYPE_, | |
_PTR_, | |||
_ISNZ_ | |||
) |
#define DROP0_LOOP2 | ( | _CTYPE_, | |
_PTR_, | |||
_ISNZ_ | |||
) |
#define DROP0_LOOP2 | ( | _CTYPE_, | |
_PTR_, | |||
_ISNZ_ | |||
) |
#define DS_CASES |
#define DS_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_ISNZ_ | |||
) |
#define DS_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_ISNZ_ | |||
) |
#define DS_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_ISNZ_ | |||
) |
#define DS_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_ISNZ_ | |||
) |
#define FS_CASES |
#define FS_SUBCASES | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_ONE_ | |||
) |
#define FS_SUBCASES | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_ONE_ | |||
) |
#define IS_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_MASK_, | |||
_NOTREAL_, | |||
_NOTCONJ_ | |||
) |
#define LONGDOUBLE_AS_DOUBLE | ( | v | ) | (v > DBL_MAX) ? R_PosInf : ((v < -DBL_MAX) ? R_NegInf : (double) v); |
#define NOTCONJ_PATTERN | ( | _X_, | |
_Y_ | |||
) | 0 |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_, | |||
_INCREMENT_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_, | |||
_INCREMENT_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_, | |||
_ONE_ | |||
) |
#define SP_LOOP | ( | _CTYPE_, | |
_PTR_, | |||
_ASSIGN_, | |||
_ONE_ | |||
) |
#define SUM_LOOP | ( | _CTYPE0_, | |
_PTR0_, | |||
_CTYPE1_, | |||
_PTR1_, | |||
_MASK_, | |||
_ZERO_, | |||
_ONE_, | |||
_NA_, | |||
_ISNA_, | |||
_MAP_, | |||
_CAST_, | |||
_INCREMENT_, | |||
_SCALE2_ | |||
) |
#define SUM_LOOP | ( | _CTYPE0_, | |
_PTR0_, | |||
_CTYPE1_, | |||
_PTR1_, | |||
_MASK_, | |||
_ZERO_, | |||
_ONE_, | |||
_NA_, | |||
_ISNA_, | |||
_MAP_, | |||
_CAST_, | |||
_INCREMENT_, | |||
_SCALE2_ | |||
) |
#define SUM_LOOP | ( | _CTYPE0_, | |
_PTR0_, | |||
_CTYPE1_, | |||
_PTR1_, | |||
_MASK_, | |||
_ZERO_, | |||
_ONE_, | |||
_NA_, | |||
_ISNA_, | |||
_MAP_, | |||
_CAST_, | |||
_INCREMENT_, | |||
_SCALE2_ | |||
) |
#define TOLBASED_ISNZ_COMPLEX | ( | _X_ | ) | (ISNA_COMPLEX(_X_) || hypot((_X_).r, (_X_).i) > tol) |
#define TOLBASED_ISNZ_REAL | ( | _X_ | ) | (ISNA_REAL(_X_) || fabs(_X_) > tol) |
#define TRY_INCREMENT | ( | _LABEL_ | ) |
|
static |
Definition at line 2711 of file sparse.c.
References GET_SLOT, MAP, Matrix_iSym, Matrix_pSym, Matrix_xSym, NOMAP, SET_SLOT, SUM_CASES, and SUM_TYPEOF.
Referenced by sparse_marginsum().
|
static |
Definition at line 2793 of file sparse.c.
References GET_SLOT, MAP, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_pSym, Matrix_xSym, NOMAP, SET_SLOT, SUM_CASES, and SUM_TYPEOF.
Referenced by sparse_marginsum().
SEXP R_sparse_band | ( | SEXP | from, |
SEXP | k1, | ||
SEXP | k2 | ||
) |
Definition at line 574 of file sparse.c.
References _, ERROR_INVALID_CLASS, GET_SLOT, Matrix_DimSym, sparse_band(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_diag_get | ( | SEXP | obj, |
SEXP | names | ||
) |
Definition at line 773 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_diag_get(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_diag_N2U | ( | SEXP | from | ) |
Definition at line 270 of file sparse.c.
References ERROR_INVALID_CLASS, sparse_diag_N2U(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_diag_set | ( | SEXP | from, |
SEXP | value | ||
) |
Definition at line 1052 of file sparse.c.
References _, ERROR_INVALID_CLASS, GET_SLOT, kindToType(), Matrix_DimSym, sparse_as_kind(), sparse_diag_set(), typeToKind(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
Referenced by sparse_diag_U2N().
SEXP R_sparse_diag_U2N | ( | SEXP | from | ) |
Definition at line 222 of file sparse.c.
References ERROR_INVALID_CLASS, sparse_diag_U2N(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_drop0 | ( | SEXP | from, |
SEXP | tol | ||
) |
Definition at line 185 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_drop0(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_force_symmetric | ( | SEXP | from, |
SEXP | uplo | ||
) |
Definition at line 1613 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_force_symmetric(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_is_diagonal | ( | SEXP | obj | ) |
Definition at line 2642 of file sparse.c.
References ERROR_INVALID_CLASS, sparse_is_diagonal(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_is_symmetric | ( | SEXP | obj, |
SEXP | checkDN | ||
) |
Definition at line 2438 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_is_symmetric(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_is_triangular | ( | SEXP | obj, |
SEXP | upper | ||
) |
Definition at line 2571 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_is_triangular(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_marginsum | ( | SEXP | obj, |
SEXP | margin, | ||
SEXP | narm, | ||
SEXP | mean, | ||
SEXP | sparse | ||
) |
Definition at line 3124 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_marginsum(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_prod | ( | SEXP | obj, |
SEXP | narm | ||
) |
Definition at line 3653 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_prod(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_skewpart | ( | SEXP | from | ) |
Definition at line 2312 of file sparse.c.
References ERROR_INVALID_CLASS, sparse_skewpart(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_sum | ( | SEXP | obj, |
SEXP | narm | ||
) |
Definition at line 3416 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_sum(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_symmpart | ( | SEXP | from | ) |
Definition at line 2052 of file sparse.c.
References ERROR_INVALID_CLASS, sparse_symmpart(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP R_sparse_transpose | ( | SEXP | from, |
SEXP | lazy | ||
) |
Definition at line 1223 of file sparse.c.
References _, ERROR_INVALID_CLASS, sparse_transpose(), valid, VALID_CSPARSE, VALID_RSPARSE, and VALID_TSPARSE.
SEXP sparse_band | ( | SEXP | from, |
const char * | class, | ||
int | a, | ||
int | b | ||
) |
Definition at line 281 of file sparse.c.
References BAND_CASES, BAND_SUBCASES, cl, GET_SLOT, HIDE, Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_memset(), Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, set_symmetrized_DimNames(), and sparse_transpose().
Referenced by R_sparse_band(), and sparse_diag_N2U().
SEXP sparse_diag_get | ( | SEXP | obj, |
const char * | class, | ||
int | names | ||
) |
Definition at line 604 of file sparse.c.
References DG_CASES, DG_LOOP, equal_character_vectors(), GET_SLOT, HIDE, INCREMENT_PATTERN, kindToType(), Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, and SECONDOF.
Referenced by R_sparse_diag_get().
SEXP sparse_diag_N2U | ( | SEXP | from, |
const char * | class | ||
) |
Definition at line 233 of file sparse.c.
References GET_SLOT, Matrix_diagSym, Matrix_DimSym, Matrix_uploSym, SET_SLOT, and sparse_band().
Referenced by dgCMatrix_dgCMatrix_matmult(), and R_sparse_diag_N2U().
SEXP sparse_diag_set | ( | SEXP | from, |
const char * | class, | ||
SEXP | value | ||
) |
Definition at line 789 of file sparse.c.
References _, DS_CASES, DS_LOOP, GET_SLOT, HIDE, ISNZ_LOGICAL, Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), and SET_SLOT.
Referenced by R_sparse_diag_set().
SEXP sparse_diag_U2N | ( | SEXP | from, |
const char * | class | ||
) |
Definition at line 201 of file sparse.c.
References GET_SLOT, Matrix_diagSym, and R_sparse_diag_set().
Referenced by R_diagonal_matmult(), R_sparse_diag_U2N(), and R_sparse_matmult().
SEXP sparse_drop0 | ( | SEXP | from, |
const char * | class, | ||
double | tol | ||
) |
Definition at line 5 of file sparse.c.
References DROP0_CASES, DROP0_LOOP1, DROP0_LOOP2, GET_SLOT, Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_factorsSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), and SET_SLOT.
Referenced by R_diagonal_matmult(), R_sparse_drop0(), and R_sparse_matmult().
SEXP sparse_force_symmetric | ( | SEXP | from, |
const char * | class, | ||
char | ul | ||
) |
Definition at line 1239 of file sparse.c.
References _, cl, conjugate(), FS_CASES, FS_SUBCASES, GET_SLOT, HIDE, Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, set_symmetrized_DimNames(), and sparse_transpose().
Referenced by CsparseMatrix_subscript_2ary(), R_sparse_force_symmetric(), and RsparseMatrix_subscript_2ary().
int sparse_is_diagonal | ( | SEXP | obj, |
const char * | class | ||
) |
Definition at line 2598 of file sparse.c.
References GET_SLOT, Matrix_DimSym, Matrix_iSym, Matrix_jSym, and Matrix_pSym.
Referenced by R_sparse_is_diagonal(), sparse_is_symmetric(), and sparse_is_triangular().
int sparse_is_symmetric | ( | SEXP | obj, |
const char * | class, | ||
int | checkDN | ||
) |
Definition at line 2323 of file sparse.c.
References DimNames_is_symmetric(), GET_SLOT, HIDE, IS_LOOP, Matrix_Calloc, Matrix_DimNamesSym, Matrix_DimSym, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_memcpy(), Matrix_pSym, Matrix_xSym, NOTCONJ_COMPLEX, NOTCONJ_INTEGER, NOTCONJ_LOGICAL, NOTCONJ_PATTERN, NOTCONJ_REAL, NOTREAL_COMPLEX, NOTREAL_INTEGER, NOTREAL_LOGICAL, NOTREAL_PATTERN, NOTREAL_REAL, SHOW, sparse_as_Csparse(), and sparse_is_diagonal().
Referenced by R_sparse_is_symmetric().
int sparse_is_triangular | ( | SEXP | obj, |
const char * | class, | ||
int | upper | ||
) |
Definition at line 2454 of file sparse.c.
References GET_SLOT, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, and sparse_is_diagonal().
Referenced by R_sparse_is_triangular().
SEXP sparse_marginsum | ( | SEXP | obj, |
const char * | class, | ||
int | margin, | ||
int | narm, | ||
int | mean, | ||
int | sparse | ||
) |
Definition at line 3052 of file sparse.c.
References cl, Csparse_colsum(), Csparse_rowsum(), GET_SLOT, get_symmetrized_DimNames(), Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_lengthSym, newObject(), SET_SLOT, SUM_TYPEOF, and Tsparse_colsum().
Referenced by R_sparse_marginsum().
SEXP sparse_prod | ( | SEXP | obj, |
const char * | class, | ||
int | narm | ||
) |
Definition at line 3432 of file sparse.c.
References GET_SLOT, LONGDOUBLE_AS_DOUBLE, Matrix_diagSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, and Tsparse_aggregate().
Referenced by R_sparse_prod().
SEXP sparse_skewpart | ( | SEXP | from, |
const char * | class | ||
) |
Definition at line 2063 of file sparse.c.
References _, ASSIGN_COMPLEX, ASSIGN_REAL, cl, GET_SLOT, INCREMENT_COMPLEX, INCREMENT_REAL, kindToType(), Matrix_Calloc, Matrix_DimNamesSym, Matrix_DimSym, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_memset(), Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, set_symmetrized_DimNames(), SP_LOOP, sparse_as_kind(), sparse_transpose(), and zeroRe().
Referenced by R_sparse_skewpart().
SEXP sparse_sum | ( | SEXP | obj, |
const char * | class, | ||
int | narm | ||
) |
Definition at line 3177 of file sparse.c.
References GET_SLOT, LONGDOUBLE_AS_DOUBLE, Matrix_diagSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, TRY_INCREMENT, and Tsparse_aggregate().
Referenced by R_sparse_sum().
SEXP sparse_symmpart | ( | SEXP | from, |
const char * | class | ||
) |
Definition at line 1632 of file sparse.c.
References _, ASSIGN_COMPLEX, ASSIGN_REAL, cl, GET_SLOT, INCREMENT_COMPLEX, INCREMENT_REAL, kindToType(), Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, Matrix_zone, newObject(), SET_SLOT, set_symmetrized_DimNames(), SP_LOOP, sparse_as_kind(), sparse_transpose(), and zeroIm().
Referenced by R_sparse_symmpart().
SEXP sparse_transpose | ( | SEXP | from, |
const char * | class, | ||
int | lazy | ||
) |
Definition at line 1106 of file sparse.c.
References cl, GET_SLOT, Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_factorsSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), set_reversed_DimNames(), SET_SLOT, and trans().
Referenced by dgCMatrix_dgCMatrix_matmult(), R_diagonal_matmult(), R_sparse_matmult(), R_sparse_transpose(), sparse_band(), sparse_force_symmetric(), sparse_skewpart(), and sparse_symmpart().
SEXP Tsparse_aggregate | ( | SEXP | from | ) |
Definition at line 3672 of file sparse.c.
References cl, ERROR_INVALID_CLASS, GET_SLOT, Matrix_diagSym, Matrix_DimNamesSym, Matrix_DimSym, Matrix_factorsSym, Matrix_iSym, Matrix_jSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, taggr(), valid, and VALID_TSPARSE.
Referenced by scanArgs(), sparse_as_kind(), sparse_prod(), sparse_sum(), and Tsparse_colsum().
|
static |
Definition at line 2927 of file sparse.c.
References GET_SLOT, MAP, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_xSym, NOMAP, SET_SLOT, SUM_CASES, SUM_TYPEOF, and Tsparse_aggregate().
Referenced by sparse_marginsum().