Rcpp Version 0.9.10
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.

Referenced by Rcpp::tzload().

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

Referenced by Rcpp::internal::as(), Vector< RTYPE >::assign(), capabilities(), convolve2(), convolve7(), Vector< RTYPE >::erase_range__impl(), Vector< RTYPE >::erase_single__impl(), Matrix< RTYPE >::fill_diag__dispatch(), Vector< RTYPE >::fill_dispatch(), Rcpp::Function::Function(), Rcpp::Reference::FieldProxy::get(), Rcpp::traits::MatrixExporter< T, value_type >::get(), Rcpp::internal::getPosixClasses(), Rcpp::internal::SEXPstack::grow(), Rcpp::internal::grow__dispatch(), init_Rcpp_cache(), Rcpp::DottedPair::insert(), Vector< RTYPE >::insert__impl(), Rcpp::internal::new_date_object(), Rcpp::internal::new_posixt_object(), 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_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::S4::S4(), Rcpp::RObject::SlotProxy::set(), Rcpp::Reference::FieldProxy::set(), Vector< RTYPE >::NamesProxy::set(), internal::generic_proxy< RTYPE >::swap(), internal::string_proxy< RTYPE >::swap(), and internal::vector_from_string_expr().

PROTECT ( b  = AS_NUMERIC(b))
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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines