Rcpp Version 0.9.10
Rcpp::internal Namespace Reference

internal implementation details More...

Classes

class  NamedPlaceHolder
class  converter
class  SEXPstack

Functions

template<typename T >
as (SEXP x,::Rcpp::traits::r_type_primitive_tag)
template<typename T >
as (SEXP x,::Rcpp::traits::r_type_string_tag)
template<typename T >
as (SEXP x,::Rcpp::traits::r_type_generic_tag)
SEXP get_Rcpp_namespace ()
SEXP get_rcpptrycatch ()
SEXP get_evalq ()
SEXP empty_data_frame ()
template<>
double caster< Rcpp::Date, double > (Rcpp::Date from)
template<>
Rcpp::Date caster< double, Rcpp::Date > (double from)
template<>
double caster< Rcpp::Datetime, double > (Rcpp::Datetime from)
template<>
Rcpp::Datetime caster< double, Rcpp::Datetime > (double from)
template<typename T >
SEXP grow__dispatch (::Rcpp::traits::false_type, const T &head, SEXP tail)
template<typename Class >
SEXP make_new_object (Class *ptr)
template<int TARGET>
SEXP r_true_cast (SEXP x)
template<>
SEXP r_true_cast< INTSXP > (SEXP x)
template<>
SEXP r_true_cast< REALSXP > (SEXP x)
template<>
SEXP r_true_cast< RAWSXP > (SEXP x)
template<>
SEXP r_true_cast< CPLXSXP > (SEXP x)
template<>
SEXP r_true_cast< LGLSXP > (SEXP x)
template<>
SEXP r_true_cast< STRSXP > (SEXP x)
template<>
SEXP r_true_cast< VECSXP > (SEXP x)
template<>
SEXP r_true_cast< EXPRSXP > (SEXP x)
template<>
SEXP r_true_cast< LISTSXP > (SEXP x)
template<>
SEXP r_true_cast< LANGSXP > (SEXP x)
double complex__Re (Rcomplex x)
double complex__Im (Rcomplex x)
double complex__Mod (Rcomplex x)
Rcomplex complex__Conj (Rcomplex x)
Rcomplex complex__exp (Rcomplex x)
Rcomplex complex__log (Rcomplex x)
Rcomplex complex__sqrt (Rcomplex z)
Rcomplex complex__cos (Rcomplex z)
Rcomplex complex__cosh (Rcomplex z)
Rcomplex complex__sin (Rcomplex z)
Rcomplex complex__tan (Rcomplex z)
Rcomplex complex__asin (Rcomplex z)
Rcomplex complex__acos (Rcomplex z)
Rcomplex complex__atan (Rcomplex z)
Rcomplex complex__acosh (Rcomplex z)
Rcomplex complex__asinh (Rcomplex z)
Rcomplex complex__atanh (Rcomplex z)
Rcomplex complex__sinh (Rcomplex z)
Rcomplex complex__tanh (Rcomplex z)
double factorial (double x)
double lfactorial (double x)
template<int RTYPE, bool NA, typename T >
Rcpp::Vector< RTYPE > as_vector__impl (MatrixBase< RTYPE, NA, T > &t, Rcpp::traits::false_type)
int get_line (int index, int nr)
int get_column (int index, int nr)
int get_column (int index, int nr, int i)
template<typename T >
int rcpp_call_test (T t)
int rcpp_call_test_ (SEXP)
SEXP convert_using_rfunction (SEXP x, const char *const fun)
SEXP try_catch (SEXP expr, SEXP env)
SEXP try_catch (SEXP expr)
template<>
int r_coerce< INTSXP, INTSXP > (int from)
template<>
int r_coerce< LGLSXP, LGLSXP > (int from)
template<>
double r_coerce< REALSXP, REALSXP > (double from)
template<>
Rcomplex r_coerce< CPLXSXP, CPLXSXP > (Rcomplex from)
template<>
Rbyte r_coerce< RAWSXP, RAWSXP > (Rbyte from)
template<>
int r_coerce< LGLSXP, INTSXP > (int from)
template<>
int r_coerce< REALSXP, INTSXP > (double from)
template<>
int r_coerce< CPLXSXP, INTSXP > (Rcomplex from)
template<>
int r_coerce< RAWSXP, INTSXP > (Rbyte from)
template<>
double r_coerce< LGLSXP, REALSXP > (int from)
template<>
double r_coerce< INTSXP, REALSXP > (int from)
template<>
double r_coerce< CPLXSXP, REALSXP > (Rcomplex from)
template<>
double r_coerce< RAWSXP, REALSXP > (Rbyte from)
template<>
int r_coerce< REALSXP, LGLSXP > (double from)
template<>
int r_coerce< INTSXP, LGLSXP > (int from)
template<>
int r_coerce< CPLXSXP, LGLSXP > (Rcomplex from)
template<>
int r_coerce< RAWSXP, LGLSXP > (Rbyte from)
template<>
Rbyte r_coerce< REALSXP, RAWSXP > (double from)
template<>
Rbyte r_coerce< INTSXP, RAWSXP > (int from)
template<>
Rbyte r_coerce< CPLXSXP, RAWSXP > (Rcomplex from)
template<>
Rbyte r_coerce< LGLSXP, RAWSXP > (int from)
template<>
Rcomplex r_coerce< REALSXP, CPLXSXP > (double from)
template<>
Rcomplex r_coerce< INTSXP, CPLXSXP > (int from)
template<>
Rcomplex r_coerce< RAWSXP, CPLXSXP > (Rbyte from)
template<>
Rcomplex r_coerce< LGLSXP, CPLXSXP > (int from)
SEXP getPosixClasses ()
SEXP new_posixt_object (double d)
SEXP new_date_object (double d)
template<>
int * r_vector_start< INTSXP, int > (SEXP x)
template<>
int * r_vector_start< LGLSXP, int > (SEXP x)
template<>
double * r_vector_start< REALSXP, double > (SEXP x)
template<>
Rbyte * r_vector_start< RAWSXP, Rbyte > (SEXP x)
template<>
Rcomplex * r_vector_start< CPLXSXP, Rcomplex > (SEXP x)
template<>
void r_init_vector< VECSXP > (SEXP x)
template<>
void r_init_vector< EXPRSXP > (SEXP x)
template<>
void r_init_vector< STRSXP > (SEXP x)
template<>
Rcomplex get_zero< CPLXSXP, Rcomplex > ()
template<>
Rcomplex caster< std::complex< double >, Rcomplex > (std::complex< double > from)
template<>
Rcomplex caster< std::complex< float >, Rcomplex > (std::complex< float > from)
template<>
std::complex< double > caster< Rcomplex, std::complex< double > > (Rcomplex from)
template<>
std::complex< float > caster< Rcomplex, std::complex< float > > (Rcomplex from)

