Matrix r5059
Loading...
Searching...
No Matches
lu.c File Reference
#include "Lapack-etc.h"
#include "cs-etc.h"
#include "Mdefines.h"

Go to the source code of this file.

Macros

#define DO_FREE(_T_, _S_, _N_, _P_)
 
#define DO_SORT(_A_, _T_)
 

Functions

SEXP dense_as_kind (SEXP, const char *, char, int)
 
SEXP dense_as_general (SEXP, const char *, int)
 
SEXP sparse_as_kind (SEXP, const char *, char)
 
SEXP sparse_as_general (SEXP, const char *)
 
SEXP sparse_as_Csparse (SEXP, const char *)
 
SEXP dense_lu (SEXP obj, const char *class, int warn)
 
SEXP sparse_lu (SEXP obj, const char *class, int warn, int order, double tol)
 
SEXP R_dense_lu (SEXP s_obj, SEXP s_warn)
 
SEXP R_sparse_lu (SEXP s_obj, SEXP s_warn, SEXP s_order, SEXP s_tol)
 

Macro Definition Documentation

◆ DO_FREE

#define DO_FREE ( _T_,
_S_,
_N_,
_P_ )
Value:
do { \
if (!(_T_)) \
_T_ = Matrix_cs_spfree(_T_); \
if (!(_S_)) \
_S_ = Matrix_cs_sfree (_S_); \
if (!(_N_)) \
_N_ = Matrix_cs_nfree (_N_); \
if (!(_P_)) \
_P_ = Matrix_cs_free (_P_); \
} while (0)
Matrix_cs * Matrix_cs_spfree(Matrix_cs *A)
Definition cs-etc.c:337
void * Matrix_cs_free(void *p)
Definition cs-etc.c:113
Matrix_css * Matrix_cs_sfree(Matrix_css *S)
Definition cs-etc.c:270
Matrix_csn * Matrix_cs_nfree(Matrix_csn *N)
Definition cs-etc.c:185

Definition at line 53 of file lu.c.

Referenced by sparse_lu().

◆ DO_SORT

#define DO_SORT ( _A_,
_T_ )
Value:
do { \
Matrix_cs_dropzeros(_A_); \
_T_ = Matrix_cs_transpose(_A_, 1); \
if (!_T_) \
goto oom; \
_A_ = Matrix_cs_spfree(_A_); \
_A_ = Matrix_cs_transpose(_T_, 1); \
if (!_A_) \
goto oom; \
_T_ = Matrix_cs_spfree(_T_); \
} while (0)
Matrix_cs * Matrix_cs_transpose(const Matrix_cs *A, int values)
Definition cs-etc.c:385

Definition at line 66 of file lu.c.

Referenced by sparse_lu().

Function Documentation

◆ dense_as_general()

SEXP dense_as_general ( SEXP from,
const char * class,
int new )

Definition at line 2237 of file coerce.c.

Referenced by dense_lu().

◆ dense_as_kind()

SEXP dense_as_kind ( SEXP from,
const char * class,
char kind,
int new )

Definition at line 2000 of file coerce.c.

Referenced by dense_lu().

◆ dense_lu()

SEXP dense_lu ( SEXP obj,
const char * class,
int warn )

◆ R_dense_lu()

SEXP R_dense_lu ( SEXP s_obj,
SEXP s_warn )

Definition at line 154 of file lu.c.

References dense_lu(), get_factor(), Matrix_class(), set_factor(), and valid_dense.

◆ R_sparse_lu()

SEXP R_sparse_lu ( SEXP s_obj,
SEXP s_warn,
SEXP s_order,
SEXP s_tol )

Definition at line 174 of file lu.c.

References _, get_factor(), Matrix_class(), set_factor(), sparse_lu(), and valid_sparse.

◆ sparse_as_Csparse()

SEXP sparse_as_Csparse ( SEXP from,
const char * class )

Definition at line 2731 of file coerce.c.

Referenced by sparse_lu().

◆ sparse_as_general()

SEXP sparse_as_general ( SEXP from,
const char * class )

Definition at line 2298 of file coerce.c.

Referenced by sparse_lu().

◆ sparse_as_kind()

SEXP sparse_as_kind ( SEXP from,
const char * class,
char kind )

Definition at line 2076 of file coerce.c.

Referenced by sparse_lu().

◆ sparse_lu()