[Rcpp-devel] round function not found?

Hideyoshi Maeda hideyoshi.maeda at gmail.com
Tue Mar 4 12:30:07 CET 2014


Hi Rcpp devel list

I am trying to run the following code but for some reason it says that there is "no matching function for call to ‘round’"

#include <Rcpp.h>
using namespace Rcpp;

// [[Rcpp::export]]
Rcpp::IntegerVector h1(int samp, int wind){
  return round(runif(samp*3)*wind); 
}

I thought round was part of Rcpp sugar? is it not?

thanks




More information about the Rcpp-devel mailing list