Detailed Description

internal implementation details


Function Documentation

template<typename T >
T Rcpp::internal::as ( SEXP  x,
::Rcpp::traits::r_type_primitive_tag   
)
Examples:
FastLM/benchmark.r, FastLM/fastLMviaArmadillo.r, FastLM/fastLMviaGSL.r, OpenMP/OpenMPandInline.r, and RcppInline/RObject.r.

Definition at line 29 of file as.h.

References PROTECT(), and y.

Here is the call graph for this function:

template<typename T >
T Rcpp::internal::as ( SEXP  x,
::Rcpp::traits::r_type_string_tag   
)

Definition at line 39 of file as.h.

template<typename T >
T Rcpp::internal::as ( SEXP  x,
::Rcpp::traits::r_type_generic_tag   
)

Definition at line 49 of file as.h.

References DEMANGLE, and RCPP_DEBUG_1.

template<int RTYPE, bool NA, typename T >
Rcpp::Vector< RTYPE > Rcpp::internal::as_vector__impl ( MatrixBase< RTYPE, NA, T > &  t,
Rcpp::traits::false_type   
) [inline]

Definition at line 30 of file as_vector.h.

References Rcpp::MatrixBase< RTYPE, na, MATRIX >::get_ref().

Referenced by Rcpp::as_vector().

Here is the call graph for this function:

template<>
Rcpp::Date Rcpp::internal::caster< double, Rcpp::Date > ( double  from) [inline]

Definition at line 84 of file Date.h.

template<>
Rcpp::Datetime Rcpp::internal::caster< double, Rcpp::Datetime > ( double  from) [inline]

Definition at line 80 of file Datetime.h.

template<>
std::complex<double> Rcpp::internal::caster< Rcomplex, std::complex< double > > ( Rcomplex  from)

Definition at line 157 of file RcppCommon.cpp.

template<>
std::complex<float> Rcpp::internal::caster< Rcomplex, std::complex< float > > ( Rcomplex  from)

Definition at line 160 of file RcppCommon.cpp.

template<>
double Rcpp::internal::caster< Rcpp::Date, double > ( Rcpp::Date  from) [inline]

Definition at line 81 of file Date.h.

template<>
double Rcpp::internal::caster< Rcpp::Datetime, double > ( Rcpp::Datetime  from) [inline]

Definition at line 77 of file Datetime.h.

template<>
Rcomplex Rcpp::internal::caster< std::complex< double >, Rcomplex > ( std::complex< double >  from)

Definition at line 144 of file RcppCommon.cpp.

template<>
Rcomplex Rcpp::internal::caster< std::complex< float >, Rcomplex > ( std::complex< float >  from)

Definition at line 150 of file RcppCommon.cpp.

Rcomplex Rcpp::internal::complex__acos ( Rcomplex  z) [inline]

Definition at line 153 of file complex.h.

References complex__asin().

Referenced by complex__acosh().

Here is the call graph for this function:

Rcomplex Rcpp::internal::complex__acosh ( Rcomplex  z) [inline]

Definition at line 186 of file complex.h.

References a, and complex__acos().

Here is the call graph for this function:

Rcomplex Rcpp::internal::complex__asin ( Rcomplex  z) [inline]

Definition at line 137 of file complex.h.

References RCPP_HYPOT, x, and y.

Referenced by complex__acos(), and complex__asinh().

Rcomplex Rcpp::internal::complex__asinh ( Rcomplex  z) [inline]

Definition at line 193 of file complex.h.

References a, b, and complex__asin().

Here is the call graph for this function:

Rcomplex Rcpp::internal::complex__atan ( Rcomplex  z) [inline]

Definition at line 169 of file complex.h.

References x, and y.

Referenced by complex__atanh().

Rcomplex Rcpp::internal::complex__atanh ( Rcomplex  z) [inline]

Definition at line 203 of file complex.h.

References a, b, and complex__atan().

Here is the call graph for this function:

Rcomplex Rcpp::internal::complex__Conj ( Rcomplex  x) [inline]

Definition at line 65 of file complex.h.

References y.

Rcomplex Rcpp::internal::complex__cos ( Rcomplex  z) [inline]

Definition at line 103 of file complex.h.

Rcomplex Rcpp::internal::complex__cosh ( Rcomplex  z) [inline]

Definition at line 109 of file complex.h.

Rcomplex Rcpp::internal::complex__exp ( Rcomplex  x) [inline]

Definition at line 72 of file complex.h.

References y.

double Rcpp::internal::complex__Im ( Rcomplex  x) [inline]

Definition at line 63 of file complex.h.

Rcomplex Rcpp::internal::complex__log ( Rcomplex  x) [inline]

Definition at line 79 of file complex.h.

References RCPP_HYPOT, and y.

double Rcpp::internal::complex__Mod ( Rcomplex  x) [inline]

Definition at line 64 of file complex.h.

double Rcpp::internal::complex__Re ( Rcomplex  x) [inline]

Definition at line 62 of file complex.h.

Rcomplex Rcpp::internal::complex__sin ( Rcomplex  z) [inline]

Definition at line 115 of file complex.h.

