Matrix r5059
Loading...
Searching...
No Matches
Mdefines.h File Reference
#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)
 

Variables

SEXP Matrix_DimNamesSym
 
SEXP Matrix_DimSym
 
SEXP Matrix_LSym
 
SEXP Matrix_RSym
 
SEXP Matrix_USym
 
SEXP Matrix_VSym
 
SEXP Matrix_betaSym
 
SEXP Matrix_colcountSym
 
SEXP Matrix_diagSym
 
SEXP Matrix_factorsSym
 
SEXP Matrix_iSym
 
SEXP Matrix_isllSym
 
SEXP Matrix_ismtSym
 
SEXP Matrix_jSym
 
SEXP Matrix_kindSym
 
SEXP Matrix_lengthSym
 
SEXP Matrix_logarithmSym
 
SEXP Matrix_marginSym
 
SEXP Matrix_maxcsizeSym
 
SEXP Matrix_maxesizeSym
 
SEXP Matrix_minorSym
 
SEXP Matrix_nextSym
 
SEXP Matrix_nzSym
 
SEXP Matrix_offSym
 
SEXP Matrix_orderingSym
 
SEXP Matrix_pSym
 
SEXP Matrix_permSym
 
SEXP Matrix_piSym
 
SEXP Matrix_prevSym
 
SEXP Matrix_pxSym
 
SEXP Matrix_qSym
 
SEXP Matrix_sSym
 
SEXP Matrix_sdSym
 
SEXP Matrix_superSym
 
SEXP Matrix_transSym
 
SEXP Matrix_uploSym
 
SEXP Matrix_valuesSym
 
SEXP Matrix_vectorsSym
 
SEXP Matrix_xSym
 
SEXP Matrix_LChar
 
SEXP Matrix_TChar
 
SEXP Matrix_UChar
 
Rcomplex Matrix_zzero
 
Rcomplex Matrix_zunit
 
Rcomplex Matrix_zna
 
const char * valid_dense []
 
const char * valid_sparse []
 
const char * valid_sparse_compressed []
 
const char * valid_sparse_triplet []
 
const char * valid_diagonal []
 
const char * valid_index []
 
const char * valid_matrix []
 
const char * valid_vector []
 
const char * valid_matrix_or_vector []
 

Macro Definition Documentation

◆ _

#define _ ( String)
Value:
#define Matrix_TranslationDomain
Definition Mdefines.h:37
#define dgettext(Domain, String)
Definition Mdefines.h:63

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().

◆ ABS

#define ABS ( i)
Value:
(((i) < 0) ? -(i) : (i))

Definition at line 135 of file Mdefines.h.

Referenced by dense_subscript_2ary(), and sparse_subscript_2ary().

◆ COPY_SLOT

#define COPY_SLOT ( dest,
src,
name )
Value:
do { \
SEXP value = GET_SLOT((src), (name)); \
if (XLENGTH(value) > 0) { \
PROTECT(value); \
SET_SLOT((dest), (name), value); \
UNPROTECT(1); \
} \
} while (0)
#define GET_SLOT(x, name)
Definition Mdefines.h:72

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().

◆ DENSE_INDEX_L

#define DENSE_INDEX_L ( i,
j,
m )
Value:
((i) + ((j) * ((m) - (j) - 1U + (m))) / 2U)

Definition at line 130 of file Mdefines.h.

◆ DENSE_INDEX_N

#define DENSE_INDEX_N ( i,
j,
m )
Value:
((i) + (j) * (m))

Definition at line 126 of file Mdefines.h.

◆ DENSE_INDEX_U

#define DENSE_INDEX_U ( i,
j,
m )
Value:
((i) + ((j) * ( (j) + 1U)) / 2U)

Definition at line 128 of file Mdefines.h.

◆ dgettext

#define dgettext ( Domain,
String )
Value:
(String)

Definition at line 63 of file Mdefines.h.

◆ DIAG

#define DIAG ( x)
Value:
CHAR(STRING_ELT(GET_SLOT((x), Matrix_diagSym), 0))[0]
SEXP Matrix_diagSym
Definition Mdefines.h:286

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().

