Matrix r4655
|
Go to the source code of this file.
Macros | |
#define | F_X(_X_) (_X_) |
#define | F_ND(_X_) ((_X_) ? 1 : 0) |
#define | F_NS(_X_) 1 |
#define | AR21_UP(i, j, m) i + j + ( j * ( j - 1)) / 2 |
#define | AR21_LO(i, j, m) i + (j * m + j * (m - j - 1)) / 2 |
#define | SUB1_START(_SEXPTYPE_) |
#define | SUB1_START_EXTRA(_SEXPTYPE_) |
#define | SUB1_CASES(_SUB1_N_, _SUB1_X_, _F_N_, _F_X_) |
#define | SUB1_N(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_X(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_, _INT_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_, _INT_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_, _INT_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_, _INT_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_, _INT_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_, _INT_) |
#define | SUB1_START(_SEXPTYPE_) |
#define | SUB1_START_EXTRA(_SEXPTYPE_) |
#define | SUB1_N(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SUB1_LOOP(_NA_SUBSCRIPT_, _NA_, _ZERO_, _ONE_, _F_) |
#define | SORT_LOOP(_MASK_) |
#define | SORT(_CTYPE_, _PTR_) |
#define | XIJ_GE( _X_, _I_, _J_, _M_, _ZERO_, _ONE_) *(_X_ + _J_ * _M_ + _I_) |
#define | XIJ_TR_U_N(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TR_U_U(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TR_L_N(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TR_L_U(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TP_U_N(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TP_U_U(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TP_L_N(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_TP_L_U(_X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_SY_U( _X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_SY_L( _X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_SP_U( _X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | XIJ_SP_L( _X_, _I_, _J_, _M_, _ZERO_, _ONE_) |
#define | SUB2_START |
#define | SUB2_START_EXTRA(_E_, _R_, _Y_, _DENSE_) |
#define | SUB2_CASES(_SUB2_) |
#define | SUB2(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_) |
#define | SUB2_LOOP(_FOR_, _XIJ_, _JUMP1_, _JUMP2_, _NA_, _ZERO_, _ONE_) |
#define | SUB2(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_) |
#define | SUB2_FINISH |
#define | SUB2(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_) |
#define | SUB2_LOOP(_MASK_) |
#define | SUB2_LOOP(_MASK_) |
#define | SUB2_FINISH |
#define | SUB2_LOOP(_MASK_) |
#define | SUB2_LOOP(_MASK_) |
#define | SUB2(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_) |
#define | SUB2_WORK(_CTYPE_, _PTR_, _ISNZ_) |
#define | SUB2(_CTYPE_, _PTR_, _NA_, _ZERO_, _ONE_) |
#define | ERROR_IF_ANYNA(_I_) |
Functions | |
static SEXP | unpackedMatrix_subscript_1ary (SEXP x, SEXP w, const char *cl) |
static SEXP | packedMatrix_subscript_1ary (SEXP x, SEXP w, const char *cl) |
static SEXP | CsparseMatrix_subscript_1ary (SEXP x, SEXP w, const char *cl) |
static SEXP | RsparseMatrix_subscript_1ary (SEXP x, SEXP w, const char *cl) |
static SEXP | diagonalMatrix_subscript_1ary (SEXP x, SEXP w, const char *cl) |
static SEXP | indMatrix_subscript_1ary (SEXP x, SEXP w) |
SEXP | R_subscript_1ary (SEXP x, SEXP i) |
static SEXP | unpackedMatrix_subscript_1ary_mat (SEXP x, SEXP w, const char *cl) |
static SEXP | packedMatrix_subscript_1ary_mat (SEXP x, SEXP w, const char *cl) |
static SEXP | CsparseMatrix_subscript_1ary_mat (SEXP x, SEXP w, const char *cl) |
static SEXP | RsparseMatrix_subscript_1ary_mat (SEXP x, SEXP w, const char *cl) |
static SEXP | diagonalMatrix_subscript_1ary_mat (SEXP x, SEXP w, const char *cl) |
static SEXP | indMatrix_subscript_1ary_mat (SEXP x, SEXP w) |
SEXP | R_subscript_1ary_mat (SEXP x, SEXP i) |
static int | keep_tr (int *pi, int *pj, int n, int upper, int nonunit, int checkNA) |
static int | keep_sy (int *pi, int *pj, int n, int upper, int checkNA) |
static int | keep_di (int *pi, int *pj, int n, int nonunit, int checkNA, int lwork) |
static void | sort_cr (SEXP obj, const char *cl) |
static SEXP | unpackedMatrix_subscript_2ary (SEXP x, SEXP i, SEXP j, const char *cl) |
static SEXP | packedMatrix_subscript_2ary (SEXP x, SEXP i, SEXP j, const char *cl) |
static SEXP | CsparseMatrix_subscript_2ary (SEXP x, SEXP i, SEXP j, const char *cl) |
static SEXP | RsparseMatrix_subscript_2ary (SEXP x, SEXP i, SEXP j, const char *cl) |
static SEXP | diagonalMatrix_subscript_2ary (SEXP x, SEXP i, SEXP j, const char *cl) |
static SEXP | indMatrix_subscript_2ary (SEXP x, SEXP i, SEXP j, const char *cl) |
SEXP | R_subscript_2ary (SEXP x, SEXP i, SEXP j) |
#define AR21_LO | ( | i, | |
j, | |||
m | |||
) | i + (j * m + j * (m - j - 1)) / 2 |
Definition at line 9 of file subscript.c.
#define AR21_UP | ( | i, | |
j, | |||
m | |||
) | i + j + ( j * ( j - 1)) / 2 |
Definition at line 8 of file subscript.c.
#define ERROR_IF_ANYNA | ( | _I_ | ) |
#define F_ND | ( | _X_ | ) | ((_X_) ? 1 : 0) |
Definition at line 5 of file subscript.c.
#define F_NS | ( | _X_ | ) | 1 |
Definition at line 6 of file subscript.c.
#define F_X | ( | _X_ | ) | (_X_) |
Definition at line 4 of file subscript.c.
#define SORT | ( | _CTYPE_, | |
_PTR_ | |||
) |
#define SORT_LOOP | ( | _MASK_ | ) |
#define SUB1_CASES | ( | _SUB1_N_, | |
_SUB1_X_, | |||
_F_N_, | |||
_F_X_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_, | |||
_INT_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_, | |||
_INT_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_, | |||
_INT_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_, | |||
_INT_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_, | |||
_INT_ | |||
) |
#define SUB1_LOOP | ( | _NA_SUBSCRIPT_, | |
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_, | |||
_INT_ | |||
) |
#define SUB1_N | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_N | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB1_START | ( | _SEXPTYPE_ | ) |
#define SUB1_START | ( | _SEXPTYPE_ | ) |
#define SUB1_START_EXTRA | ( | _SEXPTYPE_ | ) |
#define SUB1_START_EXTRA | ( | _SEXPTYPE_ | ) |
#define SUB1_X | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_, | |||
_F_ | |||
) |
#define SUB2 | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define SUB2 | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define SUB2 | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define SUB2 | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define SUB2 | ( | _CTYPE_, | |
_PTR_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define SUB2_CASES | ( | _SUB2_ | ) |
#define SUB2_FINISH |
#define SUB2_FINISH |
#define SUB2_LOOP | ( | _FOR_, | |
_XIJ_, | |||
_JUMP1_, | |||
_JUMP2_, | |||
_NA_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
#define SUB2_LOOP | ( | _MASK_ | ) |
#define SUB2_LOOP | ( | _MASK_ | ) |
#define SUB2_LOOP | ( | _MASK_ | ) |
#define SUB2_LOOP | ( | _MASK_ | ) |
#define SUB2_START |
#define SUB2_START_EXTRA | ( | _E_, | |
_R_, | |||
_Y_, | |||
_DENSE_ | |||
) |
#define SUB2_WORK | ( | _CTYPE_, | |
_PTR_, | |||
_ISNZ_ | |||
) |
#define XIJ_GE | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) | *(_X_ + _J_ * _M_ + _I_) |
Definition at line 1092 of file subscript.c.
#define XIJ_SP_L | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1150 of file subscript.c.
#define XIJ_SP_U | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1145 of file subscript.c.
#define XIJ_SY_L | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1140 of file subscript.c.
#define XIJ_SY_U | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1135 of file subscript.c.
#define XIJ_TP_L_N | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1125 of file subscript.c.
#define XIJ_TP_L_U | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1130 of file subscript.c.
#define XIJ_TP_U_N | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1115 of file subscript.c.
#define XIJ_TP_U_U | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1120 of file subscript.c.
#define XIJ_TR_L_N | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1105 of file subscript.c.
#define XIJ_TR_L_U | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1110 of file subscript.c.
#define XIJ_TR_U_N | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1095 of file subscript.c.
#define XIJ_TR_U_U | ( | _X_, | |
_I_, | |||
_J_, | |||
_M_, | |||
_ZERO_, | |||
_ONE_ | |||
) |
Definition at line 1100 of file subscript.c.
|
static |
Definition at line 203 of file subscript.c.
References cl, F_NS, F_X, GET_SLOT, kindToType(), Matrix_iSym, Matrix_pSym, SUB1_CASES, SUB1_N, SUB1_START, and SUB1_X.
Referenced by R_subscript_1ary().
|
static |
Definition at line 596 of file subscript.c.
References cl, F_NS, F_X, GET_SLOT, kindToType(), Matrix_iSym, Matrix_pSym, SUB1_CASES, SUB1_N, SUB1_START, and SUB1_X.
Referenced by R_subscript_1ary_mat().
|
static |
Definition at line 1519 of file subscript.c.
References cl, GET_SLOT, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_pSym, SET_SLOT, sort_cr(), sparse_as_general(), sparse_force_symmetric(), SUB2_FINISH, and SUB2_START_EXTRA.
Referenced by R_subscript_2ary().
|
static |
Definition at line 337 of file subscript.c.
References cl, F_ND, F_X, GET_SLOT, kindToType(), Matrix_diagSym, SUB1_CASES, SUB1_START, and SUB1_X.
Referenced by R_subscript_1ary().
|
static |
Definition at line 722 of file subscript.c.
References cl, F_ND, F_X, GET_SLOT, kindToType(), Matrix_diagSym, SUB1_CASES, SUB1_START, and SUB1_X.
Referenced by R_subscript_1ary_mat().
|
static |
Definition at line 1820 of file subscript.c.
References _, cl, GET_SLOT, ISNZ_COMPLEX, ISNZ_INTEGER, ISNZ_LOGICAL, ISNZ_PATTERN, ISNZ_REAL, keep_di(), Matrix_Calloc, Matrix_diagSym, Matrix_DimSym, Matrix_Free, Matrix_iSym, Matrix_pSym, Matrix_xSym, newObject(), SET_SLOT, SUB2, SUB2_CASES, SUB2_START, and SUB2_WORK.
Referenced by R_subscript_2ary().
|
static |
Definition at line 370 of file subscript.c.
References GET_SLOT, Matrix_marginSym, Matrix_permSym, SUB1_N, and SUB1_START.
Referenced by R_subscript_1ary().
|
static |
Definition at line 753 of file subscript.c.
References GET_SLOT, Matrix_marginSym, Matrix_permSym, SUB1_N, and SUB1_START.
Referenced by R_subscript_1ary_mat().
|
static |
Definition at line 1984 of file subscript.c.
References _, cl, GET_SLOT, Matrix_Calloc, Matrix_DimSym, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_marginSym, Matrix_permSym, Matrix_pSym, newObject(), and SET_SLOT.
Referenced by R_subscript_2ary().
|
static |
Definition at line 946 of file subscript.c.
References Matrix_Calloc, and Matrix_Free.
Referenced by diagonalMatrix_subscript_2ary().
|
static |
Definition at line 915 of file subscript.c.
|
static |
Definition at line 843 of file subscript.c.
|
static |
Definition at line 147 of file subscript.c.
References cl, F_ND, F_X, kindToType(), SUB1_CASES, SUB1_START_EXTRA, and SUB1_X.
Referenced by R_subscript_1ary().
|
static |
Definition at line 540 of file subscript.c.
References cl, F_ND, F_X, kindToType(), SUB1_CASES, SUB1_START_EXTRA, and SUB1_X.
Referenced by R_subscript_1ary_mat().
|
static |
Definition at line 1410 of file subscript.c.
References _, GET_SLOT, Matrix_xSym, SET_SLOT, SUB2, SUB2_CASES, and SUB2_START_EXTRA.
Referenced by R_subscript_2ary().
SEXP R_subscript_1ary | ( | SEXP | x, |
SEXP | i | ||
) |
Definition at line 411 of file subscript.c.
References cl, CsparseMatrix_subscript_1ary(), diagonalMatrix_subscript_1ary(), ERROR_INVALID_CLASS, indMatrix_subscript_1ary(), packedMatrix_subscript_1ary(), RsparseMatrix_subscript_1ary(), sparse_as_Csparse(), unpackedMatrix_subscript_1ary(), valid, VALID_NONVIRTUAL_MATRIX, VALID_NONVIRTUAL_SHIFT, and validObject().
SEXP R_subscript_1ary_mat | ( | SEXP | x, |
SEXP | i | ||
) |
Definition at line 792 of file subscript.c.
References cl, CsparseMatrix_subscript_1ary_mat(), diagonalMatrix_subscript_1ary_mat(), ERROR_INVALID_CLASS, indMatrix_subscript_1ary_mat(), packedMatrix_subscript_1ary_mat(), RsparseMatrix_subscript_1ary_mat(), sparse_as_Csparse(), unpackedMatrix_subscript_1ary_mat(), valid, VALID_NONVIRTUAL_MATRIX, VALID_NONVIRTUAL_SHIFT, and validObject().
SEXP R_subscript_2ary | ( | SEXP | x, |
SEXP | i, | ||
SEXP | j | ||
) |
Definition at line 2174 of file subscript.c.
References cl, CsparseMatrix_subscript_2ary(), diagonalMatrix_subscript_2ary(), ERROR_IF_ANYNA, ERROR_INVALID_CLASS, indMatrix_subscript_2ary(), packedMatrix_subscript_2ary(), RsparseMatrix_subscript_2ary(), sparse_as_Csparse(), sparse_as_Tsparse(), unpackedMatrix_subscript_2ary(), valid, VALID_NONVIRTUAL_MATRIX, VALID_NONVIRTUAL_SHIFT, and validObject().
|
static |
Definition at line 270 of file subscript.c.
References cl, F_NS, F_X, GET_SLOT, kindToType(), Matrix_jSym, Matrix_pSym, SUB1_CASES, SUB1_N, SUB1_START, and SUB1_X.
Referenced by R_subscript_1ary().
|
static |
Definition at line 659 of file subscript.c.
References cl, F_NS, F_X, GET_SLOT, kindToType(), Matrix_jSym, Matrix_pSym, SUB1_CASES, SUB1_N, SUB1_START, and SUB1_X.
Referenced by R_subscript_1ary_mat().
|
static |
Definition at line 1672 of file subscript.c.
References cl, GET_SLOT, Matrix_Calloc, Matrix_Free, Matrix_jSym, Matrix_pSym, SET_SLOT, sort_cr(), sparse_as_general(), sparse_force_symmetric(), SUB2_FINISH, and SUB2_START_EXTRA.
Referenced by R_subscript_2ary().
|
static |
Definition at line 990 of file subscript.c.
References cl, GET_SLOT, HIDE, Matrix_Calloc, Matrix_DimSym, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_xSym, SORT, and SORT_LOOP.
Referenced by CsparseMatrix_subscript_2ary(), and RsparseMatrix_subscript_2ary().
|
static |
Definition at line 12 of file subscript.c.
References cl, F_ND, F_X, kindToType(), SUB1_CASES, SUB1_START_EXTRA, and SUB1_X.
Referenced by R_subscript_1ary().
|
static |
Definition at line 462 of file subscript.c.
References cl, F_ND, F_X, kindToType(), SUB1_CASES, SUB1_START_EXTRA, and SUB1_X.
Referenced by R_subscript_1ary_mat().
|
static |
Definition at line 1156 of file subscript.c.
References _, GET_SLOT, Matrix_xSym, SET_SLOT, SUB2, SUB2_CASES, and SUB2_START_EXTRA.
Referenced by R_subscript_2ary().