Referenced by complex__sinh().

Rcomplex Rcpp::internal::complex__sinh ( Rcomplex  z) [inline]

Definition at line 212 of file complex.h.

References a, b, and complex__sin().

Here is the call graph for this function:

Rcomplex Rcpp::internal::complex__sqrt ( Rcomplex  z) [inline]

Definition at line 85 of file complex.h.

References RCPP_HYPOT.

Rcomplex Rcpp::internal::complex__tan ( Rcomplex  z) [inline]

Definition at line 121 of file complex.h.

Referenced by complex__tanh().

Rcomplex Rcpp::internal::complex__tanh ( Rcomplex  z) [inline]

Definition at line 223 of file complex.h.

References a, b, and complex__tan().

Here is the call graph for this function:

SEXP Rcpp::internal::convert_using_rfunction ( SEXP  x,
const char *const  fun 
)
SEXP Rcpp::internal::empty_data_frame ( ) [inline]

Definition at line 31 of file DataFrame.h.

double Rcpp::internal::factorial ( double  x) [inline]

Definition at line 56 of file math.h.

int Rcpp::internal::get_column ( int  index,
int  nr 
) [inline]

Definition at line 32 of file tools.h.

References get_line(), and i.

Referenced by Rcpp::MatrixBase< RTYPE, na, MATRIX >::iterator::update_index().

Here is the call graph for this function:

int Rcpp::internal::get_column ( int  index,
int  nr,
int  i 
) [inline]

Definition at line 37 of file tools.h.

SEXP Rcpp::internal::get_evalq ( )

Definition at line 40 of file cache.cpp.

Referenced by Rcpp::Evaluator::run().

int Rcpp::internal::get_line ( int  index,
int  nr 
) [inline]
SEXP Rcpp::internal::get_Rcpp_namespace ( )

Definition at line 33 of file cache.cpp.

References maybe_init(), and Rcpp_cache.

Referenced by Rcpp::Environment::Rcpp_namespace().

Here is the call graph for this function:

SEXP Rcpp::internal::get_rcpptrycatch ( )

Definition at line 36 of file cache.cpp.

Referenced by Rcpp::Evaluator::run().

template<>
Rcomplex Rcpp::internal::get_zero< CPLXSXP, Rcomplex > ( )

Definition at line 137 of file RcppCommon.cpp.

References x.

SEXP Rcpp::internal::getPosixClasses ( )

Definition at line 27 of file posixt.cpp.

References PROTECT().

Referenced by new_posixt_object(), and Rcpp::wrap_extra_steps< Rcpp::Datetime >().

Here is the call graph for this function:

template<typename T >
SEXP Rcpp::internal::grow__dispatch ( ::Rcpp::traits::false_type  ,
const T &  head,
SEXP  tail 
)

Definition at line 35 of file grow.h.

References PROTECT(), Rcpp::wrap(), and x.

Referenced by Rcpp::grow().

Here is the call graph for this function:

double Rcpp::internal::lfactorial ( double  x) [inline]

Definition at line 59 of file math.h.

template<typename Class >
SEXP Rcpp::internal::make_new_object ( Class *  ptr)

Definition at line 43 of file Module.h.

References Rcpp::Environment::Rcpp_namespace().

Here is the call graph for this function:

SEXP Rcpp::internal::new_date_object ( double  d)

Definition at line 42 of file posixt.cpp.

References PROTECT(), and x.

Referenced by Rcpp::wrap().

Here is the call graph for this function:

SEXP Rcpp::internal::new_posixt_object ( double  d)

Definition at line 35 of file posixt.cpp.

References getPosixClasses(), PROTECT(), and x.

Referenced by Rcpp::wrap().

Here is the call graph for this function:

template<>
Rcomplex Rcpp::internal::r_coerce< CPLXSXP, CPLXSXP > ( Rcomplex  from)

Definition at line 30 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< CPLXSXP, INTSXP > ( Rcomplex  from)

Definition at line 45 of file coerce.cpp.

