Matrix r5059
Loading...
Searching...
No Matches
attrib.c File Reference
#include "Mdefines.h"

Go to the source code of this file.

Functions

SEXP R_Dim_prod (SEXP dim)
 
int DimNames_is_trivial (SEXP dn)
 
int DimNames_is_symmetric (SEXP dn)
 
SEXP R_DimNames_is_symmetric (SEXP dn)
 
void symDN (SEXP dest, SEXP src, int J)
 
SEXP R_symDN (SEXP dn)
 
void cpyDN (SEXP dest, SEXP src, int J)
 
SEXP DIMNAMES (SEXP obj, int mode)
 
void SET_DIMNAMES (SEXP obj, int mode, SEXP value)
 
static R_xlen_t strmatch (const char *s, SEXP nms)
 
SEXP get_factor (SEXP obj, const char *nm)
 
void set_factor (SEXP obj, const char *nm, SEXP val)
 
SEXP R_set_factor (SEXP s_obj, SEXP s_nm, SEXP s_val, SEXP s_warn)
 

Function Documentation

◆ cpyDN()

void cpyDN ( SEXP dest,
SEXP src,
int J )

Definition at line 110 of file attrib.c.

Referenced by DIMNAMES(), and SET_DIMNAMES().

◆ DIMNAMES()

SEXP DIMNAMES ( SEXP obj,
int mode )

Definition at line 132 of file attrib.c.

References cpyDN(), DimNames_is_trivial(), GET_SLOT, Matrix_DimNamesSym, and symDN().

◆ DimNames_is_symmetric()

int DimNames_is_symmetric ( SEXP dn)

Definition at line 46 of file attrib.c.

References equalString().

Referenced by dense_is_symmetric(), R_DimNames_is_symmetric(), and sparse_is_symmetric().

◆ DimNames_is_trivial()

int DimNames_is_trivial ( SEXP dn)

Definition at line 38 of file attrib.c.

Referenced by DIMNAMES(), R_Matrix_as_matrix(), R_symDN(), and SET_DIMNAMES().

◆ get_factor()

SEXP get_factor ( SEXP obj,
const char * nm )

◆ R_Dim_prod()

SEXP R_Dim_prod ( SEXP dim)

Definition at line 5 of file attrib.c.

References _, and Matrix_offSym.

◆ R_DimNames_is_symmetric()

SEXP R_DimNames_is_symmetric ( SEXP dn)

Definition at line 64 of file attrib.c.

References DimNames_is_symmetric().

◆ R_set_factor()

SEXP R_set_factor ( SEXP s_obj,
SEXP s_nm,
SEXP s_val,
SEXP s_warn )

Definition at line 220 of file attrib.c.

References _, Matrix_factorsSym, set_factor(), and TYPEOF.

◆ R_symDN()

SEXP R_symDN ( SEXP dn)

Definition at line 100 of file attrib.c.

References DimNames_is_trivial(), and symDN().

◆ SET_DIMNAMES()

void SET_DIMNAMES ( SEXP obj,
int mode,
SEXP value )

Definition at line 151 of file attrib.c.

References cpyDN(), DimNames_is_trivial(), GET_SLOT, Matrix_DimNamesSym, and symDN().

◆ set_factor()

void set_factor ( SEXP obj,
const char * nm,
SEXP val )

◆ strmatch()

static R_xlen_t strmatch ( const char * s,
SEXP nms )
static

Definition at line 170 of file attrib.c.

References TYPEOF.

Referenced by get_factor(), and set_factor().

◆ symDN()

void symDN ( SEXP dest,
SEXP src,
int J )