Rcpp Version 0.9.10
Rcpp Namespace Reference

Rcpp API. More...

Namespaces

namespace  internal
 

internal implementation details


namespace  stats
namespace  sugar
namespace  traits
 

traits used to dispatch wrap


Classes

class  DataFrame
class  Date
class  Datetime
class  DatetimeVector
class  DateVector
class  Dimension
class  DottedPair
class  Environment
class  Evaluator
class  exception
class  no_such_env
class  Fast
class  Formula
class  Function
class  Generator
class  Generator< false, T >
class  RNGScope
class  InternalFunction
class  Rostream
class  Rstreambuf
class  Language
class  fixed_call
class  unary_call
class  binary_call
class  result
class  CppFunction
class  class_Base
class  Module
class  CppMethod
class  SignedConstructor
class  SignedMethod
class  S4_CppConstructor
class  S4_CppOverloadedMethods
class  CppProperty
class  CppFinalizer
class  FunctionFinalizer
class  S4_field
class  class_
class  CppClass
class  CppObject
class  Argument
class  Pairlist
class  Promise
class  Reference
class  RObject
class  S4
class  StringTransformer
struct  can_have_na
class  Range
class  Symbol
class  MatrixBase
class  VectorBase
class  WeakReference
class  XPtr
struct  tzhead
struct  ttinfo
struct  lsinfo
struct  state
struct  rule

Typedefs

typedef bool(* ValidConstructor )(SEXP *, int)
typedef bool(* ValidMethod )(SEXP *, int)

Functions