◆ DIM

#define DIM ( x)
Value:
INTEGER(GET_SLOT((x), Matrix_DimSym))
SEXP Matrix_DimSym
Definition Mdefines.h:279

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().

◆ DIMNAMES

◆ dngettext

#define dngettext ( Domain,
String,
StringP,
N )
Value:
(((N) == 1) ? String : StringP)

Definition at line 64 of file Mdefines.h.

◆ ERROR_INVALID_CLASS

#define ERROR_INVALID_CLASS ( _X_,
_FUNC_ )
Value:
do { \
if (!Rf_isObject(_X_)) \
ERROR_INVALID_TYPE(_X_, _FUNC_); \
else \
Rf_error(_("invalid class \"%s\" in '%s'"), \
CHAR(STRING_ELT(Rf_getAttrib(_X_, R_ClassSymbol), 0)), _FUNC_); \
} while (0)
#define _(String)
Definition Mdefines.h:66

Definition at line 149 of file Mdefines.h.

Referenced by Matrix_class().

◆ ERROR_INVALID_TYPE

#define ERROR_INVALID_TYPE ( _X_,
_FUNC_ )
Value:
Rf_error(_("invalid type \"%s\" in '%s'"), \
Rf_type2char(TYPEOF(_X_)), _FUNC_)
#define TYPEOF(s)
Definition Mdefines.h:123

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().

◆ ERROR_OOM

#define ERROR_OOM ( _FUNC_)
Value:
Rf_error(_("out of memory in '%s'"), \
_FUNC_)

Definition at line 141 of file Mdefines.h.

Referenced by sparseCholesky_solve(), sparseLU_solve(), and tCMatrix_solve().

◆ errorChar

#define errorChar ( ...)
Value:
Rf_mkChar (Matrix_sprintf(__VA_ARGS__))
char * Matrix_sprintf(const char *,...)
Definition utils.c:18

Definition at line 68 of file Mdefines.h.

Referenced by CHD2M(), CHF2M(), and CHS2M().

◆ errorString

#define errorString ( ...)
Value:
Rf_mkString(Matrix_sprintf(__VA_ARGS__))

Definition at line 69 of file Mdefines.h.

Referenced by checkpi().

◆ GET_SLOT

#define GET_SLOT ( x,
name )
Value:
R_do_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().

◆ HAS_SLOT

#define HAS_SLOT ( x,
name )
Value:
R_has_slot ((x), (name))

Definition at line 71 of file Mdefines.h.

Referenced by denseBunchKaufman_validate(), simplicialCholesky_validate(), supernodalCholesky_validate(), and symmetricMatrix_validate().

◆ MARGIN

#define MARGIN ( x)

◆ Matrix_alloca

#define Matrix_alloca ( x)
Value:
alloca((x))

Definition at line 42 of file Mdefines.h.

◆ Matrix_Calloc

#define Matrix_Calloc ( p,
n,
t )

◆ Matrix_CallocThreshold

#define Matrix_CallocThreshold   8192

Definition at line 36 of file Mdefines.h.

◆ Matrix_ErrorBufferSize

#define Matrix_ErrorBufferSize   4096

Definition at line 35 of file Mdefines.h.

Referenced by Matrix_sprintf().

◆ Matrix_Free

◆ Matrix_TranslationDomain

#define Matrix_TranslationDomain   "Matrix"

Definition at line 37 of file Mdefines.h.

◆ PACKED_LENGTH

#define PACKED_LENGTH ( n)
Value:
((n) + ((n) * ( (n) - 1U)) / 2U)

Definition at line 132 of file Mdefines.h.

Referenced by dense_as_packed(), and dense_band().

◆ SET_DIAG

◆ SET_DIM

◆ SET_DIMNAMES

◆ SET_MARGIN

#define SET_MARGIN ( x,
j )
Value:
do { \
INTEGER(GET_SLOT((x), Matrix_marginSym))[0] = (j) + 1; \
} while (0)

Definition at line 118 of file Mdefines.h.

Referenced by bindArgs(), and index_subscript_2ary().

◆ SET_SLOT

