Matrix r5059
|
#include "Lapack-etc.h"
#include "cs-etc.h"
#include "cholmod-etc.h"
#include "Mdefines.h"
#include "M5.h"
#include "idz.h"
Go to the source code of this file.
Macros | |
#define | SOLVE_START |
#define | SOLVE_FINISH |
#define | PROMOTE(A) |
#define | SOLVE_DENSE(c) |
#define | SOLVE_DENSE(c) |
#define | SOLVE_SPARSE_TRIANGULAR(c, _A_, _ALO_, _BFR_) |
#define | SOLVE_SPARSE(c) |
#define | SOLVE_DENSE(c) |
#define | SOLVE_DENSE(c) |
#define | SOLVE_SPARSE(c) |
#define | TEMPLATE(c) |
#define | TEMPLATE(c) |
Functions | |
static void | solveDN (SEXP rdn, SEXP adn, SEXP bdn) |
SEXP | denseLU_solve (SEXP s_a, SEXP s_b) |
SEXP | denseBunchKaufman_solve (SEXP s_a, SEXP s_b) |
SEXP | denseCholesky_solve (SEXP s_a, SEXP s_b) |
SEXP | trMatrix_solve (SEXP s_a, SEXP s_b) |
SEXP | sparseLU_solve (SEXP s_a, SEXP s_b, SEXP s_sparse) |
static int | strmatch (const char *s, const char **nms) |
SEXP | sparseCholesky_solve (SEXP s_a, SEXP s_b, SEXP s_sparse, SEXP s_system) |
SEXP | tCMatrix_solve (SEXP s_a, SEXP s_b, SEXP s_sparse) |
SEXP | sparseQR_matmult (SEXP s_qr, SEXP s_y, SEXP s_op, SEXP s_complete, SEXP s_yxjj) |
#define PROMOTE | ( | A | ) |
Referenced by sparseLU_solve(), sparseQR_matmult(), and tCMatrix_solve().
#define SOLVE_DENSE | ( | c | ) |
Referenced by sparseLU_solve(), and tCMatrix_solve().
#define SOLVE_DENSE | ( | c | ) |
#define SOLVE_DENSE | ( | c | ) |
#define SOLVE_DENSE | ( | c | ) |
#define SOLVE_FINISH |
Referenced by denseBunchKaufman_solve(), denseCholesky_solve(), denseLU_solve(), sparseCholesky_solve(), sparseLU_solve(), tCMatrix_solve(), and trMatrix_solve().
#define SOLVE_SPARSE | ( | c | ) |
Referenced by sparseLU_solve(), and tCMatrix_solve().
#define SOLVE_SPARSE | ( | c | ) |
#define SOLVE_SPARSE_TRIANGULAR | ( | c, | |
_A_, | |||
_ALO_, | |||
_BFR_ ) |
#define SOLVE_START |
Referenced by denseBunchKaufman_solve(), denseCholesky_solve(), denseLU_solve(), sparseCholesky_solve(), sparseLU_solve(), tCMatrix_solve(), and trMatrix_solve().
#define TEMPLATE | ( | c | ) |
Referenced by sparseQR_matmult().
#define TEMPLATE | ( | c | ) |
SEXP denseBunchKaufman_solve | ( | SEXP | s_a, |
SEXP | s_b ) |
Definition at line 130 of file solve.c.
References duplicateVector(), ERROR_LAPACK_1, ERROR_LAPACK_2, FCONE, GET_SLOT, Matrix_permSym, Matrix_xSym, newObject(), SET_DIM, SET_SLOT, SET_TRANS, SET_UPLO, SOLVE_FINISH, SOLVE_START, TRANS, TYPEOF, and UPLO.
SEXP denseCholesky_solve | ( | SEXP | s_a, |
SEXP | s_b ) |
Definition at line 257 of file solve.c.
References drowperm2(), dsymperm1(), dsymperm2(), ERROR_LAPACK_1, ERROR_LAPACK_2, FCONE, GET_SLOT, Matrix_permSym, Matrix_xSym, newObject(), SET_DIM, SET_SLOT, SET_UPLO, SOLVE_FINISH, SOLVE_START, TYPEOF, UPLO, zrowperm2(), zsymperm1(), and zsymperm2().
SEXP denseLU_solve | ( | SEXP | s_a, |
SEXP | s_b ) |
Definition at line 33 of file solve.c.
References duplicateVector(), ERROR_LAPACK_1, ERROR_LAPACK_2, FCONE, GET_SLOT, Matrix_permSym, Matrix_xSym, newObject(), SET_DIM, SET_SLOT, SOLVE_FINISH, SOLVE_START, and TYPEOF.
SEXP sparseCholesky_solve | ( | SEXP | s_a, |
SEXP | s_b, | ||
SEXP | s_sparse, | ||
SEXP | s_system ) |
Definition at line 697 of file solve.c.
References _, c, CHD2M(), CHS2M(), ERROR_OOM, M2CHD(), M2CHF(), M2CHS(), SET_UPLO, SOLVE_FINISH, SOLVE_START, strmatch(), and TYPEOF.
SEXP sparseLU_solve | ( | SEXP | s_a, |
SEXP | s_b, | ||
SEXP | s_sparse ) |
Definition at line 467 of file solve.c.
References _, CXS2M(), CXSPARSE_COMPLEX, CXSPARSE_XTYPE_SET, ERROR_OOM, GET_SLOT, Matrix_cs_sparse::i, M2CXS(), Matrix_cs_dropzeros(), Matrix_cs_free(), Matrix_cs_permute(), Matrix_cs_pinv(), Matrix_cs_speye(), Matrix_cs_spfree(), Matrix_cs_transpose(), Matrix_LSym, Matrix_pSym, Matrix_qSym, Matrix_USym, Matrix_xSym, newObject(), PROMOTE, SET_DIM, SET_SLOT, SOLVE_DENSE, SOLVE_FINISH, SOLVE_SPARSE, SOLVE_START, TYPEOF, and Matrix_cs_sparse::xtype.
SEXP sparseQR_matmult | ( | SEXP | s_qr, |
SEXP | s_y, | ||
SEXP | s_op, | ||
SEXP | s_complete, | ||
SEXP | s_yxjj ) |
Definition at line 902 of file solve.c.
References _, CXSPARSE_COMPLEX, CXSPARSE_XTYPE_SET, DIM, GET_SLOT, Matrix_cs_sparse::m, M2CXS(), Matrix_betaSym, Matrix_pSym, Matrix_VSym, Matrix_xSym, Matrix_cs_sparse::n, newObject(), PROMOTE, SET_SLOT, TEMPLATE, TYPEOF, and Matrix_cs_sparse::xtype.
|
static |
Definition at line 686 of file solve.c.
Referenced by sparseCholesky_solve().
SEXP tCMatrix_solve | ( | SEXP | s_a, |
SEXP | s_b, | ||
SEXP | s_sparse ) |
Definition at line 771 of file solve.c.
References _, CXS2M(), CXSPARSE_COMPLEX, CXSPARSE_XTYPE_SET, ERROR_OOM, GET_SLOT, M2CXS(), Matrix_cs_dropzeros(), Matrix_cs_speye(), Matrix_cs_spfree(), Matrix_cs_transpose(), Matrix_xSym, newObject(), PROMOTE, SET_DIM, SET_SLOT, SET_UPLO, SOLVE_DENSE, SOLVE_FINISH, SOLVE_SPARSE, SOLVE_START, TYPEOF, UPLO, and Matrix_cs_sparse::xtype.
SEXP trMatrix_solve | ( | SEXP | s_a, |
SEXP | s_b ) |
Definition at line 367 of file solve.c.
References DIAG, duplicateVector(), ERROR_LAPACK_1, ERROR_LAPACK_2, FCONE, GET_SLOT, Matrix_xSym, newObject(), SET_DIAG, SET_DIM, SET_SLOT, SET_UPLO, SOLVE_FINISH, SOLVE_START, TYPEOF, and UPLO.