template<class InputIterator , class T >
bool __any (InputIterator first, InputIterator last, const T &value, std::input_iterator_tag)
template<class RandomAccessIterator , class T >
bool __any (RandomAccessIterator __first, RandomAccessIterator __last, const T &__val, std::random_access_iterator_tag)
template<class InputIterator , class T >
bool any (InputIterator first, InputIterator last, const T &value)
template<class InputIterator , class Predicate >
bool __any_if (InputIterator first, InputIterator last, Predicate pred, std::input_iterator_tag)
template<class RandomAccessIterator , class Predicate >
bool __any_if (RandomAccessIterator __first, RandomAccessIterator __last, Predicate __pred, std::random_access_iterator_tag)
template<class InputIterator , class Predicate >
bool any_if (InputIterator first, InputIterator last, Predicate pred)
template<typename T >
as (SEXP m_sexp)
template<>
SEXP as (SEXP m_sexp)
template<typename T >
clone (const T &object)
template<>
SEXP wrap< Rcpp::Date > (const Rcpp::Date &date)
template<>
SEXP wrap_extra_steps< Rcpp::Date > (SEXP x)
template<>
SEXP wrap< Rcpp::Datetime > (const Rcpp::Datetime &dt)
template<>
SEXP wrap_extra_steps< Rcpp::Datetime > (SEXP x)
static std::string toString (const int i)
SEXP pairlist ()
template<typename T >
SEXP grow (const T &head, SEXP tail)
Argument Named (const std::string &name)
template<typename T >
traits::named_object< T > Named (const std::string &name, const T &o)
template<int TARGET>
SEXP r_cast (SEXP x)
template<int MAX_SIZE>
std::string sprintf (const char *format,...)
template<bool NA, typename T >
stats::D1< REALSXP, NA, T > dexp (const Rcpp::VectorBase< REALSXP, NA, T > &x, double shape, bool log=false)
template<bool NA, typename T >
stats::P1< REALSXP, NA, T > pexp (const Rcpp::VectorBase< REALSXP, NA, T > &x, double shape, bool lower=true, bool log=false)
template<bool NA, typename T >
stats::Q1< REALSXP, NA, T > qexp (const Rcpp::VectorBase< REALSXP, NA, T > &x, double shape, bool lower=true, bool log=false)
NumericVector rbeta (int n, double a, double b)
NumericVector rbinom (int n, double nin, double pp)
NumericVector rcauchy (int n, double location, double scale)
NumericVector rcauchy (int n, double location)
NumericVector rcauchy (int n)
NumericVector rchisq (int n, double df)
NumericVector rexp (int n, double rate)
NumericVector rexp (int n)
NumericVector rf (int n, double n1, double n2)
NumericVector rgamma (int n, double a, double scale)
NumericVector rgeom (int n, double p)
NumericVector rhyper (int n, double nn1, double nn2, double kk)
NumericVector rlnorm (int n, double meanlog, double sdlog)
NumericVector rlnorm (int n, double meanlog)
NumericVector rlnorm (int n)
NumericVector rlogis (int n, double location, double scale)
NumericVector rlogis (int n, double location)
NumericVector rlogis (int n)
NumericVector rnbinom (int n, double siz, double prob)
NumericVector rnbinom_mu (int n, double siz, double mu)
NumericVector rnchisq (int n, double df, double lambda)
NumericVector rnchisq (int n, double df)
NumericVector rnorm (int n, double mean, double sd)
NumericVector rnorm (int n, double mean)
NumericVector rnorm (int n)
NumericVector rpois (int n, double mu)
NumericVector rsignrank (int n, double nn)
NumericVector rt (int n, double df)
NumericVector runif (int n, double min, double max)
NumericVector runif (int n, double min)
NumericVector runif (int n)
NumericVector rweibull (int n, double shape, double scale)
NumericVector rwilcox (int n, double mm, double nn)
template<typename UnaryOperator >
StringTransformer< UnaryOperator > make_string_transformer (const UnaryOperator &fun)
template<bool NA, typename T >
sugar::All< NA, T > all (const Rcpp::VectorBase< LGLSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Any< NA, T > any (const Rcpp::VectorBase< LGLSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Cumsum< INTSXP, NA, T > cumsum (const VectorBase< INTSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Cumsum< REALSXP, NA, T > cumsum (const VectorBase< REALSXP, NA, T > &t)
template<bool LHS_NA, typename LHS_T >
sugar::Diff< INTSXP, LHS_NA,
LHS_T > 
diff (const VectorBase< INTSXP, LHS_NA, LHS_T > &lhs)
template<bool LHS_NA, typename LHS_T >
sugar::Diff< REALSXP, LHS_NA,
LHS_T > 
diff (const VectorBase< REALSXP, LHS_NA, LHS_T > &lhs)
template<int RTYPE, bool NA, typename T >
sugar::Head< RTYPE, NA, T > head (const VectorBase< RTYPE, NA, T > &t, int n)
template<int RTYPE, bool COND_NA, typename COND_T , bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T >
sugar::IfElse< RTYPE, COND_NA,
COND_T, LHS_NA, LHS_T, RHS_NA,
RHS_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs)
template<int RTYPE, bool COND_NA, typename COND_T , bool RHS_NA, typename RHS_T >
sugar::IfElse_Primitive_Vector
< RTYPE, COND_NA, COND_T,
RHS_NA, RHS_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, typename traits::storage_type< RTYPE >::type lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs)
template<int RTYPE, bool COND_NA, typename COND_T , bool RHS_NA, typename RHS_T >
sugar::IfElse_Vector_Primitive
< RTYPE, COND_NA, COND_T,
RHS_NA, RHS_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &lhs, typename traits::storage_type< RTYPE >::type rhs)
template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive
< REALSXP, COND_NA, COND_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, double lhs, double rhs)
template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive
< INTSXP, COND_NA, COND_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, int lhs, int rhs)
template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive
< CPLXSXP, COND_NA, COND_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, Rcomplex lhs, Rcomplex rhs)
template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive
< LGLSXP, COND_NA, COND_T > 
ifelse (const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &cond, bool lhs, bool rhs)
template<int RTYPE, bool NA, typename T >
sugar::IsNa< RTYPE, NA, T > is_na (const Rcpp::VectorBase< RTYPE, NA, T > &t)
template<int RTYPE, bool NA, typename T , typename Function >
sugar::Lapply< RTYPE, NA, T,
Function
lapply (const Rcpp::VectorBase< RTYPE, NA, T > &t, Function fun)
template<int RTYPE, bool NA_1, typename T_1 , bool NA_2, typename T_2 , typename Function >
sugar::Mapply_2< RTYPE, NA_1,
T_1, NA_2, T_2, Function
mapply (const Rcpp::VectorBase< RTYPE, NA_1, T_1 > &t1, const Rcpp::VectorBase< RTYPE, NA_2, T_2 > &t2, Function fun)
template<int RTYPE, bool NA_1, typename T_1 , bool NA_2, typename T_2 , bool NA_3, typename T_3 , typename Function >
sugar::Mapply_3< RTYPE, NA_1,
T_1, NA_2, T_2, NA_3, T_3,
Function
mapply (const Rcpp::VectorBase< RTYPE, NA_1, T_1 > &t1, const Rcpp::VectorBase< RTYPE, NA_2, T_2 > &t2, const Rcpp::VectorBase< RTYPE, NA_3, T_3 > &t3, Function fun)
template<bool NA, typename T >
sugar::Mean< REALSXP, NA, T > mean (const VectorBase< REALSXP, NA, T > &t)
template<int RTYPE, bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T >
sugar::Pmax_Vector_Vector
< RTYPE, LHS_NA, LHS_T, RHS_NA,
RHS_T > 
pmax (const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs)
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Pmax_Vector_Primitive
< RTYPE, LHS_NA, LHS_T > 
pmax (const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &lhs, typename Rcpp::traits::storage_type< RTYPE >::type rhs)
template<int RTYPE, bool RHS_NA, typename RHS_T >
sugar::Pmax_Vector_Primitive
< RTYPE, RHS_NA, RHS_T > 
pmax (typename Rcpp::traits::storage_type< RTYPE >::type lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs)
template<int RTYPE, bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T >
sugar::Pmin_Vector_Vector
< RTYPE, LHS_NA, LHS_T, RHS_NA,
RHS_T > 
pmin (const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs)
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Pmin_Vector_Primitive
< RTYPE, LHS_NA, LHS_T > 
pmin (const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &lhs, typename Rcpp::traits::storage_type< RTYPE >::type rhs)
template<int RTYPE, bool RHS_NA, typename RHS_T >
sugar::Pmin_Vector_Primitive
< RTYPE, RHS_NA, RHS_T > 
pmin (typename Rcpp::traits::storage_type< RTYPE >::type lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs)
template<bool NA, typename T , typename EXPONENT_TYPE >
sugar::Pow< INTSXP, NA, T,
EXPONENT_TYPE > 
pow (const VectorBase< INTSXP, NA, T > &t, EXPONENT_TYPE exponent)
template<bool NA, typename T , typename EXPONENT_TYPE >
sugar::Pow< REALSXP, NA, T,
EXPONENT_TYPE > 
pow (const VectorBase< REALSXP, NA, T > &t, EXPONENT_TYPE exponent)
template<int RTYPE, bool NA, typename T >
sugar::Rep< RTYPE, NA, T > rep (const VectorBase< RTYPE, NA, T > &t, int n)
sugar::Rep_Single< double > rep (const double &x, int n)
sugar::Rep_Single< int > rep (const int &x, int n)
sugar::Rep_Single< Rbyte > rep (const Rbyte &x, int n)
sugar::Rep_Single< Rcomplex > rep (const Rcomplex &x, int n)
sugar::Rep_Single< bool > rep (const bool &x, int n)
template<int RTYPE, bool NA, typename T >
sugar::Rep_each< RTYPE, NA, T > rep_each (const VectorBase< RTYPE, NA, T > &t, int times)
template<int RTYPE, bool NA, typename T >
sugar::Rep_len< RTYPE, NA, T > rep_len (const VectorBase< RTYPE, NA, T > &t, int len)
template<int RTYPE, bool NA, typename T >
sugar::Rev< RTYPE, NA, T > rev (const VectorBase< RTYPE, NA, T > &t)
template<int RTYPE, bool NA, typename T , typename Function >
sugar::Sapply< RTYPE, NA, T,
Function, traits::same_type
< typename::Rcpp::traits::result_of
< Function >::type, typename
Rcpp::traits::storage_type
< traits::r_sexptype_traits
< typename::Rcpp::traits::result_of
< Function >::type >::rtype >
::type >::value > 
sapply (const Rcpp::VectorBase< RTYPE, NA, T > &t, Function fun)
template<bool NA, typename T >
sugar::Sd< REALSXP, NA, T > sd (const VectorBase< REALSXP, NA, T > &t)
template<int RTYPE, bool NA, typename T >
sugar::SeqLen seq_along (const Rcpp::VectorBase< RTYPE, NA, T > &t)
sugar::SeqLen seq_len (const size_t &n)
Range seq (int start, int end)
template<bool NA, typename T >
sugar::Sign< INTSXP, NA, T > sign (const VectorBase< INTSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Sign< REALSXP, NA, T > sign (const VectorBase< REALSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Sum< INTSXP, NA, T > sum (const VectorBase< INTSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Sum< REALSXP, NA, T > sum (const VectorBase< REALSXP, NA, T > &t)
template<bool NA, typename T >
sugar::Sum< LGLSXP, NA, T > sum (const VectorBase< LGLSXP, NA, T > &t)
template<int RTYPE, bool NA, typename T >
sugar::Tail< RTYPE, NA, T > tail (const VectorBase< RTYPE, NA, T > &t, int n)
template<bool NA, typename T >
sugar::Var< REALSXP, NA, T > var (const VectorBase< REALSXP, NA, T > &t)
template<bool NA, typename T >
bool is_true (const Rcpp::sugar::SingleLogicalResult< NA, T > &x)
template<bool NA, typename T >
bool is_false (const Rcpp::sugar::SingleLogicalResult< NA, T > &x)
template<bool NA, typename T >
bool is_na (const Rcpp::sugar::SingleLogicalResult< NA, T > &x)
template<int RTYPE, bool NA, typename T >
Rcpp::Vector< RTYPE > as_vector (const MatrixBase< RTYPE, NA, T > &t)
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Col< RTYPE, LHS_NA, LHS_T > col (const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &lhs)
template<typename T >
sugar::diag_result_type_trait
< T >::type 
diag (const T &t)
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::LowerTri< RTYPE, LHS_NA,
LHS_T > 
lower_tri (const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &lhs, bool diag=false)
template<int RTYPE, bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T , typename Function >
sugar::Outer< RTYPE, LHS_NA,
LHS_T, RHS_NA, RHS_T, Function
outer (const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &lhs, const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &rhs, Function fun)
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Row< RTYPE, LHS_NA, LHS_T > row (const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &lhs)
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::UpperTri< RTYPE, LHS_NA,
LHS_T > 
upper_tri (const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &lhs, bool diag=false)
template<int RTYPE, bool NA, typename VECTOR >
sugar::Nona< RTYPE, NA, VECTOR > noNA (const Rcpp::VectorBase< RTYPE, NA, VECTOR > &vec)
sugar::NonaPrimitive< double > noNA (double x)
sugar::NonaPrimitive< int > noNA (int x)
template<typename T >
void delete_finalizer (SEXP p)
template<typename T >
void standard_delete_finalizer (T *obj)
template<typename T , void Finalizer>
void finalizer_wrapper (SEXP p)
bool Rboolean_to_bool (int x)
bool int_to_bool (int x)
bool double_to_bool (double x)
bool Rbyte_to_bool (Rbyte x)
static struct tmgmtime_ (const time_t *const timep)
Date operator+ (const Date &date, int offset)
int operator- (const Date &d1, const Date &d2)
bool operator< (const Date &d1, const Date &d2)
bool operator> (const Date &d1, const Date &d2)
bool operator== (const Date &d1, const Date &d2)
bool operator>= (const Date &d1, const Date &d2)
bool operator<= (const Date &d1, const Date &d2)
bool operator!= (const Date &d1, const Date &d2)
template<>
SEXP wrap (const Date &date)
static int tzparse (const char *name, struct state *sp, int lastditch)
static int typesequiv (const struct state *sp, int a, int b)
static const char * getsecs (const char *strp, long *secsp)
static const char * getnum (const char *strp, int *const nump, const int min, const int max)
static const char * getrule (const char *strp, struct rule *const rulep)
static time_t transtime (const time_t janfirst, const int year, const struct rule *const rulep, const long offset)
static struct tmtimesub (const time_t *const timep, const long offset, const struct state *const sp, struct tm *const tmp)
static int leaps_thru_end_of (const int y)
static int increment_overflow (int *number, int delta)
static long detzcode (const char *const codep)
static time_t detzcode64 (const char *const codep)
static int differ_by_repeat (const time_t t1, const time_t t0)
static const char * getzname (const char *strp)
static const char * getqzname (const char *strp, const int delim)
static const char * getoffset (const char *strp, long *const offsetp)
static int tzload (const char *name, struct state *const sp, const int doextend)
static void gmtload (struct state *const sp)
static struct tmgmtsub (const time_t *const timep, const long offset, struct tm *const tmp)
Datetime operator+ (const Datetime &datetime, double offset)
double operator- (const Datetime &d1, const Datetime &d2)
bool operator< (const Datetime &d1, const Datetime &d2)
bool operator> (const Datetime &d1, const Datetime &d2)
bool operator== (const Datetime &d1, const Datetime &d2)
bool operator>= (const Datetime &d1, const Datetime &d2)
bool operator<= (const Datetime &d1, const Datetime &d2)
bool operator!= (const Datetime &d1, const Datetime &d2)
template<>
SEXP wrap (const Datetime &date)

Variables

Rostream Rcout
static internal::NamedPlaceHolder _
static const char gmt [] = "GMT"
static const int mon_lengths [2][MONSPERYEAR]
static const int year_lengths [2]
static int gmt_is_set
static struct state gmtmem
static struct tm tm
static Modulecurrent_scope

Detailed Description

Rcpp API.


Typedef Documentation

typedef bool(* Rcpp::ValidConstructor)(SEXP *, int)

Definition at line 197 of file Module.h.

typedef bool(* Rcpp::ValidMethod)(SEXP *, int)

Definition at line 198 of file Module.h.


Function Documentation

template<class InputIterator , class T >
bool Rcpp::__any ( InputIterator  first,
InputIterator  last,
const T &  value,
std::input_iterator_tag   
) [inline]

Definition at line 32 of file algo.h.

Referenced by any().

template<class RandomAccessIterator , class T >
bool Rcpp::__any ( RandomAccessIterator  __first,
RandomAccessIterator  __last,
const T &  __val,
std::random_access_iterator_tag   
) [inline]

Definition at line 39 of file algo.h.

template<class InputIterator , class Predicate >
bool Rcpp::__any_if ( InputIterator  first,
InputIterator  last,
Predicate  pred,
std::input_iterator_tag   
) [inline]

Definition at line 98 of file algo.h.

Referenced by any_if().

template<class RandomAccessIterator , class Predicate >
bool Rcpp::__any_if ( RandomAccessIterator  __first,
RandomAccessIterator  __last,
Predicate  __pred,
std::random_access_iterator_tag   
) [inline]

Definition at line 105 of file algo.h.

template<bool NA, typename T >
sugar::All<NA,T> Rcpp::all ( const Rcpp::VectorBase< LGLSXP, NA, T > &  t) [inline]
template<class InputIterator , class T >
bool Rcpp::any ( InputIterator  first,
InputIterator  last,
const T &  value 
) [inline]

stl like algorithm to identify if any of the objects in the range is equal to the value

Examples:
SugarPerformance/sugarBenchmarks.R.

Definition at line 89 of file algo.h.

References __any().

Referenced by Rcpp::S4::is().

Here is the call graph for this function:

template<bool NA, typename T >
sugar::Any<NA,T> Rcpp::any ( const Rcpp::VectorBase< LGLSXP, NA, T > &  t) [inline]

Definition at line 81 of file any.h.

template<class InputIterator , class Predicate >
bool Rcpp::any_if ( InputIterator  first,
InputIterator  last,
Predicate  pred 
) [inline]

stl-like algorithm to identify if the predicate is true for any of the objects in the range

Definition at line 155 of file algo.h.

References __any_if().

Here is the call graph for this function:

template<>
SEXP Rcpp::as ( SEXP  m_sexp) [inline]

Definition at line 78 of file as.h.

template<typename T >
T Rcpp::as ( SEXP  m_sexp)

Generic converted from SEXP to the typename. T can be any type that has a constructor taking a SEXP, which is the case for all our RObject and derived classes.

If it is not possible to add the SEXP constructor, e.g you don't control the type, you can specialize the as template to perform the requested conversion

This is used for example in Environment, so that for example the code below will work as long as there is a way to as<> the Foo type

Environment x = ... ; // some environment Foo y = x["bla"] ; // if as<Foo> makes sense then this works !!

Examples:
RcppGibbs/RcppGibbs.R.

Definition at line 74 of file as.h.

Referenced by CppProperty_GetPointer_SetPointer< Class, PROP >::set(), CppProperty_GetPointer_SetMethod< Class, PROP >::set(), CppProperty_GetConstMethod_SetPointer< Class, PROP >::set(), CppProperty_GetMethod_SetPointer< Class, PROP >::set(), CppProperty_GetConstMethod_SetMethod< Class, PROP >::set(), and CppProperty_GetMethod_SetMethod< Class, PROP >::set().

template<int RTYPE, bool NA, typename T >
Rcpp::Vector<RTYPE> Rcpp::as_vector ( const MatrixBase< RTYPE, NA, T > &  t) [inline]

Definition at line 55 of file as_vector.h.

References Rcpp::internal::as_vector__impl().

Here is the call graph for this function:

template<typename T >
T Rcpp::clone ( const T &  object)

Definition at line 33 of file clone.h.

References x.

template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Col<RTYPE,LHS_NA,LHS_T> Rcpp::col ( const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &  lhs) [inline]
Examples:
RcppGibbs/RcppGibbs.R.

Definition at line 55 of file col.h.

template<bool NA, typename T >
sugar::Cumsum<INTSXP,NA,T> Rcpp::cumsum ( const VectorBase< INTSXP, NA, T > &  t) [inline]

Definition at line 59 of file cumsum.h.

template<bool NA, typename T >
sugar::Cumsum<REALSXP,NA,T> Rcpp::cumsum ( const VectorBase< REALSXP, NA, T > &  t) [inline]

Definition at line 64 of file cumsum.h.

template<typename T >
void Rcpp::delete_finalizer ( SEXP  p)

Definition at line 30 of file XPtr.h.

static long Rcpp::detzcode ( const char *const  codep) [static]

Definition at line 483 of file Date.cpp.

References i.

Referenced by tzload().

static time_t Rcpp::detzcode64 ( const char *const  codep) [static]

Definition at line 493 of file Date.cpp.

References i.

Referenced by tzload().

template<bool NA, typename T >
stats::D1<REALSXP,NA,T> Rcpp::dexp ( const Rcpp::VectorBase< REALSXP, NA, T > &  x,
double  shape,
bool  log = false 
) [inline]

Definition at line 80 of file exp.h.

References x.

template<typename T >
sugar::diag_result_type_trait<T>::type Rcpp::diag ( const T &  t) [inline]

Definition at line 83 of file diag.h.

Referenced by lower_tri(), and upper_tri().

template<bool LHS_NA, typename LHS_T >
sugar::Diff<INTSXP,LHS_NA,LHS_T> Rcpp::diff ( const VectorBase< INTSXP, LHS_NA, LHS_T > &  lhs) [inline]

Definition at line 110 of file diff.h.

Referenced by Rcpp::sugar::Diff< RTYPE, false, LHS_T >::operator[]().

template<bool LHS_NA, typename LHS_T >
sugar::Diff<REALSXP,LHS_NA,LHS_T> Rcpp::diff ( const VectorBase< REALSXP, LHS_NA, LHS_T > &  lhs) [inline]

Definition at line 117 of file diff.h.

static int Rcpp::differ_by_repeat ( const time_t  t1,
const time_t  t0 
) [static]

Definition at line 503 of file Date.cpp.

References SECSPERREPEAT, SECSPERREPEAT_BITS, TYPE_BIT, TYPE_INTEGRAL, and TYPE_SIGNED.

Referenced by tzload().

bool Rcpp::double_to_bool ( double  x) [inline]

Definition at line 218 of file RcppCommon.h.

template<typename T , void Finalizer>
void Rcpp::finalizer_wrapper ( SEXP  p)

Definition at line 43 of file XPtr.h.

static const char * Rcpp::getnum ( const char *  strp,
int *const  nump,
const int  min,
const int  max 
) [static]

Definition at line 575 of file Date.cpp.

References is_digit.

Referenced by getrule(), and getsecs().

static const char* Rcpp::getoffset ( const char *  strp,
long *const  offsetp 
) [static]

Definition at line 528 of file Date.cpp.

References getsecs().

Referenced by tzparse().

Here is the call graph for this function:

static const char* Rcpp::getqzname ( const char *  strp,
const int  delim 
) [static]

Definition at line 520 of file Date.cpp.

Referenced by tzparse().

static const char * Rcpp::getrule ( const char *  strp,
struct rule *const  rulep 
) [static]
static const char * Rcpp::getsecs ( const char *  strp,
long *  secsp 
) [static]

Definition at line 544 of file Date.cpp.

References DAYSPERWEEK, getnum(), HOURSPERDAY, MINSPERHOUR, SECSPERHOUR, and SECSPERMIN.

Referenced by getoffset(), and getrule().

Here is the call graph for this function:

static const char* Rcpp::getzname ( const char *  strp) [static]

Definition at line 511 of file Date.cpp.

References is_digit.

Referenced by tzparse().

static struct tm * Rcpp::gmtime_ ( const time_t *const  timep) [static, read]

Definition at line 1359 of file Date.cpp.

References gmtsub(), and tm.

Referenced by operator+(), and Rcpp::Date::update_tm().

Here is the call graph for this function:

static void Rcpp::gmtload ( struct state *const  sp) [static]

Definition at line 1343 of file Date.cpp.

References gmt, tzload(), and tzparse().

Referenced by gmtsub().

Here is the call graph for this function:

static struct tm* Rcpp::gmtsub ( const time_t *const  timep,
const long  offset,
struct tm *const  tmp 
) [static, read]

Definition at line 1348 of file Date.cpp.

References gmt_is_set, gmtload(), gmtptr, timesub(), and tm.

Referenced by gmtime_().

Here is the call graph for this function:

template<typename T >
SEXP Rcpp::grow ( const T &  head,
SEXP  tail 
)

grows a pairlist. First wrap the head into a SEXP, then grow the tail pairlist

Definition at line 60 of file grow.h.

References Rcpp::internal::grow__dispatch().

Referenced by Rcpp::DottedPair::insert(), Rcpp::DottedPair::push_back(), and Rcpp::DottedPair::push_front().

Here is the call graph for this function:

template<int RTYPE, bool NA, typename T >
sugar::Head<RTYPE,NA,T> Rcpp::head ( const VectorBase< RTYPE, NA, T > &  t,
int  n 
) [inline]

Definition at line 53 of file head.h.

References n.

template<int RTYPE, bool COND_NA, typename COND_T , bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T >
sugar::IfElse< RTYPE,COND_NA,COND_T,LHS_NA,LHS_T,RHS_NA,RHS_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs 
) [inline]
Examples:
Misc/ifelseLooped.r, and SugarPerformance/sugarBenchmarks.R.

Definition at line 342 of file ifelse.h.

Referenced by library().

template<int RTYPE, bool COND_NA, typename COND_T , bool RHS_NA, typename RHS_T >
sugar::IfElse_Primitive_Vector< RTYPE,COND_NA,COND_T,RHS_NA,RHS_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
typename traits::storage_type< RTYPE >::type  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs 
) [inline]

Definition at line 357 of file ifelse.h.

template<int RTYPE, bool COND_NA, typename COND_T , bool RHS_NA, typename RHS_T >
sugar::IfElse_Vector_Primitive< RTYPE,COND_NA,COND_T,RHS_NA,RHS_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  lhs,
typename traits::storage_type< RTYPE >::type  rhs 
) [inline]

