Matrix r4655
|
#include "Lapack-etc.h"
#include "cs-etc.h"
#include "cholmod-etc.h"
#include "Mdefines.h"
#include "factor.h"
Go to the source code of this file.
Macros | |
#define | DO_FREE(_A_, _S_, _N_) |
#define | DO_SORT(_A_) |
Functions | |
SEXP | get_factor (SEXP, const char *) |
void | set_factor (SEXP, const char *, SEXP) |
static SEXP | dgeMatrix_trf_ (SEXP obj, int warn) |
static SEXP | dsyMatrix_trf_ (SEXP obj, int warn) |
static SEXP | dspMatrix_trf_ (SEXP obj, int warn) |
static SEXP | dpoMatrix_trf_ (SEXP obj, int warn, int pivot, double tol) |
static SEXP | dppMatrix_trf_ (SEXP obj, int warn) |
SEXP | dgeMatrix_trf (SEXP obj, SEXP warn) |
SEXP | dsyMatrix_trf (SEXP obj, SEXP warn) |
SEXP | dspMatrix_trf (SEXP obj, SEXP warn) |
SEXP | dpoMatrix_trf (SEXP obj, SEXP warn, SEXP pivot, SEXP tol) |
SEXP | dppMatrix_trf (SEXP obj, SEXP warn) |
SEXP | dgeMatrix_sch (SEXP x, SEXP vectors, SEXP isDGE) |
static int | dgCMatrix_trf_ (const Matrix_cs *A, Matrix_css **S, Matrix_csn **N, int order, double tol) |
SEXP | dgCMatrix_trf (SEXP obj, SEXP order, SEXP tol, SEXP doError) |
static int | dgCMatrix_orf_ (const Matrix_cs *A, Matrix_css **S, Matrix_csn **N, int order) |
SEXP | dgCMatrix_orf (SEXP obj, SEXP order, SEXP doError) |
static int | dpCMatrix_trf_ (cholmod_sparse *A, cholmod_factor **L, int perm, int ldl, int super, double mult) |
SEXP | dpCMatrix_trf (SEXP obj, SEXP perm, SEXP ldl, SEXP super, SEXP mult) |
SEXP | BunchKaufman_expand (SEXP obj, SEXP packed) |
SEXP | CHMfactor_diag_get (SEXP obj, SEXP square) |
SEXP | CHMfactor_update (SEXP obj, SEXP parent, SEXP mult) |
SEXP | CHMfactor_updown (SEXP obj, SEXP parent, SEXP update) |
#define DO_FREE | ( | _A_, | |
_S_, | |||
_N_ | |||
) |
#define DO_SORT | ( | _A_ | ) |
SEXP BunchKaufman_expand | ( | SEXP | obj, |
SEXP | packed | ||
) |
Definition at line 675 of file factor.c.
References GET_SLOT, Matrix_diagSym, Matrix_DimSym, Matrix_iSym, Matrix_permSym, Matrix_pSym, Matrix_uploSym, Matrix_xSym, newObject(), and SET_SLOT.
SEXP CHMfactor_diag_get | ( | SEXP | obj, |
SEXP | square | ||
) |
SEXP CHMfactor_update | ( | SEXP | obj, |
SEXP | parent, | ||
SEXP | mult | ||
) |
Definition at line 890 of file factor.c.
References _, c, CHF2M(), dpCMatrix_trf_(), GET_SLOT, M2CHF(), M2CHS(), Matrix_DimNamesSym, Matrix_shape(), Matrix_uploSym, and SET_SLOT.
SEXP CHMfactor_updown | ( | SEXP | obj, |
SEXP | parent, | ||
SEXP | update | ||
) |
Definition at line 920 of file factor.c.
References c, CHF2M(), GET_SLOT, M2CHF(), M2CHS(), Matrix_DimNamesSym, Matrix_shape(), Matrix_uploSym, and SET_SLOT.
SEXP dgCMatrix_orf | ( | SEXP | obj, |
SEXP | order, | ||
SEXP | doError | ||
) |
Definition at line 491 of file factor.c.
References _, Matrix_cs_numeric::B, CXS2M(), dgCMatrix_orf_(), get_factor(), GET_SLOT, Matrix_cs_numeric::L, Matrix_cs_sparse::m, Matrix_cs_symbolic::m2, M2CXS(), Matrix_betaSym, Matrix_cs_free(), Matrix_cs_nfree(), Matrix_cs_pinv(), Matrix_cs_sfree(), Matrix_DimNamesSym, Matrix_DimSym, Matrix_memcpy(), Matrix_pSym, Matrix_qSym, Matrix_RSym, Matrix_VSym, MCS_XTYPE_SET, Matrix_cs_sparse::n, newObject(), Matrix_cs_symbolic::pinv, Matrix_cs_symbolic::q, set_factor(), SET_SLOT, Matrix_cs_numeric::U, and Matrix_cs_sparse::xtype.
|
static |
Definition at line 477 of file factor.c.
References DO_FREE, DO_SORT, Matrix_cs_qr(), and Matrix_cs_sqr().
Referenced by dgCMatrix_orf().
SEXP dgCMatrix_trf | ( | SEXP | obj, |
SEXP | order, | ||
SEXP | tol, | ||
SEXP | doError | ||
) |
Definition at line 399 of file factor.c.
References _, CXS2M(), dgCMatrix_trf_(), get_factor(), GET_SLOT, Matrix_cs_numeric::L, Matrix_cs_sparse::m, M2CXS(), Matrix_cs_free(), Matrix_cs_nfree(), Matrix_cs_pinv(), Matrix_cs_sfree(), Matrix_DimNamesSym, Matrix_DimSym, Matrix_LSym, Matrix_memcpy(), Matrix_pSym, Matrix_qSym, Matrix_uploSym, Matrix_USym, MCS_XTYPE_SET, Matrix_cs_sparse::n, newObject(), Matrix_cs_numeric::pinv, Matrix_cs_symbolic::q, set_factor(), SET_SLOT, Matrix_cs_numeric::U, and Matrix_cs_sparse::xtype.
|
static |
Definition at line 385 of file factor.c.
References DO_FREE, DO_SORT, Matrix_cs_lu(), and Matrix_cs_sqr().
Referenced by dgCMatrix_trf().
SEXP dgeMatrix_sch | ( | SEXP | x, |
SEXP | vectors, | ||
SEXP | isDGE | ||
) |
Definition at line 309 of file factor.c.
References _, FCONE, GET_SLOT, Matrix_Calloc, Matrix_DimSym, Matrix_Free, and Matrix_xSym.
SEXP dgeMatrix_trf | ( | SEXP | obj, |
SEXP | warn | ||
) |
Definition at line 252 of file factor.c.
References dgeMatrix_trf_(), get_factor(), and set_factor().
|
static |
Definition at line 12 of file factor.c.
References ERROR_LAPACK_2, GET_SLOT, Matrix_DimNamesSym, Matrix_DimSym, Matrix_memcpy(), Matrix_permSym, Matrix_xSym, newObject(), and SET_SLOT.
Referenced by dgeMatrix_trf().
SEXP dpCMatrix_trf | ( | SEXP | obj, |
SEXP | perm, | ||
SEXP | ldl, | ||
SEXP | super, | ||
SEXP | mult | ||
) |
Definition at line 612 of file factor.c.
References _, c, CHF2M(), dpCMatrix_trf_(), get_factor(), GET_SLOT, M2CHF(), M2CHS(), Matrix_DimNamesSym, Matrix_uploSym, set_factor(), and set_symmetrized_DimNames().
|
static |
Definition at line 569 of file factor.c.
References c, R_cholmod_common_envget(), and R_cholmod_common_envset().
Referenced by CHMfactor_update(), and dpCMatrix_trf().
SEXP dpoMatrix_trf | ( | SEXP | obj, |
SEXP | warn, | ||
SEXP | pivot, | ||
SEXP | tol | ||
) |
Definition at line 285 of file factor.c.
References dpoMatrix_trf_(), get_factor(), and set_factor().
|
static |
Definition at line 139 of file factor.c.
References ERROR_LAPACK_3, ERROR_LAPACK_4, FCONE, GET_SLOT, Matrix_DimNamesSym, Matrix_DimSym, Matrix_memset(), Matrix_permSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, and set_symmetrized_DimNames().
Referenced by dpoMatrix_trf().
SEXP dppMatrix_trf | ( | SEXP | obj, |
SEXP | warn | ||
) |
Definition at line 298 of file factor.c.
References dppMatrix_trf_(), get_factor(), and set_factor().
|
static |
Definition at line 215 of file factor.c.
References ERROR_LAPACK_3, FCONE, GET_SLOT, Matrix_DimNamesSym, Matrix_DimSym, Matrix_memcpy(), Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, and set_symmetrized_DimNames().
Referenced by dppMatrix_trf().
SEXP dspMatrix_trf | ( | SEXP | obj, |
SEXP | warn | ||
) |
Definition at line 274 of file factor.c.
References dspMatrix_trf_(), get_factor(), and set_factor().
|
static |
Definition at line 99 of file factor.c.
References ERROR_LAPACK_2, FCONE, GET_SLOT, Matrix_DimNamesSym, Matrix_DimSym, Matrix_memcpy(), Matrix_permSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, and set_symmetrized_DimNames().
Referenced by dspMatrix_trf().
SEXP dsyMatrix_trf | ( | SEXP | obj, |
SEXP | warn | ||
) |
Definition at line 263 of file factor.c.
References dsyMatrix_trf_(), get_factor(), and set_factor().
|
static |
Definition at line 49 of file factor.c.
References ERROR_LAPACK_2, FCONE, GET_SLOT, Matrix_Calloc, Matrix_DimNamesSym, Matrix_DimSym, Matrix_Free, Matrix_memset(), Matrix_permSym, Matrix_uploSym, Matrix_xSym, newObject(), SET_SLOT, and set_symmetrized_DimNames().
Referenced by dsyMatrix_trf().
SEXP get_factor | ( | SEXP | obj, |
const char * | nm | ||
) |
Definition at line 189 of file attrib.c.
References GET_SLOT, Matrix_factorsSym, strmatch(), and valid.
Referenced by dgCMatrix_orf(), dgCMatrix_trf(), dgeMatrix_trf(), dpCMatrix_trf(), dpoMatrix_trf(), dppMatrix_trf(), dspMatrix_trf(), and dsyMatrix_trf().
void set_factor | ( | SEXP | obj, |
const char * | nm, | ||
SEXP | val | ||
) |
Definition at line 203 of file attrib.c.
References append_to_named_list(), GET_SLOT, Matrix_factorsSym, SET_SLOT, strmatch(), and valid.
Referenced by dgCMatrix_orf(), dgCMatrix_trf(), dgeMatrix_trf(), dpCMatrix_trf(), dpoMatrix_trf(), dppMatrix_trf(), dspMatrix_trf(), dsyMatrix_trf(), and R_set_factor().