Matrix r5059
Loading...
Searching...
No Matches
qr.c File Reference
#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 sparse_as_kind (SEXP, const char *, char)
 
SEXP sparse_as_general (SEXP, const char *)
 
SEXP sparse_as_Csparse (SEXP, const char *)
 
SEXP sparse_qr (SEXP obj, const char *class, int warn, int order)
 
SEXP R_sparse_qr (SEXP s_obj, SEXP s_warn, SEXP s_order)
 

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 10 of file qr.c.

Referenced by sparse_qr().

◆ 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 23 of file qr.c.

Referenced by sparse_qr().

Function Documentation

◆ R_sparse_qr()

SEXP R_sparse_qr ( SEXP s_obj,
SEXP s_warn,
SEXP s_order )

Definition at line 115 of file qr.c.

References get_factor(), Matrix_class(), set_factor(), sparse_qr(), and valid_sparse.

◆ sparse_as_Csparse()

SEXP sparse_as_Csparse ( SEXP from,
const char * class )

◆ sparse_as_general()

SEXP sparse_as_general ( SEXP from,
const char * class )

Definition at line 2298 of file coerce.c.

Referenced by R_Matrix_as_general(), R_sparse_as_general(), sparse_as_Vector(), and sparse_qr().

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

◆ sparse_qr()