Definition at line 371 of file ifelse.h.

template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive< REALSXP,COND_NA,COND_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
double  lhs,
double  rhs 
) [inline]

Definition at line 383 of file ifelse.h.

template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive< INTSXP,COND_NA,COND_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
int  lhs,
int  rhs 
) [inline]

Definition at line 395 of file ifelse.h.

template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive< CPLXSXP,COND_NA,COND_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
Rcomplex  lhs,
Rcomplex  rhs 
) [inline]

Definition at line 407 of file ifelse.h.

template<bool COND_NA, typename COND_T >
sugar::IfElse_Primitive_Primitive< LGLSXP,COND_NA,COND_T > Rcpp::ifelse ( const Rcpp::VectorBase< LGLSXP, COND_NA, COND_T > &  cond,
bool  lhs,
bool  rhs 
) [inline]

Definition at line 419 of file ifelse.h.

static int Rcpp::increment_overflow ( int *  number,
int  delta 
) [static]

Definition at line 475 of file Date.cpp.

Referenced by timesub().

bool Rcpp::int_to_bool ( int  x) [inline]

Definition at line 217 of file RcppCommon.h.

template<bool NA, typename T >
bool Rcpp::is_false ( const Rcpp::sugar::SingleLogicalResult< NA, T > &  x) [inline]

