Matrix r5059
|
Go to the source code of this file.
Macros | |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE__(d) |
#define | TEMPLATE__(d, c0, c1) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | DAS_CHECK |
#define | DAS_BYCOL(c, kernel, hook) |
#define | DAS_BYROW(c, kernel, hook) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE__(d, c) |
#define | TEMPLATE(c) |
#define | TEMPLATE__(d, c) |
#define | TEMPLATE__(d, c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE__(d, c) |
Functions | |
SEXP | vector_as_dense (SEXP from, const char *zzz, char ul, char ct, char nu, int m, int n, int byrow, SEXP dimnames) |
SEXP | R_vector_as_dense (SEXP s_from, SEXP s_zzz, SEXP s_uplo, SEXP s_trans, SEXP s_diag, SEXP s_m, SEXP s_n, SEXP s_byrow, SEXP s_dimnames) |
SEXP | matrix_as_dense (SEXP from, const char *zzz, char ul, char ct, char nu, int mg, int new) |
SEXP | R_matrix_as_dense (SEXP s_from, SEXP s_zzz, SEXP s_uplo, SEXP s_trans, SEXP s_diag, SEXP s_margin) |
SEXP | sparse_as_dense (SEXP from, const char *class, int packed) |
SEXP | R_sparse_as_dense (SEXP s_from, SEXP s_packed) |
SEXP | diagonal_as_dense (SEXP from, const char *class, char kind, char shape, int packed, char ul, char ct) |
SEXP | R_diagonal_as_dense (SEXP s_from, SEXP s_kind, SEXP s_shape, SEXP s_packed, SEXP s_uplo, SEXP s_trans) |
SEXP | index_as_dense (SEXP from, const char *class, char kind) |
SEXP | R_index_as_dense (SEXP s_from, SEXP s_kind) |
SEXP | Vector_as_sparse (SEXP from, const char *zzz, char ul, char ct, char nu, int m, int n, int byrow, SEXP dimnames) |
SEXP | R_Vector_as_sparse (SEXP s_from, SEXP s_zzz, SEXP s_uplo, SEXP s_trans, SEXP s_diag, SEXP s_m, SEXP s_n, SEXP s_byrow, SEXP s_dimnames) |
SEXP | matrix_as_sparse (SEXP from, const char *zzz, char ul, char ct, char nu, int mg) |
SEXP | R_matrix_as_sparse (SEXP s_from, SEXP s_zzz, SEXP s_uplo, SEXP s_trans, SEXP s_diag, SEXP s_margin) |
SEXP | dense_as_sparse (SEXP from, const char *class, char repr) |
SEXP | R_dense_as_sparse (SEXP s_from, SEXP s_repr) |
SEXP | diagonal_as_sparse (SEXP from, const char *class, char kind, char shape, char repr, char ul, char ct) |
SEXP | R_diagonal_as_sparse (SEXP s_from, SEXP s_kind, SEXP s_shape, SEXP s_repr, SEXP s_uplo, SEXP s_trans) |
SEXP | index_as_sparse (SEXP from, const char *class, char kind, char repr) |
SEXP | R_index_as_sparse (SEXP s_from, SEXP s_kind, SEXP s_repr) |
SEXP | dense_as_kind (SEXP from, const char *class, char kind, int new) |
SEXP | R_dense_as_kind (SEXP s_from, SEXP s_kind) |
SEXP | sparse_as_kind (SEXP from, const char *class, char kind) |
SEXP | R_sparse_as_kind (SEXP s_from, SEXP s_kind) |
SEXP | diagonal_as_kind (SEXP from, const char *class, char kind) |
SEXP | R_diagonal_as_kind (SEXP s_from, SEXP s_kind) |
SEXP | index_as_kind (SEXP from, const char *class, char kind) |
SEXP | R_index_as_kind (SEXP s_from, SEXP s_kind) |
SEXP | dense_as_general (SEXP from, const char *class, int new) |
SEXP | R_dense_as_general (SEXP s_from) |
SEXP | sparse_as_general (SEXP from, const char *class) |
SEXP | R_sparse_as_general (SEXP s_from) |
SEXP | dense_as_unpacked (SEXP from, const char *class) |
SEXP | R_dense_as_unpacked (SEXP s_from) |
SEXP | dense_as_packed (SEXP from, const char *class, char ul, char ct, char nu) |
SEXP | R_dense_as_packed (SEXP s_from, SEXP s_uplo, SEXP s_trans, SEXP s_diag) |
SEXP | sparse_as_Csparse (SEXP from, const char *class) |
SEXP | R_sparse_as_Csparse (SEXP s_from) |
SEXP | sparse_as_Rsparse (SEXP from, const char *class) |
SEXP | R_sparse_as_Rsparse (SEXP s_from) |
SEXP | sparse_as_Tsparse (SEXP from, const char *class) |
SEXP | R_sparse_as_Tsparse (SEXP s_from) |
SEXP | vector_as_Vector (SEXP from, char kind) |
SEXP | R_vector_as_Vector (SEXP s_from, SEXP s_kind) |
SEXP | sparse_as_Vector (SEXP from, const char *class) |
SEXP | R_sparse_as_Vector (SEXP s_from) |
SEXP | diagonal_as_Vector (SEXP from, const char *class) |
SEXP | R_diagonal_as_Vector (SEXP s_from) |
SEXP | index_as_Vector (SEXP from, const char *class) |
SEXP | R_index_as_Vector (SEXP s_from) |
SEXP | R_Matrix_as_vector (SEXP s_from) |
SEXP | R_Matrix_as_matrix (SEXP s_from) |
SEXP | R_Matrix_as_unpacked (SEXP s_from) |
SEXP | R_Matrix_as_packed (SEXP s_from) |
SEXP | R_Matrix_as_Csparse (SEXP s_from) |
SEXP | R_Matrix_as_Rsparse (SEXP s_from) |
SEXP | R_Matrix_as_Tsparse (SEXP s_from) |
SEXP | R_Matrix_as_Vector (SEXP s_from) |
SEXP | R_Matrix_as_kind (SEXP s_from, SEXP s_kind, SEXP s_sparse) |
SEXP | R_Matrix_as_general (SEXP s_from, SEXP s_kind) |
#define DAS_BYCOL | ( | c, | |
kernel, | |||
hook ) |
#define DAS_BYROW | ( | c, | |
kernel, | |||
hook ) |
#define DAS_CHECK |
#define TEMPLATE | ( | c | ) |
Referenced by dense_as_general(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), diagonal_as_dense(), diagonal_as_sparse(), diagonal_as_Vector(), index_as_dense(), matrix_as_dense(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_as_Vector(), vector_as_dense(), Vector_as_sparse(), and vector_as_Vector().
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE | ( | c | ) |
#define TEMPLATE__ | ( | d | ) |
Referenced by Vector_as_sparse().
#define TEMPLATE__ | ( | d, | |
c ) |
#define TEMPLATE__ | ( | d, | |
c ) |
#define TEMPLATE__ | ( | d, | |
c ) |
#define TEMPLATE__ | ( | d, | |
c ) |
#define TEMPLATE__ | ( | d, | |
c0, | |||
c1 ) |
SEXP dense_as_general | ( | SEXP | from, |
const char * | class, | ||
int | new ) |
Definition at line 2237 of file coerce.c.
References _, cl, COPY_SLOT, DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_factorsSym, Matrix_xSym, newObject(), SET_DIM, SET_DIMNAMES, SET_SLOT, SWITCH4, TEMPLATE, TRANS, TYPEOF, and UPLO.
Referenced by coerceArgs(), dense_expm(), dense_lu(), dense_schur(), R_dense_as_general(), R_dense_diag_set(), R_dense_matmult(), R_Matrix_as_general(), R_Matrix_as_matrix(), R_Matrix_as_vector(), and R_sparse_matmult().
SEXP dense_as_kind | ( | SEXP | from, |
const char * | class, | ||
char | kind, | ||
int | new ) |
Definition at line 2000 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, SET_UPLO, TYPEOF, and UPLO.
Referenced by coerceArgs(), dense_bunchkaufman(), dense_cholesky(), dense_expm(), dense_lu(), dense_schur(), dense_skewpart(), dense_symmpart(), R_dense_as_kind(), R_dense_diag_set(), R_Matrix_as_general(), R_Matrix_as_kind(), and R_sparse_matmult().
SEXP dense_as_packed | ( | SEXP | from, |
const char * | class, | ||
char | ul, | ||
char | ct, | ||
char | nu ) |
Definition at line 2654 of file coerce.c.
References _, cl, COPY_SLOT, DIAG, DIM, DIMNAMES, GET_SLOT, Matrix_factorsSym, Matrix_sdSym, Matrix_xSym, newObject(), PACKED_LENGTH, SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_TRANS, SET_UPLO, SWITCH4, TEMPLATE, TRANS, TYPEOF, and UPLO.
Referenced by dense_expm(), R_dense_as_packed(), and R_Matrix_as_packed().
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 R_dense_as_general | ( | SEXP | s_from | ) |
Definition at line 2292 of file coerce.c.
References dense_as_general(), Matrix_class(), and valid_dense.
SEXP R_dense_as_kind | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 2066 of file coerce.c.
References dense_as_kind(), Matrix_class(), valid_dense, and VALID_KIND.
SEXP R_dense_as_packed | ( | SEXP | s_from, |
SEXP | s_uplo, | ||
SEXP | s_trans, | ||
SEXP | s_diag ) |
Definition at line 2717 of file coerce.c.
References dense_as_packed(), Matrix_class(), valid_dense, VALID_DIAG, VALID_TRANS, and VALID_UPLO.
SEXP R_dense_as_sparse | ( | SEXP | s_from, |
SEXP | s_repr ) |
Definition at line 1735 of file coerce.c.
References dense_as_sparse(), Matrix_class(), valid_dense, and VALID_REPR.
SEXP R_dense_as_unpacked | ( | SEXP | s_from | ) |
Definition at line 2648 of file coerce.c.
References dense_as_unpacked(), Matrix_class(), and valid_dense.
SEXP R_diagonal_as_dense | ( | SEXP | s_from, |
SEXP | s_kind, | ||
SEXP | s_shape, | ||
SEXP | s_packed, | ||
SEXP | s_uplo, | ||
SEXP | s_trans ) |
Definition at line 666 of file coerce.c.
References diagonal_as_dense(), Matrix_class(), valid_diagonal, VALID_KIND, VALID_LOGIC2, VALID_SHAPE, VALID_TRANS, and VALID_UPLO.
SEXP R_diagonal_as_kind | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 2211 of file coerce.c.
References diagonal_as_kind(), Matrix_class(), valid_diagonal, and VALID_KIND.
SEXP R_diagonal_as_sparse | ( | SEXP | s_from, |
SEXP | s_kind, | ||
SEXP | s_shape, | ||
SEXP | s_repr, | ||
SEXP | s_uplo, | ||
SEXP | s_trans ) |
Definition at line 1898 of file coerce.c.
References diagonal_as_sparse(), Matrix_class(), valid_diagonal, VALID_KIND, VALID_REPR, VALID_SHAPE, VALID_TRANS, and VALID_UPLO.
SEXP R_diagonal_as_Vector | ( | SEXP | s_from | ) |
Definition at line 3368 of file coerce.c.
References diagonal_as_Vector(), Matrix_class(), and valid_diagonal.
SEXP R_index_as_dense | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 740 of file coerce.c.
References index_as_dense(), Matrix_class(), valid_index, and VALID_KIND.
SEXP R_index_as_kind | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 2227 of file coerce.c.
References index_as_kind(), Matrix_class(), valid_index, and VALID_KIND.
SEXP R_index_as_sparse | ( | SEXP | s_from, |
SEXP | s_kind, | ||
SEXP | s_repr ) |
Definition at line 1989 of file coerce.c.
References index_as_sparse(), Matrix_class(), valid_index, VALID_KIND, and VALID_REPR.
SEXP R_index_as_Vector | ( | SEXP | s_from | ) |
Definition at line 3440 of file coerce.c.
References index_as_Vector(), Matrix_class(), and valid_index.
SEXP R_Matrix_as_Csparse | ( | SEXP | s_from | ) |
Definition at line 3638 of file coerce.c.
References dense_as_sparse(), diagonal_as_sparse(), index_as_sparse(), Matrix_class(), sparse_as_Csparse(), and valid_matrix.
SEXP R_matrix_as_dense | ( | SEXP | s_from, |
SEXP | s_zzz, | ||
SEXP | s_uplo, | ||
SEXP | s_trans, | ||
SEXP | s_diag, | ||
SEXP | s_margin ) |
Definition at line 377 of file coerce.c.
References _, ERROR_INVALID_TYPE, matrix_as_dense(), TYPEOF, VALID_DIAG, VALID_MARGIN, VALID_TRANS, and VALID_UPLO.
SEXP R_Matrix_as_general | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 3798 of file coerce.c.
References dense_as_general(), dense_as_kind(), diagonal_as_sparse(), index_as_sparse(), kindToType(), Matrix_class(), sparse_as_general(), sparse_as_kind(), VALID_KIND, and valid_matrix.
SEXP R_Matrix_as_kind | ( | SEXP | s_from, |
SEXP | s_kind, | ||
SEXP | s_sparse ) |
Definition at line 3741 of file coerce.c.
References dense_as_kind(), dense_as_sparse(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), index_as_dense(), index_as_sparse(), Matrix_class(), sparse_as_dense(), sparse_as_kind(), VALID_KIND, VALID_LOGIC3, and valid_matrix.
SEXP R_Matrix_as_matrix | ( | SEXP | s_from | ) |
Definition at line 3516 of file coerce.c.
References dense_as_general(), diagonal_as_dense(), DIMNAMES, DimNames_is_trivial(), duplicateVector(), GET_SLOT, index_as_dense(), Matrix_class(), Matrix_DimSym, Matrix_xSym, naToUnit(), sparse_as_dense(), and valid_matrix.
SEXP R_Matrix_as_packed | ( | SEXP | s_from | ) |
Definition at line 3609 of file coerce.c.
References _, dense_as_packed(), diagonal_as_dense(), Matrix_class(), sparse_as_dense(), and valid_matrix.
SEXP R_Matrix_as_Rsparse | ( | SEXP | s_from | ) |
Definition at line 3663 of file coerce.c.
References dense_as_sparse(), diagonal_as_sparse(), index_as_sparse(), Matrix_class(), sparse_as_Rsparse(), and valid_matrix.
SEXP R_matrix_as_sparse | ( | SEXP | s_from, |
SEXP | s_zzz, | ||
SEXP | s_uplo, | ||
SEXP | s_trans, | ||
SEXP | s_diag, | ||
SEXP | s_margin ) |
Definition at line 1317 of file coerce.c.
References _, ERROR_INVALID_TYPE, matrix_as_sparse(), TYPEOF, VALID_DIAG, VALID_MARGIN, VALID_TRANS, and VALID_UPLO.
SEXP R_Matrix_as_Tsparse | ( | SEXP | s_from | ) |
Definition at line 3688 of file coerce.c.
References dense_as_sparse(), diagonal_as_sparse(), index_as_sparse(), Matrix_class(), sparse_as_Tsparse(), and valid_matrix.
SEXP R_Matrix_as_unpacked | ( | SEXP | s_from | ) |
Definition at line 3583 of file coerce.c.
References dense_as_unpacked(), diagonal_as_dense(), index_as_dense(), Matrix_class(), sparse_as_dense(), and valid_matrix.
SEXP R_Matrix_as_Vector | ( | SEXP | s_from | ) |
Definition at line 3713 of file coerce.c.
References dense_as_sparse(), diagonal_as_Vector(), index_as_Vector(), Matrix_class(), sparse_as_Vector(), and valid_matrix.
SEXP R_Matrix_as_vector | ( | SEXP | s_from | ) |
Definition at line 3447 of file coerce.c.
References dense_as_general(), diagonal_as_dense(), duplicateVector(), GET_SLOT, index_as_dense(), Matrix_class(), Matrix_xSym, naToUnit(), sparse_as_dense(), and valid_matrix.
SEXP R_sparse_as_Csparse | ( | SEXP | s_from | ) |
Definition at line 2841 of file coerce.c.
References Matrix_class(), sparse_as_Csparse(), and valid_sparse.
SEXP R_sparse_as_dense | ( | SEXP | s_from, |
SEXP | s_packed ) |
Definition at line 589 of file coerce.c.
References Matrix_class(), sparse_as_dense(), VALID_LOGIC2, and valid_sparse.
SEXP R_sparse_as_general | ( | SEXP | s_from | ) |
Definition at line 2592 of file coerce.c.
References Matrix_class(), sparse_as_general(), and valid_sparse.
SEXP R_sparse_as_kind | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 2150 of file coerce.c.
References Matrix_class(), sparse_as_kind(), VALID_KIND, and valid_sparse.
SEXP R_sparse_as_Rsparse | ( | SEXP | s_from | ) |
Definition at line 2957 of file coerce.c.
References Matrix_class(), sparse_as_Rsparse(), and valid_sparse.
SEXP R_sparse_as_Tsparse | ( | SEXP | s_from | ) |
Definition at line 3038 of file coerce.c.
References Matrix_class(), sparse_as_Tsparse(), and valid_sparse.
SEXP R_sparse_as_Vector | ( | SEXP | s_from | ) |
Definition at line 3275 of file coerce.c.
References Matrix_class(), sparse_as_Vector(), and valid_sparse.
SEXP R_vector_as_dense | ( | SEXP | s_from, |
SEXP | s_zzz, | ||
SEXP | s_uplo, | ||
SEXP | s_trans, | ||
SEXP | s_diag, | ||
SEXP | s_m, | ||
SEXP | s_n, | ||
SEXP | s_byrow, | ||
SEXP | s_dimnames ) |
Definition at line 137 of file coerce.c.
References _, ERROR_INVALID_TYPE, TYPEOF, VALID_DIAG, VALID_LOGIC2, VALID_TRANS, VALID_UPLO, and vector_as_dense().
SEXP R_Vector_as_sparse | ( | SEXP | s_from, |
SEXP | s_zzz, | ||
SEXP | s_uplo, | ||
SEXP | s_trans, | ||
SEXP | s_diag, | ||
SEXP | s_m, | ||
SEXP | s_n, | ||
SEXP | s_byrow, | ||
SEXP | s_dimnames ) |
Definition at line 1180 of file coerce.c.
References _, GET_SLOT, Matrix_class(), Matrix_lengthSym, TYPEOF, VALID_DIAG, VALID_LOGIC2, VALID_TRANS, VALID_UPLO, valid_vector, and Vector_as_sparse().
SEXP R_vector_as_Vector | ( | SEXP | s_from, |
SEXP | s_kind ) |
Definition at line 3124 of file coerce.c.
References ERROR_INVALID_TYPE, TYPEOF, VALID_KIND, and vector_as_Vector().
SEXP sparse_as_Csparse | ( | SEXP | from, |
const char * | class ) |
Definition at line 2731 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_Csparse(), R_sparse_as_Csparse(), sparse_as_Vector(), sparse_cholesky(), sparse_is_symmetric(), sparse_lu(), sparse_qr(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), sparse_subscript_2ary(), and Vector_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_general | ( | SEXP | from, |
const char * | class ) |
Definition at line 2298 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_DIM, SET_DIMNAMES, SET_SLOT, SWITCH5, TEMPLATE, TRANS, and UPLO.
Referenced by coerceArgs(), Csparse_writeMM(), R_Matrix_as_general(), R_sparse_as_general(), R_sparse_diag_set(), R_sparse_matmult(), sparse_as_Vector(), sparse_cholesky(), sparse_lu(), sparse_qr(), and sparse_subscript_2ary().
SEXP sparse_as_kind | ( | SEXP | from, |
const char * | class, | ||
char | kind ) |
Definition at line 2076 of file coerce.c.
References allocUnit(), cl, DIAG, DIM, DIMNAMES, GET_SLOT, kindToType(), Matrix_iSym, Matrix_jSym, Matrix_pSym, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_DIMNAMES, SET_SLOT, SET_UPLO, sparse_aggregate(), and UPLO.
Referenced by coerceArgs(), Csparse_writeMM(), matrix_as_sparse(), R_diagonal_matmult(), R_Matrix_as_general(), R_Matrix_as_kind(), R_sparse_as_kind(), R_sparse_diag_set(), sparse_cholesky(), sparse_lu(), sparse_qr(), sparse_skewpart(), and sparse_symmpart().
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().