Rcpp Version 0.10.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
RcppSimpleExample.r File Reference

Go to the source code of this file.

Functions

 suppressMessages (library(Rcpp)) suppressMessages(library(inline)) foo<- 'int i
 PROTECT (a=AS_NUMERIC(a))
 PROTECT (b=AS_NUMERIC(b))
 PROTECT (ab=NEW_NUMERIC(nab))
 for (i=0;i< nab;i++) xab[i]=0.0

Variables

 j
 na = LENGTH(a)
 nb = LENGTH(b)
 nab = na + nb - 1
double * xa = NUMERIC_POINTER(a)
double * xb = NUMERIC_POINTER(b)
double * xab = NUMERIC_POINTER(ab)
SEXP ab

Function Documentation

for ( )
pure virtual

Definition at line 10 of file OpenMPandInline.r.

References i, and x.

PROTECT ( a  = AS_NUMERIC(a))
Examples:
ConvolveBenchmarks/convolve2_c.c, ConvolveBenchmarks/convolve7_c.c, and RcppInline/RcppSimpleExample.r.

Referenced by Vector< INTSXP >::assign(), convolve2(), convolve7(), Vector< RTYPE >::erase_range__impl(), Vector< RTYPE >::erase_single__impl(), exception_to_r_condition(), Matrix< RTYPE >::fill_diag__dispatch(), Vector< INTSXP >::fill_dispatch(), forward_exception_to_r(), Rcpp::Function::Function(), Rcpp::Reference::FieldProxy::get(), Rcpp::Reference::ConstFieldProxy::get(), get_cache(), get_exception_classes(), get_last_call(), get_rcpp_cache(), Rcpp::internal::getPosixClasses(), Rcpp::grow(), init_Rcpp_cache(), Rcpp::DottedPair::insert(), Vector< RTYPE >::insert__impl(), make_condition(), Rcpp::internal::new_date_object(), Rcpp::internal::new_posixt_object(), Rcpp::internal::primitive_as(), Rcpp::DottedPair::push_back(), Vector< RTYPE >::push_back__impl(), Vector< RTYPE >::push_back_name__impl(), Vector< RTYPE >::push_front__impl(), Vector< RTYPE >::push_front_name__impl(), Rcpp::internal::r_true_cast< LISTSXP >(), Rcpp::internal::r_true_cast< STRSXP >(), rcpp_capabilities(), Rcpp_lang10(), Rcpp_lang11(), Rcpp_lang12(), Rcpp_lang13(), Rcpp_lang14(), Rcpp_lang15(), Rcpp_lang16(), Rcpp_lang17(), Rcpp_lang18(), Rcpp_lang19(), Rcpp_lang2(), Rcpp_lang20(), Rcpp_lang3(), Rcpp_lang4(), Rcpp_lang5(), Rcpp_lang6(), Rcpp_lang7(), Rcpp_lang8(), Rcpp_lang9(), Rcpp_lcons(), Rcpp_list10(), Rcpp_list11(), Rcpp_list12(), Rcpp_list13(), Rcpp_list14(), Rcpp_list15(), Rcpp_list16(), Rcpp_list17(), Rcpp_list18(), Rcpp_list19(), Rcpp_list2(), Rcpp_list20(), Rcpp_list3(), Rcpp_list4(), Rcpp_list5(), Rcpp_list6(), Rcpp_list7(), Rcpp_list8(), Rcpp_list9(), Rcpp::Reference::Reference(), Rcpp::Environment::remove(), Rcpp::DottedPair::replace(), Rcpp::Evaluator::run(), Rcpp::Reference::FieldProxy::set(), Rcpp::RObject::SlotProxy::set(), Vector< RTYPE >::NamesProxy::set(), string_to_try_error(), internal::string_proxy< RTYPE >::swap(), internal::generic_proxy< RTYPE >::swap(), internal::vector_from_string_expr(), Rcpp::wrap< Rcpp::String >(), and Rcpp::XPtr< T, Finalizer >::XPtr().

PROTECT ( b  = AS_NUMERIC(b))
PROTECT ( ab  = NEW_NUMERIC(nab))
suppressMessages ( library(Rcpp)  )

Definition at line 3 of file newApiExample.r.

References a, x, and y.

Variable Documentation

j

Definition at line 9 of file RcppSimpleExample.r.

na = LENGTH(a)

Definition at line 9 of file RcppSimpleExample.r.

nab = na + nb - 1

Definition at line 9 of file RcppSimpleExample.r.

nb = LENGTH(b)

Definition at line 9 of file RcppSimpleExample.r.

xab = NUMERIC_POINTER(ab)

Definition at line 10 of file RcppSimpleExample.r.