#define SET_SLOT ( x,
name,
value )
Value:
R_do_slot_assign((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().

◆ SET_TRANS

◆ SET_UPLO

◆ SWAP

#define SWAP ( a,
b,
t,
op )
Value:
do { t tmp = op(a); a = op(b); b = tmp; } while (0)

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().

◆ TRANS

#define TRANS ( x)

◆ TYPEOF

#define TYPEOF ( s)
Value:
((SEXPTYPE) (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().

◆ UPLO

#define UPLO ( x)
Value:
CHAR(STRING_ELT(GET_SLOT((x), Matrix_uploSym), 0))[0]

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().

◆ VALID_DENSE

#define VALID_DENSE
Value:
"ngeMatrix", "lgeMatrix", "igeMatrix", "dgeMatrix", "zgeMatrix", \
"nsyMatrix", "lsyMatrix", "isyMatrix", "dsyMatrix", "zsyMatrix", \
"dpoMatrix", "zpoMatrix", \
"corMatrix", \
"ntrMatrix", "ltrMatrix", "itrMatrix", "dtrMatrix", "ztrMatrix", \
"nspMatrix", "lspMatrix", "ispMatrix", "dspMatrix", "zspMatrix", \
"dppMatrix", "zppMatrix", \
"copMatrix", \
"ntpMatrix", "ltpMatrix", "itpMatrix", "dtpMatrix", "ztpMatrix"

Definition at line 230 of file Mdefines.h.

◆ VALID_DIAG

#define VALID_DIAG ( s,
c )
Value:
do { \
if (TYPEOF(s) != STRSXP || LENGTH(s) < 1 || \
(s = STRING_ELT(s, 0)) == NA_STRING || \
((c = CHAR(s)[0]) != 'N' && c != 'U')) \
Rf_error(_("'%s' is not \"%c\" or \"%c\""), "diag", 'N', 'U'); \
} while (0)
cholmod_common c
Definition cholmod-etc.c:5

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().

◆ VALID_DIAGONAL

#define VALID_DIAGONAL   "ndiMatrix", "ldiMatrix", "idiMatrix", "ddiMatrix", "zdiMatrix"

Definition at line 260 of file Mdefines.h.

◆ VALID_INDEX

#define VALID_INDEX   "indMatrix", "pMatrix"

Definition at line 263 of file Mdefines.h.

◆ VALID_KIND

#define VALID_KIND ( s,
c )
Value:
do { \
if (TYPEOF(s) != STRSXP || LENGTH(s) < 1 || \
(s = STRING_ELT(s, 0)) == NA_STRING || \
((c = CHAR(s)[0]) != 'n' && c != 'l' && c != 'i' && c != 'd' && c != 'z' && c != '.' && c != ',')) \
Rf_error(_("'%s' is not \"%c\", \"%c\", \"%c\", \"%c\", or \"%c\""), \
"kind", 'n', 'l', 'i', 'd', 'z'); \
} while (0)

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().

◆ VALID_LOGIC2

#define VALID_LOGIC2 ( s,
d )
Value:
do { \
if (TYPEOF(s) != LGLSXP || LENGTH(s) < 1 || \
((d = LOGICAL(s)[0]) == NA_LOGICAL)) \
Rf_error(_("'%s' is not %s or %s"), #d, "TRUE", "FALSE"); \
} while (0)

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().

◆ VALID_LOGIC3

#define VALID_LOGIC3 ( s,
d )
Value:
do { \
if (TYPEOF(s) != LGLSXP || LENGTH(s) < 1) \
Rf_error(_("'%s' is not %s, %s, or %s"), #d, "TRUE", "FALSE", "NA"); \
else d = LOGICAL(s)[0]; \
} while (0)

Definition at line 223 of file Mdefines.h.

Referenced by R_dense_is_triangular(), R_Matrix_as_kind(), and R_sparse_is_triangular().

◆ VALID_MARGIN

#define VALID_MARGIN ( s,
d )
Value:
do { \
if (TYPEOF(s) != INTSXP || LENGTH(s) < 1 || \
((d = INTEGER(s)[0] - 1) != 0 && d != 1)) \
Rf_error(_("'%s' is not %d or %d"), "margin", 1, 2); \
} while (0)

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().