Definition at line 33 of file is.h.

References x.

template<int RTYPE, bool NA, typename T >
sugar::IsNa<RTYPE,NA,T> Rcpp::is_na ( const Rcpp::VectorBase< RTYPE, NA, T > &  t) [inline]

Definition at line 73 of file is_na.h.

Referenced by is_na().

template<bool NA, typename T >
bool Rcpp::is_na ( const Rcpp::sugar::SingleLogicalResult< NA, T > &  x) [inline]

Definition at line 38 of file is.h.

References is_na(), and x.

Here is the call graph for this function:

template<bool NA, typename T >
bool Rcpp::is_true ( const Rcpp::sugar::SingleLogicalResult< NA, T > &  x) [inline]

Definition at line 28 of file is.h.

References x.

template<int RTYPE, bool NA, typename T , typename Function >
sugar::Lapply<RTYPE,NA,T,Function> Rcpp::lapply ( const Rcpp::VectorBase< RTYPE, NA, T > &  t,
Function  fun 
) [inline]
Examples:
ConvolveBenchmarks/exampleRCode.r.

Definition at line 55 of file lapply.h.

static int Rcpp::leaps_thru_end_of ( const int  y) [static]

Definition at line 1215 of file Date.cpp.

Referenced by timesub().

template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::LowerTri<RTYPE,LHS_NA,LHS_T> Rcpp::lower_tri ( const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &  lhs,
bool  diag = false 
) [inline]

