Re: [Rcpp-devel] Fwd: How can I avoid calls to coerceToReal

2013-04-30 Thread Dirk Eddelbuettel
On 30 April 2013 at 11:19, Pratibha Rana wrote: | | | Hi, | | MY application is performing really slow due to unnecessary calls to | coerceToReal from this line NumericVector ocol = df[j]. Here is a sample | of what I am doing. Is there a way to avoid the unnecessary overhead? | Please note tha

[Rcpp-devel] Fwd: How can I avoid calls to coerceToReal

2013-04-30 Thread Pratibha Rana
Hi, MY application is performing really slow due to unnecessary calls to coerceToReal from this line NumericVector ocol = df[j]. Here is a sample of what I am doing. Is there a way to avoid the unnecessary overhead? Please note that the data in df is float data. void writeDataToPar