Matrix r4655
Loading...
Searching...
No Matches
Macros | Functions
objects.c File Reference
#include "Mdefines.h"
#include "objects.h"

Go to the source code of this file.

Macros

#define RETURN_AS_STRSXP(_C_)
 

Functions

SEXP newObject (const char *what)
 
char typeToKind (SEXPTYPE type)
 
SEXPTYPE kindToType (char kind)
 
size_t kindToSize (char kind)
 
const char * Matrix_nonvirtual (SEXP obj, int strict)
 
char Matrix_kind (SEXP obj)
 
char Matrix_shape (SEXP obj)
 
char Matrix_repr (SEXP obj)
 
SEXP R_Matrix_nonvirtual (SEXP obj, SEXP strict)
 
SEXP R_Matrix_kind (SEXP obj)
 
SEXP R_Matrix_shape (SEXP obj)
 
SEXP R_Matrix_repr (SEXP obj)
 

Macro Definition Documentation

◆ RETURN_AS_STRSXP

#define RETURN_AS_STRSXP (   _C_)
Value:
do { \
char c = _C_; \
if (!c) \
return mkString(""); \
else { \
char s[] = { c, '\0' }; \
return mkString(s); \
} \
} while (0)
cholmod_common c
Definition cholmod-etc.c:5

Definition at line 152 of file objects.c.

Function Documentation

◆ kindToSize()

size_t kindToSize ( char  kind)

Definition at line 46 of file objects.c.

References _.

Referenced by diagonal_as_dense(), index_as_dense(), and sparse_as_dense().

◆ kindToType()

SEXPTYPE kindToType ( char  kind)

◆ Matrix_kind()

char Matrix_kind ( SEXP  obj)

Definition at line 76 of file objects.c.

References cl, valid, VALID_NONVIRTUAL, and VALID_NONVIRTUAL_SHIFT.

Referenced by R_Matrix_kind().

◆ Matrix_nonvirtual()

const char * Matrix_nonvirtual ( SEXP  obj,
int  strict 
)

Definition at line 63 of file objects.c.

References valid, VALID_NONVIRTUAL, and VALID_NONVIRTUAL_SHIFT.

Referenced by R_Matrix_nonvirtual().

◆ Matrix_repr()

char Matrix_repr ( SEXP  obj)

Definition at line 115 of file objects.c.

References cl, valid, VALID_NONVIRTUAL_MATRIX, and VALID_NONVIRTUAL_SHIFT.

Referenced by R_Matrix_repr().

◆ Matrix_shape()

char Matrix_shape ( SEXP  obj)

Definition at line 102 of file objects.c.

References cl, valid, VALID_NONVIRTUAL, and VALID_NONVIRTUAL_SHIFT.

Referenced by CHMfactor_update(), CHMfactor_updown(), and R_Matrix_shape().

◆ newObject()

SEXP newObject ( const char *  what)

◆ R_Matrix_kind()

SEXP R_Matrix_kind ( SEXP  obj)

Definition at line 163 of file objects.c.

References Matrix_kind(), and RETURN_AS_STRSXP.

◆ R_Matrix_nonvirtual()

SEXP R_Matrix_nonvirtual ( SEXP  obj,
SEXP  strict 
)

Definition at line 147 of file objects.c.

References Matrix_nonvirtual().

◆ R_Matrix_repr()

SEXP R_Matrix_repr ( SEXP  obj)

Definition at line 173 of file objects.c.

References Matrix_repr(), and RETURN_AS_STRSXP.

◆ R_Matrix_shape()

SEXP R_Matrix_shape ( SEXP  obj)

Definition at line 168 of file objects.c.

References Matrix_shape(), and RETURN_AS_STRSXP.

◆ typeToKind()

char typeToKind ( SEXPTYPE  type)