Definition at line 75 of file lower_tri.h.

References diag().

Here is the call graph for this function:

template<typename UnaryOperator >
StringTransformer<UnaryOperator> Rcpp::make_string_transformer ( const UnaryOperator &  fun)

Definition at line 47 of file StringTransformer.h.

template<int RTYPE, bool NA_1, typename T_1 , bool NA_2, typename T_2 , bool NA_3, typename T_3 , typename Function >
sugar::Mapply_3<RTYPE,NA_1,T_1,NA_2,T_2,NA_3,T_3,Function> Rcpp::mapply ( const Rcpp::VectorBase< RTYPE, NA_1, T_1 > &  t1,
const Rcpp::VectorBase< RTYPE, NA_2, T_2 > &  t2,
const Rcpp::VectorBase< RTYPE, NA_3, T_3 > &  t3,
Function  fun 
) [inline]

Definition at line 71 of file mapply_3.h.

template<int RTYPE, bool NA_1, typename T_1 , bool NA_2, typename T_2 , typename Function >
sugar::Mapply_2<RTYPE,NA_1,T_1,NA_2,T_2,Function> Rcpp::mapply ( const Rcpp::VectorBase< RTYPE, NA_1, T_1 > &  t1,
const Rcpp::VectorBase< RTYPE, NA_2, T_2 > &  t2,
Function  fun 
) [inline]

Definition at line 67 of file mapply_2.h.

template<bool NA, typename T >
sugar::Mean<REALSXP,NA,T> Rcpp::mean ( const VectorBase< REALSXP, NA, T > &  t) [inline]
Argument Rcpp::Named ( const std::string &  name) [inline]

Definition at line 40 of file Named.h.

Referenced by Rcpp::Module::invoke(), and test_named().

template<typename T >
traits::named_object<T> Rcpp::Named ( const std::string &  name,
const T &  o 
) [inline]

Definition at line 44 of file Named.h.

sugar::NonaPrimitive<double> Rcpp::noNA ( double  x) [inline]

Definition at line 78 of file nona.h.

References x.

template<int RTYPE, bool NA, typename VECTOR >
sugar::Nona<RTYPE,NA,VECTOR> Rcpp::noNA ( const Rcpp::VectorBase< RTYPE, NA, VECTOR > &  vec) [inline]
Examples:
SugarPerformance/sugarBenchmarks.R.

Definition at line 74 of file nona.h.

Referenced by convolve11cpp().

sugar::NonaPrimitive<int> Rcpp::noNA ( int  x) [inline]

Definition at line 81 of file nona.h.

References x.

bool Rcpp::operator!= ( const Date &  d1,
const Date &  d2 
)

Definition at line 160 of file Date.cpp.

References Rcpp::Date::m_d.

bool Rcpp::operator!= ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 91 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

Datetime Rcpp::operator+ ( const Datetime &  datetime,
double  offset 
)

Definition at line 76 of file Datetime.cpp.

References Rcpp::Datetime::m_dt, Rcpp::Datetime::m_tm, and Rcpp::Datetime::m_us.

Date Rcpp::operator+ ( const Date &  date,
int  offset 
)

Definition at line 145 of file Date.cpp.

References gmtime_(), Rcpp::Date::m_d, and Rcpp::Date::m_tm.

Here is the call graph for this function:

int Rcpp::operator- ( const Date &  d1,
const Date &  d2 
)

