gar::Vectorized_INTSXP<__SYMBOL__,NA,T>( t ) ;
\
}
\
}
Thanks!
Søren
|-Original Message-
|From: Dirk Eddelbuettel [mailto:e...@debian.org]
|Sent: 4. januar 2015 21:51
|To: Søren Højsgaard
|Cc: Dirk Eddelbuettel; rcpp-devel@lists.r-forge.r-project.org
|Subject: RE: [Rcpp-devel] Rcpp sugar prese
On 4 January 2015 at 19:58, Søren Højsgaard wrote:
| Thanks! Probably a stupid question, but where are these functions defined? In
math.h I see
|
| VECTORIZED_MATH_1(log,::log)
|
| but - where to look for the implementation?
You mean where VECTORIZED_MATH is defined?
Let me introduce you to
: Søren Højsgaard
|Cc: rcpp-devel@lists.r-forge.r-project.org
|Subject: Re: [Rcpp-devel] Rcpp sugar preserving attributes
|
|
|Søren,
|
|Happy New Year!
|
|On 4 January 2015 at 09:53, Søren Højsgaard wrote:
|| Dear all,
||
|| I have noticed an issue with preserving attributes (or rather
|attributes that
Søren,
Happy New Year!
On 4 January 2015 at 09:53, Søren Højsgaard wrote:
| Dear all,
|
| I have noticed an issue with preserving attributes (or rather attributes that
are not preserved). Consider this code where I take the log of an array:
Quite possible.
Attributes are just attached to ob
Dear all,
I have noticed an issue with preserving attributes (or rather attributes that
are not preserved). Consider this code where I take the log of an array:
#include
using namespace Rcpp;
//[[Rcpp::export]]
NumericVector fun1(NumericVector x){
return log( x );
}
//[[Rcpp::export]]
Numer