Matrix r5059
|
Go to the source code of this file.
Macros | |
#define | SUB1(c) |
#define | iOOB(s, t, mn) |
#define | dOOB(s, t, mn) |
#define | lCAST(x) |
#define | iCAST(x) |
#define | dCAST(x) |
#define | zCAST(x) |
#define | nCAST(x) |
#define | SUB1__(d, c) |
#define | nCAST(x) |
#define | MAP(l) |
#define | ADV(d) |
#define | SUB1__(d, c) |
#define | nCAST(x) |
#define | SUB1__(d, c) |
#define | SUB1__(d, c) |
#define | nCAST(x) |
#define | SUB1(c) |
#define | nCAST(x) |
#define | MAP(l) |
#define | ADV |
#define | SUB1(c) |
#define | nCAST(x) |
#define | SUB1(c) |
#define | SUB2(c) |
#define | SUB2__(c, assign, s, t, __for__, jump0, jump1) |
#define | ASSIGN_GE(c, x, y, i, j, m, s, t) |
#define | ASSIGN_SY(c, x, y, i, j, m, s, t) |
#define | ASSIGN_TR(c, x, y, i, j, m, s, t) |
#define | CMP_U(i, j) |
#define | CMP_L(i, j) |
#define | SUB2(c) |
#define | SUB2(c) |
#define | TEMPLATE(c) |
#define | SUB2(c) |
#define | TEMPLATE(c) |
#define | SUB2(c) |
Functions | |
static int | anyNA (int *p, int n) |
static SEXP | dense_subscript_1ary (SEXP obj, const char *class, SEXP s) |
static SEXP | sparse_subscript_1ary (SEXP obj, const char *class, SEXP s, SEXP o) |
static SEXP | diagonal_subscript_1ary (SEXP obj, const char *class, SEXP s) |
static SEXP | index_subscript_1ary (SEXP obj, const char *class, SEXP s) |
SEXP | R_subscript_1ary (SEXP s_obj, SEXP s_s, SEXP s_o) |
static SEXP | dense_subscript_1ary_2col (SEXP obj, const char *class, SEXP s) |
static SEXP | sparse_subscript_1ary_2col (SEXP obj, const char *class, SEXP s, SEXP o) |
static SEXP | diagonal_subscript_1ary_2col (SEXP obj, const char *class, SEXP s) |
static SEXP | index_subscript_1ary_2col (SEXP obj, const char *class, SEXP s) |
SEXP | R_subscript_1ary_2col (SEXP s_obj, SEXP s_s, SEXP s_o) |
static int | stay_sy (int *pi, int ni, int *pj, int nj, int n, char uplo, int checkNA) |
static int | stay_tr (int *pi, int ni, int *pj, int nj, int n, char uplo, int checkNA) |
static int | stay_di (int *pi, int ni, int *pj, int nj, int n, int checkNA) |
static SEXP | dense_subscript_2ary (SEXP obj, const char *class, SEXP si, SEXP sj) |
static SEXP | sparse_subscript_2ary (SEXP obj, const char *class, SEXP si, SEXP sj) |
static SEXP | diagonal_subscript_2ary (SEXP obj, const char *class, SEXP si, SEXP sj) |
static SEXP | index_subscript_2ary (SEXP obj, const char *class, SEXP si, SEXP sj) |
SEXP | R_subscript_2ary (SEXP s_obj, SEXP s_si, SEXP s_sj) |
#define ADV | ( | d | ) |
#define ADV |
#define ASSIGN_GE | ( | c, | |
x, | |||
y, | |||
i, | |||
j, | |||
m, | |||
s, | |||
t ) |
#define ASSIGN_SY | ( | c, | |
x, | |||
y, | |||
i, | |||
j, | |||
m, | |||
s, | |||
t ) |
#define ASSIGN_TR | ( | c, | |
x, | |||
y, | |||
i, | |||
j, | |||
m, | |||
s, | |||
t ) |
#define CMP_L | ( | i, | |
j ) |
#define CMP_U | ( | i, | |
j ) |
#define dCAST | ( | x | ) |
Definition at line 30 of file subscript.c.
#define dOOB | ( | s, | |
t, | |||
mn ) |
Definition at line 26 of file subscript.c.
#define iCAST | ( | x | ) |
Definition at line 29 of file subscript.c.
#define iOOB | ( | s, | |
t, | |||
mn ) |
Definition at line 25 of file subscript.c.
#define lCAST | ( | x | ) |
Definition at line 28 of file subscript.c.
#define MAP | ( | l | ) |
#define MAP | ( | l | ) |
#define nCAST | ( | x | ) |
Definition at line 34 of file subscript.c.
#define nCAST | ( | x | ) |
Definition at line 34 of file subscript.c.
#define nCAST | ( | x | ) |
Definition at line 34 of file subscript.c.
#define nCAST | ( | x | ) |
Definition at line 34 of file subscript.c.
#define nCAST | ( | x | ) |
Definition at line 34 of file subscript.c.
#define nCAST | ( | x | ) |
Definition at line 34 of file subscript.c.
#define SUB1 | ( | c | ) |
Definition at line 17 of file subscript.c.
Referenced by dense_subscript_1ary(), dense_subscript_1ary_2col(), diagonal_subscript_1ary(), diagonal_subscript_1ary_2col(), index_subscript_1ary(), sparse_subscript_1ary(), and sparse_subscript_1ary_2col().
#define SUB1 | ( | c | ) |
Definition at line 17 of file subscript.c.
#define SUB1 | ( | c | ) |
Definition at line 17 of file subscript.c.
#define SUB1 | ( | c | ) |
#define SUB1__ | ( | d, | |
c ) |
#define SUB1__ | ( | d, | |
c ) |
#define SUB1__ | ( | d, | |
c ) |
#define SUB1__ | ( | d, | |
c ) |
#define SUB2 | ( | c | ) |
Referenced by dense_subscript_2ary(), diagonal_subscript_2ary(), and sparse_subscript_2ary().
#define SUB2 | ( | c | ) |
#define SUB2 | ( | c | ) |
#define SUB2 | ( | c | ) |
#define SUB2 | ( | c | ) |
#define SUB2__ | ( | c, | |
assign, | |||
s, | |||
t, | |||
__for__, | |||
jump0, | |||
jump1 ) |
#define TEMPLATE | ( | c | ) |
Referenced by diagonal_subscript_2ary(), and sparse_subscript_2ary().
#define TEMPLATE | ( | c | ) |
#define zCAST | ( | x | ) |
Definition at line 31 of file subscript.c.
|
static |
Definition at line 8 of file subscript.c.
Referenced by diagonal_subscript_2ary(), index_subscript_2ary(), sparse_subscript_2ary(), stay_di(), stay_sy(), and stay_tr().
|
static |
Definition at line 37 of file subscript.c.
References DIAG, DIM, GET_SLOT, kindToType(), Matrix_xSym, SUB1, SWITCH5, TRANS, and UPLO.
Referenced by R_subscript_1ary().
|
static |
Definition at line 377 of file subscript.c.
References DIAG, DIM, GET_SLOT, kindToType(), Matrix_xSym, SUB1, SWITCH5, TRANS, and UPLO.
Referenced by R_subscript_1ary_2col().
|
static |
|
static |
Definition at line 252 of file subscript.c.
References DIAG, DIM, GET_SLOT, kindToType(), Matrix_xSym, SUB1, and SWITCH5.
Referenced by R_subscript_1ary().
|
static |
Definition at line 585 of file subscript.c.
References DIAG, GET_SLOT, kindToType(), Matrix_xSym, SUB1, and SWITCH5.
Referenced by R_subscript_1ary_2col().
|
static |
Definition at line 1296 of file subscript.c.
References _, anyNA(), cl, DIAG, DIM, GET_SLOT, Matrix_iSym, Matrix_pSym, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_SLOT, stay_di(), SUB2, SWITCH4, TEMPLATE, and TYPEOF.
Referenced by R_subscript_2ary().
|
static |
Definition at line 296 of file subscript.c.
References DIM, GET_SLOT, MARGIN, Matrix_permSym, and SUB1.
Referenced by R_subscript_1ary().
|
static |
Definition at line 624 of file subscript.c.
References GET_SLOT, MARGIN, and Matrix_permSym.
Referenced by R_subscript_1ary_2col().
|
static |
Definition at line 1443 of file subscript.c.
References _, anyNA(), DIM, GET_SLOT, invertPerm(), isPerm(), MARGIN, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_permSym, Matrix_pSym, newObject(), SET_DIM, SET_MARGIN, SET_SLOT, and SWAP.
Referenced by R_subscript_2ary().
SEXP R_subscript_1ary | ( | SEXP | s_obj, |
SEXP | s_s, | ||
SEXP | s_o ) |
Definition at line 348 of file subscript.c.
References dense_subscript_1ary(), diagonal_subscript_1ary(), index_subscript_1ary(), Matrix_class(), sparse_subscript_1ary(), valid_matrix, and validObject().
SEXP R_subscript_1ary_2col | ( | SEXP | s_obj, |
SEXP | s_s, | ||
SEXP | s_o ) |
Definition at line 664 of file subscript.c.
References dense_subscript_1ary_2col(), diagonal_subscript_1ary_2col(), index_subscript_1ary_2col(), Matrix_class(), sparse_subscript_1ary_2col(), valid_matrix, and validObject().
SEXP R_subscript_2ary | ( | SEXP | s_obj, |
SEXP | s_si, | ||
SEXP | s_sj ) |
Definition at line 1580 of file subscript.c.
References dense_subscript_2ary(), diagonal_subscript_2ary(), index_subscript_2ary(), Matrix_class(), sparse_subscript_2ary(), valid_matrix, and validObject().
|
static |
Definition at line 128 of file subscript.c.
References DIAG, DIM, GET_SLOT, kindToType(), Matrix_iSym, Matrix_jSym, Matrix_pSym, sparse_as_Csparse(), SUB1, SWITCH5, TRANS, TYPEOF, and UPLO.
Referenced by R_subscript_1ary().
|
static |
Definition at line 465 of file subscript.c.
References DIAG, GET_SLOT, kindToType(), Matrix_iSym, Matrix_jSym, Matrix_pSym, sparse_as_Csparse(), SUB1, SWITCH5, TRANS, TYPEOF, and UPLO.
Referenced by R_subscript_1ary_2col().
|
static |
Definition at line 1037 of file subscript.c.
References _, ABS, anyNA(), cl, DIAG, DIM, GET_SLOT, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_pSym, newObject(), SET_DIAG, SET_DIM, SET_SLOT, SET_TRANS, SET_UPLO, sparse_as_Csparse(), sparse_as_general(), sparse_as_Tsparse(), sparse_force_symmetric(), stay_sy(), stay_tr(), SUB2, SWAP, SWITCH5, TEMPLATE, TRANS, and UPLO.
Referenced by R_subscript_2ary().
|
static |
Definition at line 780 of file subscript.c.
References anyNA(), Matrix_Calloc, and Matrix_Free.
Referenced by diagonal_subscript_2ary().
|
static |
Definition at line 688 of file subscript.c.
References anyNA().
Referenced by dense_subscript_2ary(), and sparse_subscript_2ary().
|
static |
Definition at line 717 of file subscript.c.
References anyNA().
Referenced by dense_subscript_2ary(), and sparse_subscript_2ary().