Definition at line 154 of file Date.cpp.

References Rcpp::Date::m_d.

double Rcpp::operator- ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 85 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

bool Rcpp::operator< ( const Date &  d1,
const Date &  d2 
)

Definition at line 155 of file Date.cpp.

References Rcpp::Date::m_d.

bool Rcpp::operator< ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 86 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

bool Rcpp::operator<= ( const Date &  d1,
const Date &  d2 
)

Definition at line 159 of file Date.cpp.

References Rcpp::Date::m_d.

bool Rcpp::operator<= ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 90 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

bool Rcpp::operator== ( const Date &  d1,
const Date &  d2 
)

Definition at line 157 of file Date.cpp.

References Rcpp::Date::m_d.

bool Rcpp::operator== ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 88 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

bool Rcpp::operator> ( const Date &  d1,
const Date &  d2 
)

Definition at line 156 of file Date.cpp.

References Rcpp::Date::m_d.

bool Rcpp::operator> ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 87 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

bool Rcpp::operator>= ( const Date &  d1,
const Date &  d2 
)

Definition at line 158 of file Date.cpp.

References Rcpp::Date::m_d.

bool Rcpp::operator>= ( const Datetime &  d1,
const Datetime &  d2 
)

Definition at line 89 of file Datetime.cpp.

References Rcpp::Datetime::m_dt.

template<int RTYPE, bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T , typename Function >
sugar::Outer<RTYPE,LHS_NA,LHS_T,RHS_NA,RHS_T,Function> Rcpp::outer ( const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs,
Function  fun 
) [inline]
Examples:
RcppGibbs/RcppGibbs.R.

Definition at line 80 of file outer.h.

SEXP Rcpp::pairlist ( ) [inline]

Definition at line 30 of file grow.h.

References R_NilValue.

Referenced by Rcpp::DottedPair::push_back(), and Rcpp::DottedPair::replace().

template<bool NA, typename T >
stats::P1<REALSXP,NA,T> Rcpp::pexp ( const Rcpp::VectorBase< REALSXP, NA, T > &  x,
double  shape,
bool  lower = true,
bool  log = false 
) [inline]

Definition at line 85 of file exp.h.

References x.

template<int RTYPE, bool RHS_NA, typename RHS_T >
sugar::Pmax_Vector_Primitive<RTYPE,RHS_NA,RHS_T> Rcpp::pmax ( typename Rcpp::traits::storage_type< RTYPE >::type  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs 
) [inline]

Definition at line 195 of file pmax.h.

template<int RTYPE, bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T >
sugar::Pmax_Vector_Vector<RTYPE,LHS_NA,LHS_T,RHS_NA,RHS_T> Rcpp::pmax ( const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs 
) [inline]

Definition at line 170 of file pmax.h.

template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Pmax_Vector_Primitive<RTYPE,LHS_NA,LHS_T> Rcpp::pmax ( const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &  lhs,
typename Rcpp::traits::storage_type< RTYPE >::type  rhs 
) [inline]

Definition at line 182 of file pmax.h.

template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Pmin_Vector_Primitive<RTYPE,LHS_NA,LHS_T> Rcpp::pmin ( const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &  lhs,
typename Rcpp::traits::storage_type< RTYPE >::type  rhs 
) [inline]

Definition at line 182 of file pmin.h.

template<int RTYPE, bool LHS_NA, typename LHS_T , bool RHS_NA, typename RHS_T >
sugar::Pmin_Vector_Vector<RTYPE,LHS_NA,LHS_T,RHS_NA,RHS_T> Rcpp::pmin ( const Rcpp::VectorBase< RTYPE, LHS_NA, LHS_T > &  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs 
) [inline]

Definition at line 170 of file pmin.h.

template<int RTYPE, bool RHS_NA, typename RHS_T >
sugar::Pmin_Vector_Primitive<RTYPE,RHS_NA,RHS_T> Rcpp::pmin ( typename Rcpp::traits::storage_type< RTYPE >::type  lhs,
const Rcpp::VectorBase< RTYPE, RHS_NA, RHS_T > &  rhs 
) [inline]

Definition at line 195 of file pmin.h.

template<bool NA, typename T , typename EXPONENT_TYPE >
sugar::Pow<INTSXP,NA,T,EXPONENT_TYPE> Rcpp::pow ( const VectorBase< INTSXP, NA, T > &  t,
EXPONENT_TYPE  exponent 
) [inline]
template<bool NA, typename T , typename EXPONENT_TYPE >
sugar::Pow<REALSXP,NA,T,EXPONENT_TYPE> Rcpp::pow ( const VectorBase< REALSXP, NA, T > &  t,
EXPONENT_TYPE  exponent 
) [inline]

Definition at line 86 of file pow.h.

template<bool NA, typename T >
stats::Q1<REALSXP,NA,T> Rcpp::qexp ( const Rcpp::VectorBase< REALSXP, NA, T > &  x,
double  shape,
bool  lower = true,
bool  log = false 
) [inline]

Definition at line 90 of file exp.h.

References x.

template<int TARGET>
SEXP Rcpp::r_cast ( SEXP  x)

Definition at line 50 of file r_cast.h.

References Rcpp::internal::r_true_cast(), and x.

Referenced by Matrix< RTYPE >::Matrix(), and internal::vector_from_string().

Here is the call graph for this function:

NumericVector Rcpp::rbeta ( int  n,
double  a,
double  b 
) [inline]

Definition at line 30 of file rbeta.h.

NumericVector Rcpp::rbinom ( int  n,
double  nin,
double  pp 
) [inline]

Definition at line 30 of file rbinom.h.

bool Rcpp::Rboolean_to_bool ( int  x) [inline]

Definition at line 216 of file RcppCommon.h.

bool Rcpp::Rbyte_to_bool ( Rbyte  x) [inline]

Definition at line 219 of file RcppCommon.h.

NumericVector Rcpp::rcauchy ( int  n,
double  location,
double  scale 
) [inline]

Definition at line 74 of file rcauchy.h.

NumericVector Rcpp::rcauchy ( int  n,
double  location 
) [inline]

Definition at line 87 of file rcauchy.h.

NumericVector Rcpp::rcauchy ( int  n) [inline]

Definition at line 100 of file rcauchy.h.

NumericVector Rcpp::rchisq ( int  n,
double  df 
) [inline]

Definition at line 45 of file rchisq.h.

template<int RTYPE, bool NA, typename T >
sugar::Rep<RTYPE,NA,T> Rcpp::rep ( const VectorBase< RTYPE, NA, T > &  t,
int  n 
) [inline]
Examples:
FastLM/benchmark.r, FastLM/fastLMviaArmadillo.r, and FastLM/fastLMviaGSL.r.

Definition at line 69 of file rep.h.

References n.

sugar::Rep_Single<double> Rcpp::rep ( const double &  x,
int  n 
) [inline]

Definition at line 73 of file rep.h.