References r_coerce< REALSXP, INTSXP >().

Here is the call graph for this function:

template<>
int Rcpp::internal::r_coerce< CPLXSXP, LGLSXP > ( Rcomplex  from)

Definition at line 73 of file coerce.cpp.

template<>
Rbyte Rcpp::internal::r_coerce< CPLXSXP, RAWSXP > ( Rcomplex  from)

Definition at line 91 of file coerce.cpp.

References r_coerce< REALSXP, RAWSXP >().

Here is the call graph for this function:

template<>
double Rcpp::internal::r_coerce< CPLXSXP, REALSXP > ( Rcomplex  from)

Definition at line 59 of file coerce.cpp.

template<>
Rcomplex Rcpp::internal::r_coerce< INTSXP, CPLXSXP > ( int  from)

Definition at line 110 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< INTSXP, INTSXP > ( int  from)

Definition at line 27 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< INTSXP, LGLSXP > ( int  from)

Definition at line 70 of file coerce.cpp.

template<>
Rbyte Rcpp::internal::r_coerce< INTSXP, RAWSXP > ( int  from)

Definition at line 88 of file coerce.cpp.

Referenced by r_coerce< REALSXP, RAWSXP >().

template<>
double Rcpp::internal::r_coerce< INTSXP, REALSXP > ( int  from)

Definition at line 56 of file coerce.cpp.

template<>
Rcomplex Rcpp::internal::r_coerce< LGLSXP, CPLXSXP > ( int  from)

Definition at line 127 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< LGLSXP, INTSXP > ( int  from)

Definition at line 34 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< LGLSXP, LGLSXP > ( int  from)

Definition at line 28 of file coerce.cpp.

template<>
Rbyte Rcpp::internal::r_coerce< LGLSXP, RAWSXP > ( int  from)

Definition at line 94 of file coerce.cpp.

template<>
double Rcpp::internal::r_coerce< LGLSXP, REALSXP > ( int  from)

Definition at line 53 of file coerce.cpp.

template<>
Rcomplex Rcpp::internal::r_coerce< RAWSXP, CPLXSXP > ( Rbyte  from)

Definition at line 121 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< RAWSXP, INTSXP > ( Rbyte  from)

Definition at line 48 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< RAWSXP, LGLSXP > ( Rbyte  from)

Definition at line 78 of file coerce.cpp.

template<>
Rbyte Rcpp::internal::r_coerce< RAWSXP, RAWSXP > ( Rbyte  from)

Definition at line 31 of file coerce.cpp.

template<>
double Rcpp::internal::r_coerce< RAWSXP, REALSXP > ( Rbyte  from)

Definition at line 62 of file coerce.cpp.

template<>
Rcomplex Rcpp::internal::r_coerce< REALSXP, CPLXSXP > ( double  from)

Definition at line 99 of file coerce.cpp.

template<>
int Rcpp::internal::r_coerce< REALSXP, INTSXP > ( double  from)

Definition at line 37 of file coerce.cpp.

Referenced by r_coerce< CPLXSXP, INTSXP >().

template<>
int Rcpp::internal::r_coerce< REALSXP, LGLSXP > ( double  from)

Definition at line 67 of file coerce.cpp.

template<>
Rbyte Rcpp::internal::r_coerce< REALSXP, RAWSXP > ( double  from)

Definition at line 84 of file coerce.cpp.

References r_coerce< INTSXP, RAWSXP >().

Referenced by r_coerce< CPLXSXP, RAWSXP >().

Here is the call graph for this function:

template<>
double Rcpp::internal::r_coerce< REALSXP, REALSXP > ( double  from)

Definition at line 29 of file coerce.cpp.

template<>
void Rcpp::internal::r_init_vector< EXPRSXP > ( SEXP  x)

Definition at line 134 of file RcppCommon.cpp.

template<>
void Rcpp::internal::r_init_vector< STRSXP > ( SEXP  x)

Definition at line 135 of file RcppCommon.cpp.