◆ VALID_MATRIX

#define VALID_MATRIX   VALID_DENSE, VALID_SPARSE, VALID_DIAGONAL, VALID_INDEX

Definition at line 266 of file Mdefines.h.

◆ VALID_MATRIX_OR_VECTOR

#define VALID_MATRIX_OR_VECTOR   VALID_MATRIX, VALID_VECTOR

Definition at line 272 of file Mdefines.h.

◆ VALID_REPR

#define VALID_REPR ( s,
c,
dot )
Value:
do { \
if (TYPEOF(s) != STRSXP || LENGTH(s) < 1 || \
(s = STRING_ELT(s, 0)) == NA_STRING || \
((c = CHAR(s)[0]) != 'C' && c != 'R' && c != 'T' && !(dot && c != '.'))) \
Rf_error(_("'%s' is not \"%c\", \"%c\", or \"%c\""), \
"repr", 'C', 'R', 'T'); \
} while (0)

Definition at line 200 of file Mdefines.h.

Referenced by R_dense_as_sparse(), R_diagonal_as_sparse(), and R_index_as_sparse().

◆ VALID_SHAPE

#define VALID_SHAPE ( s,
c )
Value:
do { \
if (TYPEOF(s) != STRSXP || LENGTH(s) < 1 || \
(s = STRING_ELT(s, 0)) == NA_STRING || \
((c = CHAR(s)[0]) != 'g' && c != 's' && c != 'p' && c != 't')) \
Rf_error(_("'%s' is not \"%c\", \"%c\", \"%c\", or \"%c\""), \
"shape", 'g', 's', 'p', 't'); \
} while (0)

Definition at line 191 of file Mdefines.h.

Referenced by R_diagonal_as_dense(), and R_diagonal_as_sparse().

◆ VALID_SPARSE

#define VALID_SPARSE   VALID_SPARSE_COMPRESSED, VALID_SPARSE_TRIPLET

Definition at line 257 of file Mdefines.h.

◆ VALID_SPARSE_COMPRESSED

#define VALID_SPARSE_COMPRESSED
Value:
"ngCMatrix", "lgCMatrix", "igCMatrix", "dgCMatrix", "zgCMatrix", \
"nsCMatrix", "lsCMatrix", "isCMatrix", "dsCMatrix", "zsCMatrix", \
"dpCMatrix", "zpCMatrix", \
"ntCMatrix", "ltCMatrix", "itCMatrix", "dtCMatrix", "ztCMatrix", \
"ngRMatrix", "lgRMatrix", "igRMatrix", "dgRMatrix", "zgRMatrix", \
"nsRMatrix", "lsRMatrix", "isRMatrix", "dsRMatrix", "zsRMatrix", \
"dpRMatrix", "zpRMatrix", \
"ntRMatrix", "ltRMatrix", "itRMatrix", "dtRMatrix", "ztRMatrix"

Definition at line 241 of file Mdefines.h.

◆ VALID_SPARSE_TRIPLET

#define VALID_SPARSE_TRIPLET
Value:
"ngTMatrix", "lgTMatrix", "igTMatrix", "dgTMatrix", "zgTMatrix", \
"nsTMatrix", "lsTMatrix", "isTMatrix", "dsTMatrix", "zsTMatrix", \
"dpTMatrix", "zpTMatrix", \
"ntTMatrix", "ltTMatrix", "itTMatrix", "dtTMatrix", "ztTMatrix"

Definition at line 251 of file Mdefines.h.

◆ VALID_TRANS

#define VALID_TRANS ( s,
c )
Value:
do { \
if (TYPEOF(s) != STRSXP || LENGTH(s) < 1 || \
(s = STRING_ELT(s, 0)) == NA_STRING || \
((c = CHAR(s)[0]) != 'C' && c != 'T')) \
Rf_error(_("'%s' is not \"%c\" or \"%c\""), "trans", 'C', 'T'); \
} while (0)

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().

◆ VALID_UPLO

