Matrix r5059
|
#include <Rinternals.h>
Go to the source code of this file.
Functions | |
SEXP | vector_as_dense (SEXP, const char *, char, char, char, int, int, int, SEXP) |
SEXP | matrix_as_dense (SEXP, const char *, char, char, char, int, int) |
SEXP | sparse_as_dense (SEXP, const char *, int) |
SEXP | diagonal_as_dense (SEXP, const char *, char, char, int, char, char) |
SEXP | index_as_dense (SEXP, const char *, char) |
SEXP | Vector_as_sparse (SEXP, const char *, char, char, char, int, int, int, SEXP) |
SEXP | matrix_as_sparse (SEXP, const char *, char, char, char, int) |
SEXP | dense_as_sparse (SEXP, const char *, char) |
SEXP | diagonal_as_sparse (SEXP, const char *, char, char, char, char, char) |
SEXP | index_as_sparse (SEXP, const char *, char, char) |
SEXP | dense_as_kind (SEXP, const char *, char, int) |
SEXP | sparse_as_kind (SEXP, const char *, char) |
SEXP | diagonal_as_kind (SEXP, const char *, char) |
SEXP | index_as_kind (SEXP, const char *, char) |
SEXP | dense_as_general (SEXP, const char *, int) |
SEXP | sparse_as_general (SEXP, const char *) |
SEXP | dense_as_unpacked (SEXP, const char *) |
SEXP | dense_as_packed (SEXP, const char *, char, char, char) |
SEXP | sparse_as_Csparse (SEXP, const char *) |
SEXP | sparse_as_Rsparse (SEXP, const char *) |
SEXP | sparse_as_Tsparse (SEXP, const char *) |
SEXP | vector_as_Vector (SEXP, char) |
SEXP | sparse_as_Vector (SEXP, const char *) |
SEXP | diagonal_as_Vector (SEXP, const char *) |
SEXP | index_as_Vector (SEXP, const char *) |
SEXP dense_as_general | ( | SEXP | from, |
const char * | class, | ||
int | new ) |
SEXP dense_as_kind | ( | SEXP | from, |
const char * | class, | ||
char | kind, | ||
int | new ) |
SEXP dense_as_packed | ( | SEXP | from, |
const char * | class, | ||
char | ul, | ||
char | ct, | ||
char | nu ) |
SEXP dense_as_sparse | ( | SEXP | from, |
const char * | class, | ||
char | repr ) |
Definition at line 1351 of file coerce.c.
References cl, DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH5, TEMPLATE, TRANS, and UPLO.
Referenced by coerceArgs(), matrix_as_sparse(), R_dense_as_sparse(), R_Matrix_as_Csparse(), R_Matrix_as_kind(), R_Matrix_as_Rsparse(), R_Matrix_as_Tsparse(), and R_Matrix_as_Vector().
SEXP dense_as_unpacked | ( | SEXP | from, |
const char * | class ) |
Definition at line 2598 of file coerce.c.
References _, cl, COPY_SLOT, DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_factorsSym, Matrix_sdSym, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH4, TEMPLATE, TRANS, TYPEOF, and UPLO.
Referenced by R_dense_as_unpacked(), and R_Matrix_as_unpacked().
SEXP diagonal_as_dense | ( | SEXP | from, |
const char * | class, | ||
char | kind, | ||
char | shape, | ||
int | packed, | ||
char | ul, | ||
char | ct ) |
Definition at line 599 of file coerce.c.
References _, cl, DIAG, DIM, DIMNAMES, duplicateVector(), GET_SLOT, kindToSize(), kindToType(), Matrix_xSym, naToUnit(), newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH4, TEMPLATE, and TYPEOF.
Referenced by coerceArgs(), R_diagonal_as_dense(), R_Matrix_as_kind(), R_Matrix_as_matrix(), R_Matrix_as_packed(), R_Matrix_as_unpacked(), and R_Matrix_as_vector().
SEXP diagonal_as_kind | ( | SEXP | from, |
const char * | class, | ||
char | kind ) |
Definition at line 2160 of file coerce.c.
References cl, DIAG, DIM, DIMNAMES, duplicateVector(), GET_SLOT, kindToType(), Matrix_xSym, naToUnit(), newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, and TYPEOF.
Referenced by R_diagonal_as_kind(), and R_Matrix_as_kind().
SEXP diagonal_as_sparse | ( | SEXP | from, |
const char * | class, | ||
char | kind, | ||
char | shape, | ||
char | repr, | ||
char | ul, | ||
char | ct ) |
Definition at line 1745 of file coerce.c.
References allocSeqInt(), allocUnit(), allocZero(), cl, DIAG, DIM, DIMNAMES, duplicateVector(), GET_SLOT, kindToType(), Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_xSym, naToUnit(), newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH4, SWITCH5, and TEMPLATE.
Referenced by coerceArgs(), R_diagonal_as_sparse(), R_Matrix_as_Csparse(), R_Matrix_as_general(), R_Matrix_as_kind(), R_Matrix_as_Rsparse(), and R_Matrix_as_Tsparse().
SEXP diagonal_as_Vector | ( | SEXP | from, |
const char * | class ) |
Definition at line 3281 of file coerce.c.
References _, cl, DIAG, DIM, GET_SLOT, Matrix_iSym, Matrix_lengthSym, Matrix_xSym, newObject(), SET_SLOT, SWITCH4, SWITCH5, TEMPLATE, and TYPEOF.
Referenced by R_diagonal_as_Vector(), and R_Matrix_as_Vector().
SEXP index_as_dense | ( | SEXP | from, |
const char * | class, | ||
char | kind ) |
Definition at line 686 of file coerce.c.
References _, cl, DIM, DIMNAMES, GET_SLOT, kindToSize(), kindToType(), MARGIN, Matrix_permSym, Matrix_xSym, newObject(), SET_DIM, SET_DIMNAMES, SET_SLOT, SWITCH4, and TEMPLATE.
Referenced by coerceArgs(), R_index_as_dense(), R_Matrix_as_kind(), R_Matrix_as_matrix(), R_Matrix_as_unpacked(), and R_Matrix_as_vector().
SEXP index_as_kind | ( | SEXP | from, |
const char * | class, | ||
char | kind ) |
Definition at line 2221 of file coerce.c.
References index_as_sparse().
Referenced by R_index_as_kind().
SEXP index_as_sparse | ( | SEXP | from, |
const char * | class, | ||
char | kind, | ||
char | repr ) |
Definition at line 1916 of file coerce.c.
References allocUnit(), cl, DIM, DIMNAMES, GET_SLOT, kindToType(), MARGIN, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_permSym, Matrix_pSym, Matrix_xSym, newObject(), SET_DIM, SET_DIMNAMES, and SET_SLOT.
Referenced by coerceArgs(), index_as_kind(), R_index_as_sparse(), R_Matrix_as_Csparse(), R_Matrix_as_general(), R_Matrix_as_kind(), R_Matrix_as_Rsparse(), and R_Matrix_as_Tsparse().
SEXP index_as_Vector | ( | SEXP | from, |
const char * | class ) |
Definition at line 3374 of file coerce.c.
References _, DIM, GET_SLOT, MARGIN, Matrix_Calloc, Matrix_Free, Matrix_iSym, Matrix_lengthSym, Matrix_permSym, newObject(), SET_SLOT, and TYPEOF.
Referenced by R_index_as_Vector(), and R_Matrix_as_Vector().
SEXP matrix_as_dense | ( | SEXP | from, |
const char * | zzz, | ||
char | ul, | ||
char | ct, | ||
char | nu, | ||
int | mg, | ||
int | new ) |
Definition at line 262 of file coerce.c.
References _, cl, DIM, duplicateVector(), kindToType(), Matrix_xSym, newObject(), SET_DIAG, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH4, TEMPLATE, TYPEOF, and typeToKind().
Referenced by matrix_as_sparse(), R_dense_band(), R_dense_is_diagonal(), R_dense_is_symmetric(), R_dense_is_triangular(), and R_matrix_as_dense().
SEXP matrix_as_sparse | ( | SEXP | from, |
const char * | zzz, | ||
char | ul, | ||
char | ct, | ||
char | nu, | ||
int | mg ) |
Definition at line 1295 of file coerce.c.
References cl, dense_as_sparse(), matrix_as_dense(), sparse_as_kind(), TYPEOF, and typeToKind().
Referenced by coerceArgs(), and R_matrix_as_sparse().
SEXP sparse_as_dense | ( | SEXP | from, |
const char * | class, | ||
int | packed ) |
Definition at line 414 of file coerce.c.
References _, cl, DIAG, DIM, DIMNAMES, GET_SLOT, kindToSize(), Matrix_iSym, Matrix_jSym, Matrix_pSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_TRANS, SET_UPLO, SWITCH5, TEMPLATE, TRANS, and UPLO.
Referenced by coerceArgs(), R_Matrix_as_kind(), R_Matrix_as_matrix(), R_Matrix_as_packed(), R_Matrix_as_unpacked(), R_Matrix_as_vector(), and R_sparse_as_dense().
SEXP sparse_as_kind | ( | SEXP | from, |
const char * | class, | ||
char | kind ) |
SEXP sparse_as_Rsparse | ( | SEXP | from, |
const char * | class ) |
Definition at line 2847 of file coerce.c.
References _, cl, COPY_SLOT, DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_Calloc, Matrix_factorsSym, Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_pSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH5, TEMPLATE, TRANS, and UPLO.
Referenced by coerceArgs(), R_Matrix_as_Rsparse(), R_sparse_as_Rsparse(), and Vector_as_sparse().
SEXP sparse_as_Tsparse | ( | SEXP | from, |
const char * | class ) |
Definition at line 2963 of file coerce.c.
References cl, COPY_SLOT, DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_factorsSym, Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWAP, SWITCH4, TEMPLATE, TRANS, TYPEOF, and UPLO.
Referenced by coerceArgs(), R_Matrix_as_Tsparse(), R_sparse_as_Tsparse(), sparse_subscript_2ary(), and Vector_as_sparse().
SEXP sparse_as_Vector | ( | SEXP | from, |
const char * | class ) |
Definition at line 3143 of file coerce.c.
References _, cl, DIM, GET_SLOT, Matrix_Calloc, Matrix_class(), Matrix_Free, Matrix_iSym, Matrix_jSym, Matrix_lengthSym, Matrix_pSym, newObject(), SET_SLOT, sparse_as_Csparse(), sparse_as_general(), SWITCH5, TEMPLATE, TYPEOF, and valid_sparse.
Referenced by R_Matrix_as_Vector(), and R_sparse_as_Vector().
SEXP vector_as_dense | ( | SEXP | from, |
const char * | zzz, | ||
char | ul, | ||
char | ct, | ||
char | nu, | ||
int | m, | ||
int | n, | ||
int | byrow, | ||
SEXP | dimnames ) |
Definition at line 8 of file coerce.c.
References _, cl, kindToType(), Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH4, TEMPLATE, TYPEOF, and typeToKind().
Referenced by R_vector_as_dense().
SEXP Vector_as_sparse | ( | SEXP | from, |
const char * | zzz, | ||
char | ul, | ||
char | ct, | ||
char | nu, | ||
int | m, | ||
int | n, | ||
int | byrow, | ||
SEXP | dimnames ) |
Definition at line 750 of file coerce.c.
References _, cl, GET_SLOT, kindToType(), Matrix_iSym, Matrix_jSym, Matrix_lengthSym, Matrix_pSym, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, sparse_as_Csparse(), sparse_as_Rsparse(), sparse_as_Tsparse(), SWAP, SWITCH5, TEMPLATE, TEMPLATE__, TYPEOF, and typeToKind().
Referenced by R_Vector_as_sparse().
SEXP vector_as_Vector | ( | SEXP | from, |
char | kind ) |
Definition at line 3044 of file coerce.c.
References _, cl, kindToType(), Matrix_iSym, Matrix_lengthSym, newObject(), SET_SLOT, SWITCH4, SWITCH5, TEMPLATE, TYPEOF, and typeToKind().
Referenced by R_vector_as_Vector().