Matrix r5059
Loading...
Searching...
No Matches
coerce.h File Reference
#include <Rinternals.h>

Go to the source code of this file.

Functions

SEXP vector_as_dense (SEXP, const char *, char, char, char, int, int, int, SEXP)
 
SEXP matrix_as_dense (SEXP, const char *, char, char, char, int, int)
 
SEXP sparse_as_dense (SEXP, const char *, int)
 
SEXP diagonal_as_dense (SEXP, const char *, char, char, int, char, char)
 
SEXP index_as_dense (SEXP, const char *, char)
 
SEXP Vector_as_sparse (SEXP, const char *, char, char, char, int, int, int, SEXP)
 
SEXP matrix_as_sparse (SEXP, const char *, char, char, char, int)
 
SEXP dense_as_sparse (SEXP, const char *, char)
 
SEXP diagonal_as_sparse (SEXP, const char *, char, char, char, char, char)
 
SEXP index_as_sparse (SEXP, const char *, char, char)
 
SEXP dense_as_kind (SEXP, const char *, char, int)
 
SEXP sparse_as_kind (SEXP, const char *, char)
 
SEXP diagonal_as_kind (SEXP, const char *, char)
 
SEXP index_as_kind (SEXP, const char *, char)
 
SEXP dense_as_general (SEXP, const char *, int)
 
SEXP sparse_as_general (SEXP, const char *)
 
SEXP dense_as_unpacked (SEXP, const char *)
 
SEXP dense_as_packed (SEXP, const char *, char, char, char)
 
SEXP sparse_as_Csparse (SEXP, const char *)
 
SEXP sparse_as_Rsparse (SEXP, const char *)
 
SEXP sparse_as_Tsparse (SEXP, const char *)
 
SEXP vector_as_Vector (SEXP, char)
 
SEXP sparse_as_Vector (SEXP, const char *)
 
SEXP diagonal_as_Vector (SEXP, const char *)
 
SEXP index_as_Vector (SEXP, const char *)
 

Function Documentation

◆ dense_as_general()

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

Definition at line 2237 of file coerce.c.

◆ dense_as_kind()

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

Definition at line 2000 of file coerce.c.

◆ dense_as_packed()

SEXP dense_as_packed ( SEXP from,
const char * class,
char ul,
char ct,
char nu )

Definition at line 2654 of file coerce.c.

◆ dense_as_sparse()

◆ dense_as_unpacked()

SEXP dense_as_unpacked ( SEXP from,
const char * class )

◆ diagonal_as_dense()

SEXP diagonal_as_dense ( SEXP from,
const char * class,
char kind,
char shape,
int packed,
char ul,
char ct )

◆ diagonal_as_kind()

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

◆ diagonal_as_sparse()

◆ diagonal_as_Vector()

SEXP diagonal_as_Vector ( SEXP from,
const char * class )

◆ index_as_dense()

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

◆ index_as_kind()

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

Definition at line 2221 of file coerce.c.

References index_as_sparse().

Referenced by R_index_as_kind().

◆ index_as_sparse()

◆ index_as_Vector()

SEXP index_as_Vector ( SEXP from,
const char * class )

◆ matrix_as_dense()

SEXP matrix_as_dense ( SEXP from,
const char * zzz,
char ul,
char ct,
char nu,
int mg,
int new )

◆ matrix_as_sparse()

SEXP matrix_as_sparse ( SEXP from,
const char * zzz,
char ul,
char ct,
char nu,
int mg )

Definition at line 1295 of file coerce.c.

References cl, dense_as_sparse(), matrix_as_dense(), sparse_as_kind(), TYPEOF, and typeToKind().

Referenced by coerceArgs(), and R_matrix_as_sparse().

◆ sparse_as_Csparse()

SEXP sparse_as_Csparse ( SEXP from,
const char * class )

Definition at line 2731 of file coerce.c.

◆ sparse_as_dense()

◆ sparse_as_general()

SEXP sparse_as_general ( SEXP from,
const char * class )

Definition at line 2298 of file coerce.c.

◆ sparse_as_kind()

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

Definition at line 2076 of file coerce.c.

◆ sparse_as_Rsparse()

◆ sparse_as_Tsparse()

◆ sparse_as_Vector()

SEXP sparse_as_Vector ( SEXP from,
const char * class )

◆ vector_as_dense()

SEXP vector_as_dense ( SEXP from,
const char * zzz,
char ul,
char ct,
char nu,
int m,
int n,
int byrow,
SEXP dimnames )

◆ Vector_as_sparse()

SEXP Vector_as_sparse ( SEXP from,
const char * zzz,
char ul,
char ct,
char nu,
int m,
int n,
int byrow,
SEXP dimnames )

◆ vector_as_Vector()

SEXP vector_as_Vector ( SEXP from,
char kind )