#define VALID_UPLO ( s,
c )
Value:
do { \
if (TYPEOF(s) != STRSXP || LENGTH(s) < 1 || \
(s = STRING_ELT(s, 0)) == NA_STRING || \
((c = CHAR(s)[0]) != 'U' && c != 'L')) \
Rf_error(_("'%s' must be \"%c\" or \"%c\""), "uplo", 'U', 'L'); \
} while (0)

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().

◆ VALID_VECTOR

#define VALID_VECTOR   "nsparseVector", "lsparseVector", "isparseVector", "dsparseVector", "zsparseVector"

Definition at line 269 of file Mdefines.h.

Function Documentation

◆ allocSeqInt()

SEXP allocSeqInt ( int from,
R_xlen_t length )

Definition at line 141 of file utils.c.

Referenced by diagonal_as_sparse().

◆ allocUnit()

SEXP allocUnit ( SEXPTYPE type,
R_xlen_t length )

◆ allocZero()

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().

◆ cpyDN()

void cpyDN ( SEXP dest,
SEXP src,
int J )

Definition at line 110 of file attrib.c.

Referenced by DIMNAMES(), and SET_DIMNAMES().

◆ 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().

◆ DimNames_is_symmetric()

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().

◆ DimNames_is_trivial()

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().

◆ duplicateVector()

◆ equalString()

int equalString ( SEXP s1,
SEXP s2,
R_xlen_t n )

◆ get_factor()

SEXP get_factor ( SEXP obj,
const char * nm )

◆ kindToSize()

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().

◆ kindToType()

◆ Matrix_class()

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().

◆ Matrix_sprintf()

char * Matrix_sprintf ( const char * format,
... )

Definition at line 18 of file utils.c.

References Matrix_ErrorBufferSize.

◆ Matrix_superclass()

const char * Matrix_superclass ( const char * class,
int mode )

Definition at line 73 of file objects.c.

Referenced by Matrix_class().

◆ naToUnit()

void naToUnit ( SEXP x)

◆ newObject()

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().

◆ SET_DIMNAMES()

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().

◆ set_factor()

void set_factor ( SEXP obj,
const char * nm,
SEXP val )

◆ symDN()

void symDN ( SEXP dest,
SEXP src,
int J )

◆ typeToKind()

char typeToKind ( SEXPTYPE type)

◆ validObject()

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().

Variable Documentation

◆ Matrix_betaSym

SEXP Matrix_betaSym

Definition at line 284 of file Mdefines.h.

◆ Matrix_colcountSym

SEXP Matrix_colcountSym

Definition at line 285 of file Mdefines.h.

◆ Matrix_diagSym

SEXP Matrix_diagSym

Definition at line 286 of file Mdefines.h.

◆ Matrix_DimNamesSym

◆ Matrix_DimSym

SEXP Matrix_DimSym

Definition at line 279 of file Mdefines.h.

◆ Matrix_factorsSym

SEXP Matrix_factorsSym

Definition at line 287 of file Mdefines.h.

◆ Matrix_isllSym

SEXP Matrix_isllSym

Definition at line 289 of file Mdefines.h.

◆ Matrix_ismtSym

SEXP Matrix_ismtSym

Definition at line 290 of file Mdefines.h.

◆ Matrix_iSym

SEXP Matrix_iSym

Definition at line 288 of file Mdefines.h.

◆ Matrix_jSym

SEXP Matrix_jSym

Definition at line 291 of file Mdefines.h.

◆ Matrix_kindSym

SEXP Matrix_kindSym

Definition at line 292 of file Mdefines.h.

◆ Matrix_LChar

SEXP Matrix_LChar

Definition at line 317 of file Mdefines.h.

◆ Matrix_lengthSym

SEXP Matrix_lengthSym

Definition at line 293 of file Mdefines.h.

◆ Matrix_logarithmSym

SEXP Matrix_logarithmSym

Definition at line 294 of file Mdefines.h.

◆ Matrix_LSym

SEXP Matrix_LSym

Definition at line 280 of file Mdefines.h.

◆ Matrix_marginSym

SEXP Matrix_marginSym

Definition at line 295 of file Mdefines.h.

◆ Matrix_maxcsizeSym

SEXP Matrix_maxcsizeSym

Definition at line 296 of file Mdefines.h.

◆ Matrix_maxesizeSym

SEXP Matrix_maxesizeSym

Definition at line 297 of file Mdefines.h.

◆ Matrix_minorSym

SEXP Matrix_minorSym

Definition at line 298 of file Mdefines.h.

◆ Matrix_nextSym

SEXP Matrix_nextSym

Definition at line 299 of file Mdefines.h.

◆ Matrix_nzSym

SEXP Matrix_nzSym

Definition at line 300 of file Mdefines.h.

◆ Matrix_offSym

SEXP Matrix_offSym

Definition at line 301 of file Mdefines.h.

◆ Matrix_orderingSym

SEXP Matrix_orderingSym

Definition at line 302 of file Mdefines.h.

◆ Matrix_permSym

SEXP Matrix_permSym

Definition at line 304 of file Mdefines.h.

◆ Matrix_piSym

SEXP Matrix_piSym

Definition at line 305 of file Mdefines.h.

◆ Matrix_prevSym

SEXP Matrix_prevSym

Definition at line 306 of file Mdefines.h.

◆ Matrix_pSym

SEXP Matrix_pSym

Definition at line 303 of file Mdefines.h.

◆ Matrix_pxSym

SEXP Matrix_pxSym

Definition at line 307 of file Mdefines.h.

◆ Matrix_qSym

SEXP Matrix_qSym

Definition at line 308 of file Mdefines.h.

◆ Matrix_RSym

SEXP Matrix_RSym

Definition at line 281 of file Mdefines.h.

◆ Matrix_sdSym

SEXP Matrix_sdSym

Definition at line 310 of file Mdefines.h.

◆ Matrix_sSym

SEXP Matrix_sSym

Definition at line 309 of file Mdefines.h.

◆ Matrix_superSym

SEXP Matrix_superSym

Definition at line 311 of file Mdefines.h.

◆ Matrix_TChar

SEXP Matrix_TChar

Definition at line 318 of file Mdefines.h.

◆ Matrix_transSym

SEXP Matrix_transSym

Definition at line 312 of file Mdefines.h.

◆ Matrix_UChar

SEXP Matrix_UChar

Definition at line 319 of file Mdefines.h.

◆ Matrix_uploSym

SEXP Matrix_uploSym

Definition at line 313 of file Mdefines.h.

◆ Matrix_USym

SEXP Matrix_USym

Definition at line 282 of file Mdefines.h.

◆ Matrix_valuesSym

SEXP Matrix_valuesSym

Definition at line 314 of file Mdefines.h.

◆ Matrix_vectorsSym

SEXP Matrix_vectorsSym

Definition at line 315 of file Mdefines.h.

◆ Matrix_VSym

SEXP Matrix_VSym

Definition at line 283 of file Mdefines.h.

◆ Matrix_xSym

SEXP Matrix_xSym

Definition at line 316 of file Mdefines.h.

◆ Matrix_zna

Rcomplex Matrix_zna

Definition at line 324 of file Mdefines.h.

◆ Matrix_zunit

Rcomplex Matrix_zunit

Definition at line 323 of file Mdefines.h.

◆ Matrix_zzero

Rcomplex Matrix_zzero
extern

◆ valid_dense

◆ valid_diagonal

const char * valid_diagonal[]

◆ valid_index

const char * valid_index[]

◆ valid_matrix

◆ valid_matrix_or_vector

const char * valid_matrix_or_vector[]

Definition at line 335 of file Mdefines.h.

◆ valid_sparse

◆ valid_sparse_compressed

const char * valid_sparse_compressed[]

Definition at line 329 of file Mdefines.h.

Referenced by Csparse_writeMM(), M2CHS(), M2CXS(), and sexp_as_cholmod_sparse().

◆ valid_sparse_triplet

const char * valid_sparse_triplet[]

Definition at line 330 of file Mdefines.h.

Referenced by sexp_as_cholmod_triplet().

◆ valid_vector

const char * valid_vector[]

Definition at line 334 of file Mdefines.h.

Referenced by R_Vector_as_sparse().