References n, and x.

sugar::Rep_Single<Rbyte> Rcpp::rep ( const Rbyte &  x,
int  n 
) [inline]

Definition at line 79 of file rep.h.

References n, and x.

sugar::Rep_Single<Rcomplex> Rcpp::rep ( const Rcomplex &  x,
int  n 
) [inline]

Definition at line 82 of file rep.h.

References n, and x.

sugar::Rep_Single<bool> Rcpp::rep ( const bool &  x,
int  n 
) [inline]

Definition at line 85 of file rep.h.

References n, and x.

sugar::Rep_Single<int> Rcpp::rep ( const int &  x,
int  n 
) [inline]

Definition at line 76 of file rep.h.

References n, and x.

template<int RTYPE, bool NA, typename T >
sugar::Rep_each<RTYPE,NA,T> Rcpp::rep_each ( const VectorBase< RTYPE, NA, T > &  t,
int  times 
) [inline]

Definition at line 51 of file rep_each.h.

template<int RTYPE, bool NA, typename T >
sugar::Rep_len<RTYPE,NA,T> Rcpp::rep_len ( const VectorBase< RTYPE, NA, T > &  t,
int  len 
) [inline]

Definition at line 50 of file rep_len.h.

template<int RTYPE, bool NA, typename T >
sugar::Rev<RTYPE,NA,T> Rcpp::rev ( const VectorBase< RTYPE, NA, T > &  t) [inline]

Definition at line 50 of file rev.h.

NumericVector Rcpp::rexp ( int  n) [inline]

Definition at line 57 of file rexp.h.

NumericVector Rcpp::rexp ( int  n,
double  rate 
) [inline]

Definition at line 46 of file rexp.h.

NumericVector Rcpp::rf ( int  n,
double  n1,
double  n2 
) [inline]

Definition at line 80 of file rf.h.

NumericVector Rcpp::rgamma ( int  n,
double  a,
double  scale 
) [inline]
Examples:
RcppGibbs/RcppGibbs.R.

Definition at line 30 of file rgamma.h.

NumericVector Rcpp::rgeom ( int  n,
double  p 
) [inline]

Definition at line 45 of file rgeom.h.

NumericVector Rcpp::rhyper ( int  n,
double  nn1,
double  nn2,
double  kk 
) [inline]

Definition at line 30 of file rhyper.h.

NumericVector Rcpp::rlnorm ( int  n,
double  meanlog,
double  sdlog 
) [inline]

Definition at line 73 of file rlnorm.h.

NumericVector Rcpp::rlnorm ( int  n,
double  meanlog 
) [inline]

Definition at line 87 of file rlnorm.h.

NumericVector Rcpp::rlnorm ( int  n) [inline]

Definition at line 101 of file rlnorm.h.

NumericVector Rcpp::rlogis ( int  n,
double  location,
double  scale 
) [inline]

Definition at line 76 of file rlogis.h.

NumericVector Rcpp::rlogis ( int  n,
double  location 
) [inline]

Definition at line 89 of file rlogis.h.

NumericVector Rcpp::rlogis ( int  n) [inline]

Definition at line 102 of file rlogis.h.

NumericVector Rcpp::rnbinom ( int  n,
double  siz,
double  prob 
) [inline]

Definition at line 47 of file rnbinom.h.

NumericVector Rcpp::rnbinom_mu ( int  n,
double  siz,
double  mu 
) [inline]

Definition at line 47 of file rnbinom_mu.h.

NumericVector Rcpp::rnchisq ( int  n,
double  df,
double  lambda 
) [inline]

Definition at line 55 of file rnchisq.h.

NumericVector Rcpp::rnchisq ( int  n,
double  df 
) [inline]

Definition at line 68 of file rnchisq.h.

NumericVector Rcpp::rnorm ( int  n,
double  mean 
) [inline]

Definition at line 102 of file rnorm.h.

NumericVector Rcpp::rnorm ( int  n) [inline]

Definition at line 121 of file rnorm.h.

NumericVector Rcpp::rnorm ( int  n,
double  mean,
double  sd 
) [inline]
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::Row<RTYPE,LHS_NA,LHS_T> Rcpp::row ( const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &  lhs) [inline]

Definition at line 55 of file row.h.

NumericVector Rcpp::rpois ( int  n,
double  mu 
) [inline]

Definition at line 30 of file rpois.h.

NumericVector Rcpp::rsignrank ( int  n,
double  nn 
) [inline]

Definition at line 30 of file rsignrank.h.

NumericVector Rcpp::rt ( int  n,
double  df 
) [inline]

Definition at line 52 of file rt.h.

NumericVector Rcpp::runif ( int  n,
double  min,
double  max 
) [inline]
Examples:
SugarPerformance/sugarBenchmarks.R.

Definition at line 51 of file runif.h.

NumericVector Rcpp::runif ( int  n,
double  min 
) [inline]

Definition at line 60 of file runif.h.

NumericVector Rcpp::runif ( int  n) [inline]

Definition at line 69 of file runif.h.

NumericVector Rcpp::rweibull ( int  n,
double  shape,
double  scale 
) [inline]

Definition at line 47 of file rweibull.h.

NumericVector Rcpp::rwilcox ( int  n,
double  mm,
double  nn 
) [inline]

Definition at line 30 of file rwilcox.h.

template<int RTYPE, bool NA, typename T , typename Function >
sugar::Sapply< RTYPE,NA,T,Function, traits::same_type< typename ::Rcpp::traits::result_of<Function>::type , typename Rcpp::traits::storage_type< traits::r_sexptype_traits< typename ::Rcpp::traits::result_of<Function>::type >::rtype >::type >::value> Rcpp::sapply ( const Rcpp::VectorBase< RTYPE, NA, T > &  t,
Function  fun 
) [inline]
Examples:
SugarPerformance/sugarBenchmarks.R.

Definition at line 103 of file sapply.h.

template<bool NA, typename T >
sugar::Sd<REALSXP,NA,T> Rcpp::sd ( const VectorBase< REALSXP, NA, T > &  t) [inline]

Definition at line 46 of file sd.h.

Range Rcpp::seq ( int  start,
int  end 
) [inline]
Examples:
Misc/fibonacci.r, and RcppGibbs/RcppGibbs.R.

Definition at line 52 of file seq_along.h.

Referenced by require().

template<int RTYPE, bool NA, typename T >
sugar::SeqLen Rcpp::seq_along ( const Rcpp::VectorBase< RTYPE, NA, T > &  t) [inline]
Examples:
ConvolveBenchmarks/exampleRCode.r.

Definition at line 44 of file seq_along.h.

References Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

Here is the call graph for this function:

sugar::SeqLen Rcpp::seq_len ( const size_t &  n) [inline]

Definition at line 48 of file seq_along.h.

template<bool NA, typename T >
sugar::Sign<REALSXP,NA,T> Rcpp::sign ( const VectorBase< REALSXP, NA, T > &  t) [inline]

Definition at line 72 of file sign.h.

template<bool NA, typename T >
sugar::Sign<INTSXP,NA,T> Rcpp::sign ( const VectorBase< INTSXP, NA, T > &  t) [inline]

Definition at line 67 of file sign.h.

Referenced by Rcpp::Module::get_function_ptr().

template<int MAX_SIZE>
std::string Rcpp::sprintf ( const char *  format,
  ... 
)
template<typename T >
void Rcpp::standard_delete_finalizer ( T *  obj)

Definition at line 38 of file XPtr.h.

template<bool NA, typename T >
sugar::Sum<INTSXP,NA,T> Rcpp::sum ( const VectorBase< INTSXP, NA, T > &  t) [inline]
template<bool NA, typename T >
sugar::Sum<REALSXP,NA,T> Rcpp::sum ( const VectorBase< REALSXP, NA, T > &  t) [inline]

Definition at line 103 of file sum.h.

template<bool NA, typename T >
sugar::Sum<LGLSXP,NA,T> Rcpp::sum ( const VectorBase< LGLSXP, NA, T > &  t) [inline]

Definition at line 108 of file sum.h.

template<int RTYPE, bool NA, typename T >
sugar::Tail<RTYPE,NA,T> Rcpp::tail ( const VectorBase< RTYPE, NA, T > &  t,
int  n 
) [inline]

Definition at line 56 of file tail.h.

References n.

Referenced by Rcpp::DottedPair::insert(), and Rcpp::DottedPair::push_back().

static struct tm * Rcpp::timesub ( const time_t *const  timep,
const long  offset,
const struct state *const  sp,
struct tm *const  tmp 
) [static, read]
static std::string Rcpp::toString ( const int  i) [static]

Definition at line 37 of file exceptions.h.

References i.

static time_t Rcpp::transtime ( const time_t  janfirst,
const int  year,
const struct rule *const  rulep,
const long  offset 
) [static]
static int Rcpp::typesequiv ( const struct state *  sp,
int  a,
int  b 
) [static]
template<int RTYPE, bool LHS_NA, typename LHS_T >
sugar::UpperTri<RTYPE,LHS_NA,LHS_T> Rcpp::upper_tri ( const Rcpp::MatrixBase< RTYPE, LHS_NA, LHS_T > &  lhs,
bool  diag = false 
) [inline]

Definition at line 70 of file upper_tri.h.

References diag().

Here is the call graph for this function:

template<bool NA, typename T >
sugar::Var<REALSXP,NA,T> Rcpp::var ( const VectorBase< REALSXP, NA, T > &  t) [inline]

Definition at line 50 of file var.h.

Referenced by Rcpp::sugar::Sd< RTYPE, NA, T >::get().

template<>
SEXP Rcpp::wrap ( const Date &  date)
Examples:
OpenMP/OpenMPandInline.r, and RcppInline/RObject.r.

Definition at line 162 of file Date.cpp.

References Rcpp::Date::getDate(), and Rcpp::internal::new_date_object().

Referenced by as_character_externalptr(), Vector< RTYPE >::assign(), Rcpp::Environment::assign(), Vector< RTYPE >::assign_object(), internal::generic_element_converter< RTYPE >::get(), CppProperty_GetPointer_SetPointer< Class, PROP >::get(), CppProperty_GetPointer_SetMethod< Class, PROP >::get(), CppProperty_GetConstMethod_SetPointer< Class, PROP >::get(), CppProperty_GetMethod_SetPointer< Class, PROP >::get(), CppProperty_GetConstMethod_SetMethod< Class, PROP >::get(), CppProperty_GetMethod_SetMethod< Class, PROP >::get(), CppProperty_GetPointerMethod< Class, PROP >::get(), CppProperty_GetConstMethod< Class, PROP >::get(), CppProperty_GetMethod< Class, PROP >::get(), CppProperty_Getter< PROP >::get(), CppProperty_Getter_Setter< PROP >::get(), Rcpp::internal::grow__dispatch(), Rcpp::Dimension::operator SEXP(), internal::simple_name_proxy< RTYPE >::operator SEXP(), Rcpp::DateVector::operator SEXP(), Rcpp::DatetimeVector::operator SEXP(), Rcpp::XPtr< T, Finalizer >::ProtectedProxy::operator=(), Rcpp::XPtr< T, Finalizer >::TagProxy::operator=(), Vector< RTYPE >::NamesProxy::operator=(), internal::generic_proxy< RTYPE >::operator=(), internal::generic_name_proxy< RTYPE >::operator=(), Rcpp::RObject::SlotProxy::operator=(), Rcpp::RObject::AttributeProxy::operator=(), Rcpp::Reference::FieldProxy::operator=(), Rcpp::DottedPair::Proxy::operator=(), Rcpp::sugar::Lapply< RTYPE, NA, T, Function >::operator[](), and PiLeibniz().

Here is the call graph for this function:

template<>
SEXP Rcpp::wrap ( const Datetime &  date)

Definition at line 93 of file Datetime.cpp.

References Rcpp::Datetime::getFractionalTimestamp(), and Rcpp::internal::new_posixt_object().

Here is the call graph for this function:

template<>
SEXP Rcpp::wrap< Rcpp::Date > ( const Rcpp::Date date)
template<>
SEXP Rcpp::wrap< Rcpp::Datetime > ( const Rcpp::Datetime dt)
template<>
SEXP Rcpp::wrap_extra_steps< Rcpp::Date > ( SEXP  x) [inline]

Definition at line 89 of file Date.h.

References x.

template<>
SEXP Rcpp::wrap_extra_steps< Rcpp::Datetime > ( SEXP  x) [inline]

Definition at line 85 of file Datetime.h.

References Rcpp::internal::getPosixClasses(), and x.

Here is the call graph for this function:


Variable Documentation

Definition at line 64 of file Named.h.

Definition at line 255 of file Module.cpp.

Referenced by getCurrentScope(), R_init_Rcpp(), and setCurrentScope().

const char Rcpp::gmt[] = "GMT" [static]

Definition at line 384 of file Date.cpp.

Referenced by gmtload().

int Rcpp::gmt_is_set [static]

Definition at line 455 of file Date.cpp.

Referenced by gmtsub().

struct state Rcpp::gmtmem [static]

Definition at line 458 of file Date.cpp.

const int Rcpp::mon_lengths[2][MONSPERYEAR] [static]
Initial value:
 {
        { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
        { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    }

Definition at line 446 of file Date.cpp.

Referenced by timesub(), and transtime().

Definition at line 28 of file Rostream.cpp.

struct tm Rcpp::tm [static]

Definition at line 462 of file Date.cpp.

Referenced by gmtime_(), and gmtsub().

const int Rcpp::year_lengths[2] [static]
Initial value:

Definition at line 451 of file Date.cpp.

Referenced by timesub(), and tzparse().

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines