Matrix r5059
|
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <Rconfig.h>
#include <R_ext/Arith.h>
#include <R_ext/Boolean.h>
#include <R_ext/Complex.h>
#include <R_ext/Error.h>
#include <R_ext/Memory.h>
#include <R_ext/Utils.h>
#include <R_ext/RS.h>
#include <Rinternals.h>
#include <Rversion.h>
Go to the source code of this file.
Macros | |
#define | Matrix_ErrorBufferSize 4096 |
#define | Matrix_CallocThreshold 8192 |
#define | Matrix_TranslationDomain "Matrix" |
#define | Matrix_alloca(x) |
#define | Matrix_Calloc(p, n, t) |
#define | Matrix_Free(p, n) |
#define | dgettext(Domain, String) |
#define | dngettext(Domain, String, StringP, N) |
#define | _(String) |
#define | errorChar(...) |
#define | errorString(...) |
#define | HAS_SLOT(x, name) |
#define | GET_SLOT(x, name) |
#define | SET_SLOT(x, name, value) |
#define | COPY_SLOT(dest, src, name) |
#define | DIM(x) |
#define | SET_DIM(x, m, n) |
#define | DIMNAMES(x, mode) |
#define | SET_DIMNAMES(x, mode, value) |
#define | UPLO(x) |
#define | SET_UPLO(x) |
#define | TRANS(x) |
#define | SET_TRANS(x) |
#define | DIAG(x) |
#define | SET_DIAG(x) |
#define | MARGIN(x) |
#define | SET_MARGIN(x, j) |
#define | TYPEOF(s) |
#define | DENSE_INDEX_N(i, j, m) |
#define | DENSE_INDEX_U(i, j, m) |
#define | DENSE_INDEX_L(i, j, m) |
#define | PACKED_LENGTH(n) |
#define | ABS(i) |
#define | SWAP(a, b, t, op) |
#define | ERROR_OOM(_FUNC_) |
#define | ERROR_INVALID_TYPE(_X_, _FUNC_) |
#define | ERROR_INVALID_CLASS(_X_, _FUNC_) |
#define | VALID_UPLO(s, c) |
#define | VALID_TRANS(s, c) |
#define | VALID_DIAG(s, c) |
#define | VALID_KIND(s, c) |
#define | VALID_SHAPE(s, c) |
#define | VALID_REPR(s, c, dot) |
#define | VALID_MARGIN(s, d) |
#define | VALID_LOGIC2(s, d) |
#define | VALID_LOGIC3(s, d) |
#define | VALID_DENSE |
#define | VALID_SPARSE_COMPRESSED |
#define | VALID_SPARSE_TRIPLET |
#define | VALID_SPARSE VALID_SPARSE_COMPRESSED, VALID_SPARSE_TRIPLET |
#define | VALID_DIAGONAL "ndiMatrix", "ldiMatrix", "idiMatrix", "ddiMatrix", "zdiMatrix" |
#define | VALID_INDEX "indMatrix", "pMatrix" |
#define | VALID_MATRIX VALID_DENSE, VALID_SPARSE, VALID_DIAGONAL, VALID_INDEX |
#define | VALID_VECTOR "nsparseVector", "lsparseVector", "isparseVector", "dsparseVector", "zsparseVector" |
#define | VALID_MATRIX_OR_VECTOR VALID_MATRIX, VALID_VECTOR |
Functions | |
char * | Matrix_sprintf (const char *,...) |
int | equalString (SEXP, SEXP, R_xlen_t) |
SEXP | duplicateVector (SEXP) |
SEXP | allocZero (SEXPTYPE, R_xlen_t) |
SEXP | allocUnit (SEXPTYPE, R_xlen_t) |
SEXP | allocSeqInt (int, R_xlen_t) |
void | naToUnit (SEXP) |
SEXP | newObject (const char *) |
void | validObject (SEXP, const char *) |
char | typeToKind (SEXPTYPE) |
SEXPTYPE | kindToType (char) |
size_t | kindToSize (char) |
const char * | Matrix_superclass (const char *, int) |
const char * | Matrix_class (SEXP, const char **, int, const char *) |
int | DimNames_is_trivial (SEXP) |
int | DimNames_is_symmetric (SEXP) |
void | symDN (SEXP, SEXP, int) |
void | cpyDN (SEXP, SEXP, int) |
SEXP | DIMNAMES (SEXP, int) |
void | SET_DIMNAMES (SEXP, int, SEXP) |
SEXP | get_factor (SEXP, const char *) |
void | set_factor (SEXP, const char *, SEXP) |
#define _ | ( | String | ) |
Definition at line 66 of file Mdefines.h.
Referenced by asPerm(), bind(), bindArgs(), CHD2M(), checkpi(), CHF2M(), cholmod_dense_as_sexp(), cholmod_factor_as_sexp(), cholmod_factor_ldetA(), cholmod_factor_update(), cholmod_sparse_as_sexp(), cholmod_triplet_as_sexp(), CHS2M(), copMatrix_validate(), corMatrix_validate(), Csparse_subassign(), Csparse_writeMM(), CsparseMatrix_validate(), CsparseMatrix_validate_maybe_sorting(), dense_as_general(), dense_as_packed(), dense_as_unpacked(), dense_bunchkaufman(), dense_cholesky(), dense_expm(), dense_force_symmetric(), dense_schur(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), denseBunchKaufman_validate(), denseCholesky_validate(), denseLU_validate(), denseQR_validate(), denseSchur_validate(), dgCMatrix_cholsol(), dgCMatrix_lusol(), dgCMatrix_qrsol(), diagonal_as_dense(), diagonal_as_Vector(), diagonal_subscript_2ary(), diagonalMatrix_validate(), Dim_validate(), DimNames_validate(), dtCMatrix_diag(), gCgCMatrix_matmult(), gCgeMatrix_matmult(), geMatrix_matmult(), geMatrix_rcond(), generalMatrix_validate(), index_as_dense(), index_as_Vector(), index_subscript_2ary(), indMatrix_validate(), invertPerm(), kindToSize(), kindToType(), La_norm_type(), La_rcond_type(), m_encodeInd(), m_encodeInd2(), matmultDim(), matrix_as_dense(), Matrix_cholmod_error_handler(), Matrix_cholmod_finish(), Matrix_cholmod_start(), Mmatrix(), packedMatrix_validate(), pMatrix_validate(), R_all0(), R_any0(), R_asPerm(), R_dense_band(), R_dense_cholesky(), R_dense_diag_set(), R_diagonal_matmult(), R_Dim_prod(), R_index_diagonal(), R_index_triangle(), R_invertPerm(), R_isPerm(), R_matrix_as_dense(), R_Matrix_as_packed(), R_matrix_as_sparse(), R_set_factor(), R_signPerm(), R_sparse_band(), R_sparse_cholesky(), R_sparse_diag_set(), R_sparse_dropzero(), R_sparse_lu(), R_sparse_matmult(), R_vector_as_dense(), R_Vector_as_sparse(), RsparseMatrix_validate(), scanArgs(), sCMatrix_validate(), sexp_as_cholmod_sparse(), signPerm(), simplicialCholesky_validate(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_Rsparse(), sparse_as_Vector(), sparse_diag_set(), sparse_force_symmetric(), sparse_lu(), sparse_qr(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparseCholesky_solve(), sparseCholesky_update(), sparseCholesky_validate(), sparseLU_solve(), sparseLU_validate(), sparseQR_determinant(), sparseQR_matmult(), sparseQR_validate(), sparseVector_validate(), spMatrix_matmult(), sRMatrix_validate(), sTMatrix_validate(), supernodalCholesky_validate(), syMatrix_matmult(), symmetricMatrix_validate(), tCMatrix_solve(), tCMatrix_validate(), tpMatrix_matmult(), triangularMatrix_validate(), trMatrix_matmult(), tRMatrix_validate(), TsparseMatrix_validate(), tTMatrix_validate(), typeToKind(), unpackedMatrix_validate(), vector_as_dense(), Vector_as_sparse(), vector_as_Vector(), xgCMatrix_validate(), xgRMatrix_validate(), xgTMatrix_validate(), xpCMatrix_validate(), xpoMatrix_validate(), xppMatrix_validate(), xpRMatrix_validate(), and xpTMatrix_validate().
#define ABS | ( | i | ) |
Definition at line 135 of file Mdefines.h.
Referenced by dense_subscript_2ary(), and sparse_subscript_2ary().
#define COPY_SLOT | ( | dest, | |
src, | |||
name ) |
Definition at line 75 of file Mdefines.h.
Referenced by dense_as_general(), dense_as_packed(), dense_as_unpacked(), dense_force_canonical(), dense_transpose(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_general(), sparse_as_Rsparse(), and sparse_as_Tsparse().
#define DENSE_INDEX_L | ( | i, | |
j, | |||
m ) |
Definition at line 130 of file Mdefines.h.
#define DENSE_INDEX_N | ( | i, | |
j, | |||
m ) |
Definition at line 126 of file Mdefines.h.
#define DENSE_INDEX_U | ( | i, | |
j, | |||
m ) |
Definition at line 128 of file Mdefines.h.
#define dgettext | ( | Domain, | |
String ) |
Definition at line 63 of file Mdefines.h.
#define DIAG | ( | x | ) |
Definition at line 111 of file Mdefines.h.
Referenced by dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_get(), dense_force_canonical(), dense_force_symmetric(), dense_is_canonical(), dense_is_symmetric(), dense_marginsum(), dense_prod(), dense_skewpart(), dense_subscript_1ary(), dense_subscript_1ary_2col(), dense_subscript_2ary(), dense_sum(), dense_symmpart(), dense_transpose(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_as_Vector(), diagonal_subscript_1ary(), diagonal_subscript_1ary_2col(), diagonal_subscript_2ary(), R_diagonal_matmult(), scanArgs(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_diag_get(), sparse_diag_N2U(), sparse_diag_set(), sparse_diag_U2N(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_is_canonical(), sparse_is_symmetric(), sparse_marginsum(), sparse_prod(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), sparse_subscript_2ary(), sparse_sum(), sparse_symmpart(), sparse_transpose(), sparseLU_validate(), tCMatrix_validate(), tpMatrix_matmult(), tpMatrix_norm(), tpMatrix_rcond(), trMatrix_matmult(), trMatrix_norm(), trMatrix_rcond(), trMatrix_solve(), tRMatrix_validate(), and tTMatrix_validate().
#define DIM | ( | x | ) |
Definition at line 85 of file Mdefines.h.
Referenced by copMatrix_validate(), corMatrix_validate(), CsparseMatrix_validate(), dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_get(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_is_canonical(), dense_is_diagonal(), dense_is_symmetric(), dense_is_triangular(), dense_lu(), dense_marginsum(), dense_schur(), dense_skewpart(), dense_subscript_1ary(), dense_subscript_1ary_2col(), dense_subscript_2ary(), dense_sum(), dense_symmpart(), dense_transpose(), denseBunchKaufman_expand(), denseBunchKaufman_validate(), denseCholesky_diag_get(), denseCholesky_validate(), denseLU_validate(), denseQR_validate(), denseSchur_validate(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_as_Vector(), diagonal_subscript_1ary(), diagonal_subscript_2ary(), diagonalMatrix_validate(), geMatrix_matmult(), geMatrix_norm(), geMatrix_rcond(), index_as_dense(), index_as_sparse(), index_as_Vector(), index_subscript_1ary(), index_subscript_2ary(), indMatrix_validate(), matrix_as_dense(), packedMatrix_validate(), pMatrix_validate(), poMatrix_rcond(), ppMatrix_rcond(), R_dense_band(), R_dense_diag_set(), R_sparse_band(), R_sparse_diag_set(), RsparseMatrix_validate(), simplicialCholesky_validate(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_as_Vector(), sparse_band(), sparse_diag_get(), sparse_diag_N2U(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_is_canonical(), sparse_is_diagonal(), sparse_is_symmetric(), sparse_is_triangular(), sparse_marginsum(), sparse_prod(), sparse_skewpart(), sparse_subscript_1ary(), sparse_subscript_2ary(), sparse_sum(), sparse_symmpart(), sparse_transpose(), sparseCholesky_validate(), sparseLU_validate(), sparseQR_determinant(), sparseQR_matmult(), sparseQR_validate(), spMatrix_matmult(), spMatrix_norm(), spMatrix_rcond(), supernodalCholesky_validate(), syMatrix_matmult(), syMatrix_norm(), syMatrix_rcond(), symmetricMatrix_validate(), tpMatrix_matmult(), tpMatrix_norm(), tpMatrix_rcond(), triangularMatrix_validate(), trMatrix_matmult(), trMatrix_norm(), trMatrix_rcond(), TsparseMatrix_validate(), unpackedMatrix_validate(), xpCMatrix_validate(), xpoMatrix_validate(), xppMatrix_validate(), xpRMatrix_validate(), and xpTMatrix_validate().
#define DIMNAMES | ( | x, | |
mode ) |
Definition at line 96 of file Mdefines.h.
Referenced by dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_get(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_is_symmetric(), dense_lu(), dense_marginsum(), dense_schur(), dense_skewpart(), dense_symmpart(), dense_transpose(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), gCgCMatrix_matmult(), gCgeMatrix_matmult(), geMatrix_matmult(), index_as_dense(), index_as_sparse(), R_diagonal_matmult(), R_Matrix_as_matrix(), R_sparse_cholesky(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_cholesky(), sparse_diag_get(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_is_symmetric(), sparse_lu(), sparse_marginsum(), sparse_qr(), sparse_skewpart(), sparse_symmpart(), sparse_transpose(), spMatrix_matmult(), syMatrix_matmult(), tpMatrix_matmult(), and trMatrix_matmult().
#define dngettext | ( | Domain, | |
String, | |||
StringP, | |||
N ) |
Definition at line 64 of file Mdefines.h.
#define ERROR_INVALID_CLASS | ( | _X_, | |
_FUNC_ ) |
Definition at line 149 of file Mdefines.h.
Referenced by Matrix_class().
#define ERROR_INVALID_TYPE | ( | _X_, | |
_FUNC_ ) |
Definition at line 145 of file Mdefines.h.
Referenced by R_matrix_as_dense(), R_matrix_as_sparse(), R_vector_as_dense(), R_vector_as_Vector(), scanArgs(), and sexp_as_cholmod_dense().
#define ERROR_OOM | ( | _FUNC_ | ) |
Definition at line 141 of file Mdefines.h.
Referenced by sparseCholesky_solve(), sparseLU_solve(), and tCMatrix_solve().
#define errorChar | ( | ... | ) |
Definition at line 68 of file Mdefines.h.
#define errorString | ( | ... | ) |
Definition at line 69 of file Mdefines.h.
Referenced by checkpi().
#define GET_SLOT | ( | x, | |
name ) |
Definition at line 72 of file Mdefines.h.
Referenced by bind(), bindArgs(), CHD2M(), CHF2M(), cholmod_dense_as_sexp(), cholmod_factor_as_sexp(), cholmod_sparse_as_sexp(), cholmod_triplet_as_sexp(), CHS2M(), compressed_non_0_ij(), copMatrix_validate(), corMatrix_validate(), Csparse_colscale(), Csparse_colsum(), Csparse_rowscale(), Csparse_rowsum(), Csparse_subassign(), CsparseMatrix_validate(), CsparseMatrix_validate_maybe_sorting(), CXS2M(), dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_colscale(), dense_diag_get(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_is_canonical(), dense_is_diagonal(), dense_is_symmetric(), dense_is_triangular(), dense_lu(), dense_marginsum(), dense_prod(), dense_rowscale(), dense_schur(), dense_skewpart(), dense_subscript_1ary(), dense_subscript_1ary_2col(), dense_subscript_2ary(), dense_sum(), dense_symmpart(), dense_transpose(), denseBunchKaufman_determinant(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseBunchKaufman_validate(), denseCholesky_determinant(), denseCholesky_diag_get(), denseCholesky_solve(), denseCholesky_validate(), denseLU_determinant(), denseLU_solve(), denseLU_validate(), denseQR_validate(), denseSchur_validate(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_as_Vector(), diagonal_subscript_1ary(), diagonal_subscript_1ary_2col(), diagonal_subscript_2ary(), diagonalMatrix_validate(), DIMNAMES(), dtCMatrix_diag(), geMatrix_matmult(), geMatrix_norm(), geMatrix_rcond(), generalMatrix_validate(), get_factor(), index_as_dense(), index_as_sparse(), index_as_Vector(), index_subscript_1ary(), index_subscript_1ary_2col(), index_subscript_2ary(), indMatrix_validate(), M2CHD(), M2CHF(), M2CHS(), M2CXS(), matmultDim(), Matrix_validate(), packedMatrix_validate(), pMatrix_validate(), poMatrix_rcond(), ppMatrix_rcond(), R_diagonal_matmult(), R_Matrix_as_matrix(), R_Matrix_as_vector(), R_Vector_as_sparse(), RsparseMatrix_validate(), scanArgs(), sCMatrix_validate(), SET_DIMNAMES(), set_factor(), sexp_as_cholmod_dense(), sexp_as_cholmod_factor(), sexp_as_cholmod_sparse(), sexp_as_cholmod_triplet(), simplicialCholesky_validate(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_as_Vector(), sparse_band(), sparse_diag_get(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_is_canonical(), sparse_is_diagonal(), sparse_is_symmetric(), sparse_is_triangular(), sparse_marginsum(), sparse_prod(), sparse_skewpart(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), sparse_subscript_2ary(), sparse_sum(), sparse_symmpart(), sparse_transpose(), sparseCholesky_validate(), sparseLU_determinant(), sparseLU_solve(), sparseLU_validate(), sparseQR_determinant(), sparseQR_matmult(), sparseQR_validate(), sparseVector_validate(), spMatrix_matmult(), spMatrix_norm(), spMatrix_rcond(), sRMatrix_validate(), sTMatrix_validate(), supernodalCholesky_validate(), syMatrix_matmult(), syMatrix_norm(), syMatrix_rcond(), symmetricMatrix_validate(), tCMatrix_solve(), tCMatrix_validate(), tpMatrix_matmult(), tpMatrix_norm(), tpMatrix_rcond(), triangularMatrix_validate(), trMatrix_matmult(), trMatrix_norm(), trMatrix_rcond(), trMatrix_solve(), tRMatrix_validate(), Tsparse_colsum(), Tsparse_rowscale(), TsparseMatrix_validate(), tTMatrix_validate(), unpackedMatrix_validate(), Vector_as_sparse(), xgCMatrix_validate(), xgRMatrix_validate(), xgTMatrix_validate(), xpCMatrix_validate(), xpoMatrix_validate(), xppMatrix_validate(), xpRMatrix_validate(), and xpTMatrix_validate().
#define HAS_SLOT | ( | x, | |
name ) |
Definition at line 71 of file Mdefines.h.
Referenced by denseBunchKaufman_validate(), simplicialCholesky_validate(), supernodalCholesky_validate(), and symmetricMatrix_validate().
#define MARGIN | ( | x | ) |
Definition at line 116 of file Mdefines.h.
Referenced by index_as_dense(), index_as_sparse(), index_as_Vector(), index_subscript_1ary(), index_subscript_1ary_2col(), index_subscript_2ary(), and scanArgs().
#define Matrix_alloca | ( | x | ) |
Definition at line 42 of file Mdefines.h.
#define Matrix_Calloc | ( | p, | |
n, | |||
t ) |
Definition at line 45 of file Mdefines.h.
Referenced by bindArgs(), Csparse_rowsum(), dense_rowsum(), denseCholesky_validate(), denseQR_validate(), index_as_sparse(), index_as_Vector(), index_subscript_2ary(), isPerm(), pMatrix_validate(), signPerm(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_Rsparse(), sparse_as_Vector(), sparse_band(), sparse_is_symmetric(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), sparseCholesky_validate(), sparseLU_validate(), sparseQR_validate(), stay_di(), Tsparse_colsum(), and xpTMatrix_validate().
#define Matrix_CallocThreshold 8192 |
Definition at line 36 of file Mdefines.h.
#define Matrix_ErrorBufferSize 4096 |
Definition at line 35 of file Mdefines.h.
Referenced by Matrix_sprintf().
#define Matrix_Free | ( | p, | |
n ) |
Definition at line 56 of file Mdefines.h.
Referenced by bindArgs(), Csparse_rowsum(), dense_rowsum(), denseCholesky_validate(), denseQR_validate(), index_as_sparse(), index_as_Vector(), index_subscript_2ary(), isPerm(), pMatrix_validate(), signPerm(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_Rsparse(), sparse_as_Vector(), sparse_is_symmetric(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), sparseCholesky_validate(), sparseLU_validate(), sparseQR_validate(), stay_di(), Tsparse_colsum(), and xpTMatrix_validate().
#define Matrix_TranslationDomain "Matrix" |
Definition at line 37 of file Mdefines.h.
#define PACKED_LENGTH | ( | n | ) |
Definition at line 132 of file Mdefines.h.
Referenced by dense_as_packed(), and dense_band().
#define SET_DIAG | ( | x | ) |
Definition at line 113 of file Mdefines.h.
Referenced by dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_subscript_2ary(), dense_transpose(), denseBunchKaufman_expand(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_subscript_2ary(), gCgCMatrix_matmult(), gCgeMatrix_matmult(), matrix_as_dense(), R_diagonal_matmult(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_diag_N2U(), sparse_dropzero(), sparse_subscript_2ary(), sparse_transpose(), tpMatrix_matmult(), trMatrix_matmult(), trMatrix_solve(), vector_as_dense(), and Vector_as_sparse().
#define SET_DIM | ( | x, | |
m, | |||
n ) |
Definition at line 87 of file Mdefines.h.
Referenced by dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_lu(), dense_schur(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), dense_transpose(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseCholesky_solve(), denseLU_solve(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_subscript_2ary(), gCgeMatrix_matmult(), geMatrix_matmult(), index_as_dense(), index_as_sparse(), index_subscript_2ary(), R_diagonal_matmult(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_lu(), sparse_qr(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), sparseLU_solve(), spMatrix_matmult(), syMatrix_matmult(), tCMatrix_solve(), tpMatrix_matmult(), trMatrix_matmult(), trMatrix_solve(), vector_as_dense(), and Vector_as_sparse().
#define SET_DIMNAMES | ( | x, | |
mode, | |||
value ) |
Definition at line 98 of file Mdefines.h.
Referenced by dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_lu(), dense_schur(), dense_skewpart(), dense_symmpart(), dense_transpose(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), index_as_dense(), index_as_sparse(), matrix_as_dense(), R_sparse_cholesky(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_cholesky(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_lu(), sparse_qr(), sparse_skewpart(), sparse_symmpart(), sparse_transpose(), vector_as_dense(), and Vector_as_sparse().
#define SET_MARGIN | ( | x, | |
j ) |
Definition at line 118 of file Mdefines.h.
Referenced by bindArgs(), and index_subscript_2ary().
#define SET_SLOT | ( | x, | |
name, | |||
value ) |
Definition at line 73 of file Mdefines.h.
Referenced by bindArgs(), CHD2M(), CHF2M(), cholmod_dense_as_sexp(), cholmod_factor_as_sexp(), cholmod_sparse_as_sexp(), cholmod_triplet_as_sexp(), CHS2M(), Csparse_colsum(), Csparse_rowsum(), Csparse_subassign(), CXS2M(), dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_lu(), dense_schur(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), dense_transpose(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseCholesky_solve(), denseLU_solve(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_as_Vector(), diagonal_subscript_2ary(), gCgeMatrix_matmult(), geMatrix_matmult(), index_as_dense(), index_as_sparse(), index_as_Vector(), index_subscript_2ary(), matrix_as_dense(), R_diagonal_matmult(), set_factor(), sparse_as_Csparse(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_as_Vector(), sparse_band(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_lu(), sparse_qr(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), sparseLU_solve(), sparseQR_matmult(), spMatrix_matmult(), syMatrix_matmult(), tCMatrix_solve(), tpMatrix_matmult(), trMatrix_matmult(), trMatrix_solve(), Tsparse_colsum(), vector_as_dense(), Vector_as_sparse(), and vector_as_Vector().
#define SET_TRANS | ( | x | ) |
Definition at line 108 of file Mdefines.h.
Referenced by dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_diag_set(), dense_force_canonical(), dense_force_symmetric(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), dense_transpose(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), diagonal_as_dense(), diagonal_as_sparse(), gCgCMatrix_matmult(), geMatrix_matmult(), matrix_as_dense(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_diag_set(), sparse_dropzero(), sparse_force_symmetric(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), vector_as_dense(), and Vector_as_sparse().
#define SET_UPLO | ( | x | ) |
Definition at line 103 of file Mdefines.h.
Referenced by dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), dense_transpose(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseCholesky_solve(), diagonal_as_dense(), diagonal_as_sparse(), gCgCMatrix_matmult(), gCgeMatrix_matmult(), matrix_as_dense(), R_diagonal_matmult(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_diag_N2U(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_lu(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), sparseCholesky_solve(), tCMatrix_solve(), tpMatrix_matmult(), trMatrix_matmult(), trMatrix_solve(), vector_as_dense(), and Vector_as_sparse().
#define SWAP | ( | a, | |
b, | |||
t, | |||
op ) |
Definition at line 138 of file Mdefines.h.
Referenced by index_subscript_2ary(), matmultDim(), sparse_as_Tsparse(), sparse_band(), sparse_diag_set(), sparse_prod(), sparse_subscript_2ary(), sparse_sum(), sparse_transpose(), and Vector_as_sparse().
#define TRANS | ( | x | ) |
Definition at line 106 of file Mdefines.h.
Referenced by dense_as_general(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_diag_get(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_is_canonical(), dense_is_symmetric(), dense_marginsum(), dense_prod(), dense_schur(), dense_skewpart(), dense_subscript_1ary(), dense_subscript_1ary_2col(), dense_subscript_2ary(), dense_sum(), dense_symmpart(), dense_transpose(), denseBunchKaufman_determinant(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), R_dense_cholesky(), R_dense_diag_set(), R_sparse_cholesky(), R_sparse_diag_set(), R_sparse_matmult(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_cholesky(), sparse_diag_get(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_is_canonical(), sparse_is_symmetric(), sparse_marginsum(), sparse_prod(), sparse_skewpart(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), sparse_subscript_2ary(), sparse_sum(), sparse_symmpart(), sparse_transpose(), spMatrix_matmult(), spMatrix_norm(), spMatrix_rcond(), syMatrix_matmult(), syMatrix_norm(), syMatrix_rcond(), xpCMatrix_validate(), xpoMatrix_validate(), xppMatrix_validate(), xpRMatrix_validate(), and xpTMatrix_validate().
#define TYPEOF | ( | s | ) |
Definition at line 123 of file Mdefines.h.
Referenced by bind(), checkpi(), cholmod_sparse_as_sexp(), cholmod_triplet_as_sexp(), coerceArgs(), copMatrix_validate(), corMatrix_validate(), Csparse_colscale(), Csparse_colsum(), Csparse_rowscale(), Csparse_rowsum(), CsparseMatrix_validate(), CsparseMatrix_validate_maybe_sorting(), dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_colscale(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_lu(), dense_rowscale(), dense_schur(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), dense_transpose(), denseBunchKaufman_determinant(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseBunchKaufman_validate(), denseCholesky_determinant(), denseCholesky_diag_get(), denseCholesky_solve(), denseCholesky_validate(), denseLU_determinant(), denseLU_solve(), denseLU_validate(), denseQR_validate(), denseSchur_validate(), dgCMatrix_lusol(), dgCMatrix_qrsol(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_Vector(), diagonal_subscript_2ary(), diagonalMatrix_validate(), Dim_validate(), DimNames_validate(), dtCMatrix_diag(), duplicateVector(), geMatrix_matmult(), geMatrix_norm(), geMatrix_rcond(), generalMatrix_validate(), index_as_Vector(), indMatrix_validate(), La_norm_type(), La_rcond_type(), m_encodeInd(), m_encodeInd2(), matmultDim(), matrix_as_dense(), matrix_as_sparse(), Matrix_kind(), Matrix_repr(), Matrix_shape(), Mmatrix(), naToUnit(), poMatrix_rcond(), ppMatrix_rcond(), R_all0(), R_any0(), R_asPerm(), R_dense_band(), R_dense_diag_set(), R_dense_is_diagonal(), R_dense_is_symmetric(), R_dense_is_triangular(), R_diagonal_matmult(), R_DimNames_fixup(), R_invertPerm(), R_isPerm(), R_matrix_as_dense(), R_matrix_as_sparse(), R_nnz(), R_set_factor(), R_signPerm(), R_sparse_cholesky(), R_sparse_diag_set(), R_sparse_dropzero(), R_sparse_matmult(), R_vector_as_dense(), R_Vector_as_sparse(), R_vector_as_Vector(), RsparseMatrix_validate(), scanArgs(), sexp_as_cholmod_dense(), sexp_as_cholmod_sparse(), sexp_as_cholmod_triplet(), simplicialCholesky_validate(), sparse_as_Tsparse(), sparse_as_Vector(), sparse_cholesky(), sparse_dropzero(), sparse_skewpart(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), sparse_symmpart(), sparseCholesky_solve(), sparseCholesky_validate(), sparseLU_determinant(), sparseLU_solve(), sparseLU_validate(), sparseQR_determinant(), sparseQR_matmult(), sparseQR_validate(), sparseVector_validate(), spMatrix_matmult(), spMatrix_norm(), spMatrix_rcond(), strmatch(), supernodalCholesky_validate(), syMatrix_matmult(), syMatrix_norm(), syMatrix_rcond(), symmetricMatrix_validate(), tCMatrix_solve(), tpMatrix_matmult(), tpMatrix_norm(), tpMatrix_rcond(), triangularMatrix_validate(), trMatrix_matmult(), trMatrix_norm(), trMatrix_rcond(), trMatrix_solve(), Tsparse_colsum(), Tsparse_rowscale(), TsparseMatrix_validate(), vector_as_dense(), Vector_as_sparse(), vector_as_Vector(), xpCMatrix_validate(), xpoMatrix_validate(), xppMatrix_validate(), xpRMatrix_validate(), xpTMatrix_validate(), xsCMatrix_validate(), xsRMatrix_validate(), xsTMatrix_validate(), xtCMatrix_validate(), xtRMatrix_validate(), and xtTMatrix_validate().
#define UPLO | ( | x | ) |
Definition at line 101 of file Mdefines.h.
Referenced by copMatrix_validate(), dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_get(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_is_canonical(), dense_is_diagonal(), dense_is_symmetric(), dense_is_triangular(), dense_marginsum(), dense_prod(), dense_schur(), dense_skewpart(), dense_subscript_1ary(), dense_subscript_1ary_2col(), dense_subscript_2ary(), dense_sum(), dense_symmpart(), dense_transpose(), denseBunchKaufman_determinant(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseCholesky_determinant(), denseCholesky_diag_get(), denseCholesky_solve(), poMatrix_rcond(), ppMatrix_rcond(), R_diagonal_matmult(), R_sparse_matmult(), scanArgs(), sCMatrix_validate(), sparse_aggregate(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_band(), sparse_cholesky(), sparse_diag_get(), sparse_diag_N2U(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_is_canonical(), sparse_is_triangular(), sparse_marginsum(), sparse_prod(), sparse_skewpart(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), sparse_subscript_2ary(), sparse_sum(), sparse_symmpart(), sparse_transpose(), sparseCholesky_update(), sparseLU_validate(), spMatrix_matmult(), spMatrix_norm(), spMatrix_rcond(), sRMatrix_validate(), sTMatrix_validate(), syMatrix_matmult(), syMatrix_norm(), syMatrix_rcond(), tCMatrix_solve(), tCMatrix_validate(), tpMatrix_matmult(), tpMatrix_norm(), tpMatrix_rcond(), trMatrix_matmult(), trMatrix_norm(), trMatrix_rcond(), trMatrix_solve(), tRMatrix_validate(), tTMatrix_validate(), xpCMatrix_validate(), xppMatrix_validate(), and xpRMatrix_validate().
#define VALID_DENSE |
Definition at line 230 of file Mdefines.h.
#define VALID_DIAG | ( | s, | |
c ) |
Definition at line 174 of file Mdefines.h.
Referenced by R_dense_as_packed(), R_matrix_as_dense(), R_matrix_as_sparse(), R_vector_as_dense(), and R_Vector_as_sparse().
#define VALID_DIAGONAL "ndiMatrix", "ldiMatrix", "idiMatrix", "ddiMatrix", "zdiMatrix" |
Definition at line 260 of file Mdefines.h.
#define VALID_INDEX "indMatrix", "pMatrix" |
Definition at line 263 of file Mdefines.h.
#define VALID_KIND | ( | s, | |
c ) |
Definition at line 182 of file Mdefines.h.
Referenced by R_dense_as_kind(), R_diagonal_as_dense(), R_diagonal_as_kind(), R_diagonal_as_sparse(), R_index_as_dense(), R_index_as_kind(), R_index_as_sparse(), R_Matrix_as_general(), R_Matrix_as_kind(), R_sparse_as_kind(), and R_vector_as_Vector().
#define VALID_LOGIC2 | ( | s, | |
d ) |
Definition at line 216 of file Mdefines.h.
Referenced by R_dense_diag_get(), R_dense_force_canonical(), R_dense_is_symmetric(), R_dense_marginsum(), R_dense_prod(), R_dense_sum(), R_diagonal_as_dense(), R_sparse_as_dense(), R_sparse_diag_get(), R_sparse_force_canonical(), R_sparse_is_symmetric(), R_sparse_marginsum(), R_sparse_prod(), R_sparse_sum(), R_sparse_transpose(), R_vector_as_dense(), and R_Vector_as_sparse().
#define VALID_LOGIC3 | ( | s, | |
d ) |
Definition at line 223 of file Mdefines.h.
Referenced by R_dense_is_triangular(), R_Matrix_as_kind(), and R_sparse_is_triangular().
#define VALID_MARGIN | ( | s, | |
d ) |
Definition at line 209 of file Mdefines.h.
Referenced by R_dense_marginsum(), R_matrix_as_dense(), R_matrix_as_sparse(), and R_sparse_marginsum().
#define VALID_MATRIX VALID_DENSE, VALID_SPARSE, VALID_DIAGONAL, VALID_INDEX |
Definition at line 266 of file Mdefines.h.
#define VALID_MATRIX_OR_VECTOR VALID_MATRIX, VALID_VECTOR |
Definition at line 272 of file Mdefines.h.
#define VALID_REPR | ( | s, | |
c, | |||
dot ) |
Definition at line 200 of file Mdefines.h.
Referenced by R_dense_as_sparse(), R_diagonal_as_sparse(), and R_index_as_sparse().
#define VALID_SHAPE | ( | s, | |
c ) |
Definition at line 191 of file Mdefines.h.
Referenced by R_diagonal_as_dense(), and R_diagonal_as_sparse().
#define VALID_SPARSE VALID_SPARSE_COMPRESSED, VALID_SPARSE_TRIPLET |
Definition at line 257 of file Mdefines.h.
#define VALID_SPARSE_COMPRESSED |
Definition at line 241 of file Mdefines.h.
#define VALID_SPARSE_TRIPLET |
Definition at line 251 of file Mdefines.h.
#define VALID_TRANS | ( | s, | |
c ) |
Definition at line 166 of file Mdefines.h.
Referenced by R_dense_as_packed(), R_dense_bunchkaufman(), R_dense_force_symmetric(), R_dense_is_symmetric(), R_dense_skewpart(), R_dense_symmpart(), R_dense_transpose(), R_diagonal_as_dense(), R_diagonal_as_sparse(), R_matrix_as_dense(), R_matrix_as_sparse(), R_sparse_force_symmetric(), R_sparse_is_symmetric(), R_sparse_skewpart(), R_sparse_symmpart(), R_sparse_transpose(), R_vector_as_dense(), and R_Vector_as_sparse().
#define VALID_UPLO | ( | s, | |
c ) |
Definition at line 158 of file Mdefines.h.
Referenced by R_dense_as_packed(), R_dense_bunchkaufman(), R_dense_cholesky(), R_dense_force_symmetric(), R_dense_symmpart(), R_diagonal_as_dense(), R_diagonal_as_sparse(), R_matrix_as_dense(), R_matrix_as_sparse(), R_sparse_cholesky(), R_sparse_force_symmetric(), R_sparse_symmpart(), R_vector_as_dense(), and R_Vector_as_sparse().
#define VALID_VECTOR "nsparseVector", "lsparseVector", "isparseVector", "dsparseVector", "zsparseVector" |
Definition at line 269 of file Mdefines.h.
SEXP allocSeqInt | ( | int | from, |
R_xlen_t | length ) |
Definition at line 141 of file utils.c.
Referenced by diagonal_as_sparse().
SEXP allocUnit | ( | SEXPTYPE | type, |
R_xlen_t | length ) |
Definition at line 94 of file utils.c.
Referenced by dense_diag_get(), diagonal_as_sparse(), index_as_sparse(), sexp_as_cholmod_sparse(), sexp_as_cholmod_triplet(), sparse_as_kind(), and sparse_diag_get().
SEXP allocZero | ( | SEXPTYPE | type, |
R_xlen_t | length ) |
Definition at line 69 of file utils.c.
Referenced by dense_skewpart(), diagonal_as_sparse(), and sparse_skewpart().
void cpyDN | ( | SEXP | dest, |
SEXP | src, | ||
int | J ) |
Definition at line 110 of file attrib.c.
Referenced by DIMNAMES(), and SET_DIMNAMES().
SEXP DIMNAMES | ( | SEXP | obj, |
int | mode ) |
Definition at line 132 of file attrib.c.
References cpyDN(), DimNames_is_trivial(), GET_SLOT, Matrix_DimNamesSym, and symDN().
int DimNames_is_symmetric | ( | SEXP | dn | ) |
Definition at line 46 of file attrib.c.
References equalString().
Referenced by dense_is_symmetric(), R_DimNames_is_symmetric(), and sparse_is_symmetric().
int DimNames_is_trivial | ( | SEXP | dn | ) |
Definition at line 38 of file attrib.c.
Referenced by DIMNAMES(), R_Matrix_as_matrix(), R_symDN(), and SET_DIMNAMES().
SEXP duplicateVector | ( | SEXP | x | ) |
Definition at line 42 of file utils.c.
References TYPEOF.
Referenced by dense_as_kind(), dense_diag_set(), denseBunchKaufman_solve(), denseLU_solve(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), matrix_as_dense(), R_Matrix_as_matrix(), R_Matrix_as_vector(), sparse_force_canonical(), and trMatrix_solve().
int equalString | ( | SEXP | s1, |
SEXP | s2, | ||
R_xlen_t | n ) |
Definition at line 28 of file utils.c.
Referenced by dense_diag_get(), DimNames_is_symmetric(), sparse_diag_get(), and symmetricMatrix_validate().
SEXP get_factor | ( | SEXP | obj, |
const char * | nm ) |
Definition at line 180 of file attrib.c.
References GET_SLOT, Matrix_factorsSym, and strmatch().
Referenced by R_dense_bunchkaufman(), R_dense_cholesky(), R_dense_lu(), R_dense_schur(), R_sparse_cholesky(), R_sparse_lu(), and R_sparse_qr().
size_t kindToSize | ( | char | kind | ) |
Definition at line 56 of file objects.c.
References _.
Referenced by diagonal_as_dense(), index_as_dense(), and sparse_as_dense().
SEXPTYPE kindToType | ( | char | kind | ) |
Definition at line 38 of file objects.c.
References _.
Referenced by coerceArgs(), dense_as_kind(), dense_diag_get(), dense_subscript_1ary(), dense_subscript_1ary_2col(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_subscript_1ary(), diagonal_subscript_1ary_2col(), index_as_dense(), index_as_sparse(), matrix_as_dense(), R_dense_diag_set(), R_Matrix_as_general(), R_sparse_diag_set(), sparse_as_kind(), sparse_diag_get(), sparse_subscript_1ary(), sparse_subscript_1ary_2col(), vector_as_dense(), Vector_as_sparse(), and vector_as_Vector().
const char * Matrix_class | ( | SEXP | x, |
const char ** | valid, | ||
int | mode, | ||
const char * | caller ) |
Definition at line 112 of file objects.c.
References ERROR_INVALID_CLASS, and Matrix_superclass().
Referenced by bind(), coerceArgs(), Csparse_writeMM(), dense_bunchkaufman(), dense_cholesky(), dense_expm(), dense_lu(), dense_schur(), M2CHD(), M2CHF(), M2CHS(), M2CXS(), Matrix_kind(), Matrix_repr(), Matrix_shape(), R_dense_as_general(), R_dense_as_kind(), R_dense_as_packed(), R_dense_as_sparse(), R_dense_as_unpacked(), R_dense_band(), R_dense_bunchkaufman(), R_dense_cholesky(), R_dense_diag_get(), R_dense_diag_set(), R_dense_expm(), R_dense_force_canonical(), R_dense_force_symmetric(), R_dense_is_canonical(), R_dense_is_diagonal(), R_dense_is_symmetric(), R_dense_is_triangular(), R_dense_lu(), R_dense_marginsum(), R_dense_matmult(), R_dense_prod(), R_dense_schur(), R_dense_skewpart(), R_dense_sum(), R_dense_symmpart(), R_dense_transpose(), R_diagonal_as_dense(), R_diagonal_as_kind(), R_diagonal_as_sparse(), R_diagonal_as_Vector(), R_diagonal_matmult(), R_index_as_dense(), R_index_as_kind(), R_index_as_sparse(), R_index_as_Vector(), R_Matrix_as_Csparse(), R_Matrix_as_general(), R_Matrix_as_kind(), R_Matrix_as_matrix(), R_Matrix_as_packed(), R_Matrix_as_Rsparse(), R_Matrix_as_Tsparse(), R_Matrix_as_unpacked(), R_Matrix_as_Vector(), R_Matrix_as_vector(), R_Matrix_class(), R_sparse_aggregate(), R_sparse_as_Csparse(), R_sparse_as_dense(), R_sparse_as_general(), R_sparse_as_kind(), R_sparse_as_Rsparse(), R_sparse_as_Tsparse(), R_sparse_as_Vector(), R_sparse_band(), R_sparse_cholesky(), R_sparse_diag_get(), R_sparse_diag_N2U(), R_sparse_diag_set(), R_sparse_diag_U2N(), R_sparse_dropzero(), R_sparse_force_canonical(), R_sparse_force_symmetric(), R_sparse_is_canonical(), R_sparse_is_diagonal(), R_sparse_is_symmetric(), R_sparse_is_triangular(), R_sparse_lu(), R_sparse_marginsum(), R_sparse_matmult(), R_sparse_prod(), R_sparse_qr(), R_sparse_skewpart(), R_sparse_sum(), R_sparse_symmpart(), R_sparse_transpose(), R_subscript_1ary(), R_subscript_1ary_2col(), R_subscript_2ary(), R_Vector_as_sparse(), scanArgs(), sexp_as_cholmod_dense(), sexp_as_cholmod_factor(), sexp_as_cholmod_sparse(), sexp_as_cholmod_triplet(), sparse_as_Vector(), sparse_cholesky(), sparse_lu(), and sparse_qr().
char * Matrix_sprintf | ( | const char * | format, |
... ) |
Definition at line 18 of file utils.c.
References Matrix_ErrorBufferSize.
const char * Matrix_superclass | ( | const char * | class, |
int | mode ) |
Definition at line 73 of file objects.c.
Referenced by Matrix_class().
void naToUnit | ( | SEXP | x | ) |
Definition at line 151 of file utils.c.
References TYPEOF.
Referenced by dense_as_kind(), dense_diag_get(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), R_Matrix_as_matrix(), and R_Matrix_as_vector().
SEXP newObject | ( | const char * | what | ) |
Definition at line 13 of file objects.c.
Referenced by bind(), CHD2M(), CHF2M(), cholmod_dense_as_sexp(), cholmod_factor_as_sexp(), cholmod_sparse_as_sexp(), cholmod_triplet_as_sexp(), CHS2M(), Csparse_subassign(), CXS2M(), dense_as_general(), dense_as_kind(), dense_as_packed(), dense_as_sparse(), dense_as_unpacked(), dense_band(), dense_bunchkaufman(), dense_cholesky(), dense_diag_set(), dense_expm(), dense_force_canonical(), dense_force_symmetric(), dense_lu(), dense_schur(), dense_skewpart(), dense_subscript_2ary(), dense_symmpart(), dense_transpose(), denseBunchKaufman_expand(), denseBunchKaufman_solve(), denseCholesky_solve(), denseLU_solve(), diagonal_as_dense(), diagonal_as_kind(), diagonal_as_sparse(), diagonal_as_Vector(), diagonal_subscript_2ary(), gCgeMatrix_matmult(), geMatrix_matmult(), index_as_dense(), index_as_sparse(), index_as_Vector(), index_subscript_2ary(), matrix_as_dense(), R_diagonal_matmult(), sparse_as_Csparse(), sparse_as_dense(), sparse_as_general(), sparse_as_kind(), sparse_as_Rsparse(), sparse_as_Tsparse(), sparse_as_Vector(), sparse_band(), sparse_diag_N2U(), sparse_diag_set(), sparse_dropzero(), sparse_force_canonical(), sparse_force_symmetric(), sparse_lu(), sparse_marginsum(), sparse_qr(), sparse_skewpart(), sparse_subscript_2ary(), sparse_symmpart(), sparse_transpose(), sparseLU_solve(), sparseQR_matmult(), spMatrix_matmult(), syMatrix_matmult(), tCMatrix_solve(), tpMatrix_matmult(), trMatrix_matmult(), trMatrix_solve(), vector_as_dense(), Vector_as_sparse(), and vector_as_Vector().
void SET_DIMNAMES | ( | SEXP | obj, |
int | mode, | ||
SEXP | value ) |
Definition at line 151 of file attrib.c.
References cpyDN(), DimNames_is_trivial(), GET_SLOT, Matrix_DimNamesSym, and symDN().
void set_factor | ( | SEXP | obj, |
const char * | nm, | ||
SEXP | val ) |
Definition at line 192 of file attrib.c.
References GET_SLOT, Matrix_factorsSym, SET_SLOT, and strmatch().
Referenced by R_dense_bunchkaufman(), R_dense_cholesky(), R_dense_lu(), R_dense_schur(), R_set_factor(), R_sparse_cholesky(), R_sparse_lu(), and R_sparse_qr().
void symDN | ( | SEXP | dest, |
SEXP | src, | ||
int | J ) |
Definition at line 69 of file attrib.c.
Referenced by DIMNAMES(), gCgCMatrix_matmult(), geMatrix_matmult(), R_symDN(), SET_DIMNAMES(), and sparse_cholesky().
char typeToKind | ( | SEXPTYPE | type | ) |
Definition at line 20 of file objects.c.
References _.
Referenced by matrix_as_dense(), matrix_as_sparse(), R_dense_diag_set(), R_nnz(), R_sparse_diag_set(), sparse_marginsum(), vector_as_dense(), Vector_as_sparse(), and vector_as_Vector().
void validObject | ( | SEXP | obj, |
const char * | cl ) |
Definition at line 2004 of file validity.c.
References cl, IS_VALID, and IS_VALID_SPARSE.
Referenced by R_subscript_1ary(), R_subscript_1ary_2col(), and R_subscript_2ary().
SEXP Matrix_betaSym |
Definition at line 284 of file Mdefines.h.
SEXP Matrix_colcountSym |
Definition at line 285 of file Mdefines.h.
SEXP Matrix_diagSym |
Definition at line 286 of file Mdefines.h.
|
extern |
Definition at line 597 of file init.c.
Referenced by bind(), cholmod_sparse_as_sexp(), cholmod_triplet_as_sexp(), Csparse_subassign(), DIMNAMES(), Matrix_validate(), R_init_Matrix(), scanArgs(), SET_DIMNAMES(), and symmetricMatrix_validate().
SEXP Matrix_DimSym |
Definition at line 279 of file Mdefines.h.
SEXP Matrix_factorsSym |
Definition at line 287 of file Mdefines.h.
SEXP Matrix_isllSym |
Definition at line 289 of file Mdefines.h.
SEXP Matrix_ismtSym |
Definition at line 290 of file Mdefines.h.
SEXP Matrix_iSym |
Definition at line 288 of file Mdefines.h.
SEXP Matrix_jSym |
Definition at line 291 of file Mdefines.h.
SEXP Matrix_kindSym |
Definition at line 292 of file Mdefines.h.
SEXP Matrix_LChar |
Definition at line 317 of file Mdefines.h.
SEXP Matrix_lengthSym |
Definition at line 293 of file Mdefines.h.
SEXP Matrix_logarithmSym |
Definition at line 294 of file Mdefines.h.
SEXP Matrix_LSym |
Definition at line 280 of file Mdefines.h.
SEXP Matrix_marginSym |
Definition at line 295 of file Mdefines.h.
SEXP Matrix_maxcsizeSym |
Definition at line 296 of file Mdefines.h.
SEXP Matrix_maxesizeSym |
Definition at line 297 of file Mdefines.h.
SEXP Matrix_minorSym |
Definition at line 298 of file Mdefines.h.
SEXP Matrix_nextSym |
Definition at line 299 of file Mdefines.h.
SEXP Matrix_nzSym |
Definition at line 300 of file Mdefines.h.
SEXP Matrix_offSym |
Definition at line 301 of file Mdefines.h.
SEXP Matrix_orderingSym |
Definition at line 302 of file Mdefines.h.
SEXP Matrix_permSym |
Definition at line 304 of file Mdefines.h.
SEXP Matrix_piSym |
Definition at line 305 of file Mdefines.h.
SEXP Matrix_prevSym |
Definition at line 306 of file Mdefines.h.
SEXP Matrix_pSym |
Definition at line 303 of file Mdefines.h.
SEXP Matrix_pxSym |
Definition at line 307 of file Mdefines.h.
SEXP Matrix_qSym |
Definition at line 308 of file Mdefines.h.
SEXP Matrix_RSym |
Definition at line 281 of file Mdefines.h.
SEXP Matrix_sdSym |
Definition at line 310 of file Mdefines.h.
SEXP Matrix_sSym |
Definition at line 309 of file Mdefines.h.
SEXP Matrix_superSym |
Definition at line 311 of file Mdefines.h.
SEXP Matrix_TChar |
Definition at line 318 of file Mdefines.h.
SEXP Matrix_transSym |
Definition at line 312 of file Mdefines.h.
SEXP Matrix_UChar |
Definition at line 319 of file Mdefines.h.
SEXP Matrix_uploSym |
Definition at line 313 of file Mdefines.h.
SEXP Matrix_USym |
Definition at line 282 of file Mdefines.h.
SEXP Matrix_valuesSym |
Definition at line 314 of file Mdefines.h.
SEXP Matrix_vectorsSym |
Definition at line 315 of file Mdefines.h.
SEXP Matrix_VSym |
Definition at line 283 of file Mdefines.h.
SEXP Matrix_xSym |
Definition at line 316 of file Mdefines.h.
Rcomplex Matrix_zna |
Definition at line 324 of file Mdefines.h.
Rcomplex Matrix_zunit |
Definition at line 323 of file Mdefines.h.
|
extern |
Definition at line 641 of file init.c.
Referenced by dense_expm(), geMatrix_matmult(), R_init_Matrix(), spMatrix_matmult(), and syMatrix_matmult().
|
extern |
Definition at line 3 of file objects.c.
Referenced by dense_bunchkaufman(), dense_cholesky(), dense_expm(), dense_lu(), dense_schur(), R_dense_as_general(), R_dense_as_kind(), R_dense_as_packed(), R_dense_as_sparse(), R_dense_as_unpacked(), R_dense_band(), R_dense_bunchkaufman(), R_dense_cholesky(), R_dense_diag_get(), R_dense_diag_set(), R_dense_expm(), R_dense_force_canonical(), R_dense_force_symmetric(), R_dense_is_canonical(), R_dense_is_diagonal(), R_dense_is_symmetric(), R_dense_is_triangular(), R_dense_lu(), R_dense_marginsum(), R_dense_prod(), R_dense_schur(), R_dense_skewpart(), R_dense_sum(), R_dense_symmpart(), and R_dense_transpose().
const char * valid_diagonal[] |
Definition at line 331 of file Mdefines.h.
Referenced by R_diagonal_as_dense(), R_diagonal_as_kind(), R_diagonal_as_sparse(), and R_diagonal_as_Vector().
const char * valid_index[] |
Definition at line 332 of file Mdefines.h.
Referenced by R_index_as_dense(), R_index_as_kind(), R_index_as_sparse(), and R_index_as_Vector().
const char * valid_matrix[] |
Definition at line 333 of file Mdefines.h.
Referenced by bind(), coerceArgs(), R_Matrix_as_Csparse(), R_Matrix_as_general(), R_Matrix_as_kind(), R_Matrix_as_matrix(), R_Matrix_as_packed(), R_Matrix_as_Rsparse(), R_Matrix_as_Tsparse(), R_Matrix_as_unpacked(), R_Matrix_as_Vector(), R_Matrix_as_vector(), R_subscript_1ary(), R_subscript_1ary_2col(), R_subscript_2ary(), and scanArgs().
const char * valid_matrix_or_vector[] |
Definition at line 335 of file Mdefines.h.
const char * valid_sparse[] |
Definition at line 328 of file Mdefines.h.
Referenced by R_sparse_aggregate(), R_sparse_as_Csparse(), R_sparse_as_dense(), R_sparse_as_general(), R_sparse_as_kind(), R_sparse_as_Rsparse(), R_sparse_as_Tsparse(), R_sparse_as_Vector(), R_sparse_band(), R_sparse_cholesky(), R_sparse_diag_get(), R_sparse_diag_N2U(), R_sparse_diag_set(), R_sparse_diag_U2N(), R_sparse_dropzero(), R_sparse_force_canonical(), R_sparse_force_symmetric(), R_sparse_is_canonical(), R_sparse_is_diagonal(), R_sparse_is_symmetric(), R_sparse_is_triangular(), R_sparse_lu(), R_sparse_marginsum(), R_sparse_prod(), R_sparse_qr(), R_sparse_skewpart(), R_sparse_sum(), R_sparse_symmpart(), R_sparse_transpose(), sparse_as_Vector(), sparse_cholesky(), sparse_lu(), and sparse_qr().
const char * valid_sparse_compressed[] |
Definition at line 329 of file Mdefines.h.
Referenced by Csparse_writeMM(), M2CHS(), M2CXS(), and sexp_as_cholmod_sparse().
const char * valid_sparse_triplet[] |
Definition at line 330 of file Mdefines.h.
Referenced by sexp_as_cholmod_triplet().
const char * valid_vector[] |
Definition at line 334 of file Mdefines.h.
Referenced by R_Vector_as_sparse().