On 11 March 2012 at 01:33, Kaveh Vakili wrote:
|
| >Don't take this the wrong way, but we are not here to debug or rewrite your
| >code for you.
|
|
| Thanks Dirk, but i'm not asking for this either.
|
| The code worksonly it doesn't time the same.
| My question is: is it normal -- is th
>Don't take this the wrong way, but we are not here to debug or rewrite your
>code for you.
Thanks Dirk, but i'm not asking for this either.
The code worksonly it doesn't time the same.
My question is: is it normal -- is there an
overhead in using rcpp and how large is it,
typically?
On 11 March 2012 at 01:05, Kaveh Vakili wrote:
| Hi Steve,
|
| Timing:
|
| i use:
|
| int start_s=clock();
| ..
| ..
| int stop_s=clock();
| cout << "time: " << (stop_s-start_s)/double(CLOCKS_PER_SEC)*1000 << endl;
Don't take this the wrong way, but we are not here to debug or rewrite your
cod
Hi Steve,
Timing:
i use:
int start_s=clock();
..
..
int stop_s=clock();
cout << "time: " << (stop_s-start_s)/double(CLOCKS_PER_SEC)*1000 << endl;
Function:
Whatever it is, it's coming from these three functions (when i uncoment them,
the rest of the code runs in comparable speed).
using name
Hi Kaveh,
On Sat, Mar 10, 2012 at 5:58 PM, Kaveh Vakili wrote:
> Hi all,
>
> the same code when timed in cpp (i.e. without any interfacing with R)
> runs about 2 times faster than when called from R and timed from R's
> system.time(). In this type of overhead normal or is it a sign i'm doing
>
Hi all,
the same code when timed in cpp (i.e. without any interfacing with R)
runs about 2 times faster than when called from R and timed from R's
system.time(). In this type of overhead normal or is it a sign i'm doing
something not optimally?
Best,
__
Hi all,
i have a compiling cpp code that i want
to use in R.
NumericMatrix Rcpp_x(R_x);
Map x(Rcpp_x.begin(),n,p);
is there a way, with rcpp, to map R_x to a MatrixXf object?
Best,
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-projec
On 8 March 2012 at 10:55, Pratibha Rana wrote:
| Hi,
|
| I'm trying to do something like this :
|
| void RLogger(const char *format,...)
| {
| va_list ap;
| va_start(ap,format);
| mylogger.write("R Log:",format, ap);
| va_end(ap);
|
| }
|
| int main(int argc, char *argv[])
| {
| RIn