template<>
void Rcpp::internal::r_init_vector< VECSXP > ( SEXP  x)

Definition at line 133 of file RcppCommon.cpp.

template<int TARGET>
SEXP Rcpp::internal::r_true_cast ( SEXP  x)

Definition at line 33 of file r_cast.h.

Referenced by Rcpp::r_cast().

template<>
SEXP Rcpp::internal::r_true_cast< CPLXSXP > ( SEXP  x)

Definition at line 81 of file r_cast.cpp.

References R_NilValue, and x.

template<>
SEXP Rcpp::internal::r_true_cast< EXPRSXP > ( SEXP  x)

Definition at line 123 of file r_cast.cpp.

References convert_using_rfunction(), and x.

Here is the call graph for this function:

template<>
SEXP Rcpp::internal::r_true_cast< INTSXP > ( SEXP  x)

Definition at line 28 of file r_cast.cpp.

References R_NilValue, and x.

template<>
SEXP Rcpp::internal::r_true_cast< LANGSXP > ( SEXP  x)

Definition at line 143 of file r_cast.cpp.

References convert_using_rfunction(), and x.

Here is the call graph for this function:

template<>
SEXP Rcpp::internal::r_true_cast< LGLSXP > ( SEXP  x)

Definition at line 54 of file r_cast.cpp.

References R_NilValue, and x.

template<>
SEXP Rcpp::internal::r_true_cast< LISTSXP > ( SEXP  x)

Definition at line 127 of file r_cast.cpp.

References convert_using_rfunction(), PROTECT(), R_NilValue, x, and y.

Here is the call graph for this function:

template<>
SEXP Rcpp::internal::r_true_cast< RAWSXP > ( SEXP  x)

Definition at line 67 of file r_cast.cpp.

References R_NilValue, and x.

template<>
SEXP Rcpp::internal::r_true_cast< REALSXP > ( SEXP  x)

Definition at line 41 of file r_cast.cpp.

References R_NilValue, and x.

template<>
SEXP Rcpp::internal::r_true_cast< STRSXP > ( SEXP  x)

Definition at line 94 of file r_cast.cpp.

References PROTECT(), R_NilValue, and x.

Here is the call graph for this function:

template<>
SEXP Rcpp::internal::r_true_cast< VECSXP > ( SEXP  x)

Definition at line 119 of file r_cast.cpp.

References convert_using_rfunction(), and x.

Here is the call graph for this function:

template<>
Rcomplex* Rcpp::internal::r_vector_start< CPLXSXP, Rcomplex > ( SEXP  x)

Definition at line 131 of file RcppCommon.cpp.

References x.

template<>
int* Rcpp::internal::r_vector_start< INTSXP, int > ( SEXP  x)

Definition at line 127 of file RcppCommon.cpp.

References x.

template<>
int* Rcpp::internal::r_vector_start< LGLSXP, int > ( SEXP  x)

Definition at line 128 of file RcppCommon.cpp.

References x.

template<>
Rbyte* Rcpp::internal::r_vector_start< RAWSXP, Rbyte > ( SEXP  x)

Definition at line 130 of file RcppCommon.cpp.

References x.

template<>
double* Rcpp::internal::r_vector_start< REALSXP, double > ( SEXP  x)

Definition at line 129 of file RcppCommon.cpp.

References x.

template<typename T >
int Rcpp::internal::rcpp_call_test ( t)

Definition at line 171 of file RcppCommon.h.

Referenced by rcpp_call_test_().

int Rcpp::internal::rcpp_call_test_ ( SEXP  x)

Definition at line 164 of file RcppCommon.cpp.

References rcpp_call_test(), and RCPP_RETURN_VECTOR.

Referenced by rcpp_call_test().

Here is the call graph for this function:

SEXP Rcpp::internal::try_catch ( SEXP  expr)

Definition at line 77 of file Evaluator.cpp.

References Rcpp::Evaluator::run().

Here is the call graph for this function:

SEXP Rcpp::internal::try_catch ( SEXP  expr,
SEXP  env 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines