[Rcpp-devel] Fwd: RcppArmadillo matrix with writeable auxiliary memory

2013-11-27 Thread Steven Varga
e an arma::mat pointer. Otherwise if memory stays the >> same but should be reusable in R, Dirk's suggestion initialising memory in >> R and passing it to C++ is the most practicable way and very fast. >> >> Best >> Simon >> Gesendet über den BlackBerry® S

Re: [Rcpp-devel] RcppArmadillo matrix with writeable auxiliary memory

2013-11-26 Thread Steven Varga
varying >> memory, you could use an arma::mat pointer. Otherwise if memory stays the >> same but should be reusable in R, Dirk's suggestion initialising memory in >> R and passing it to C++ is the most practicable way and very fast. >> >> Best >> Simon &g

Re: [Rcpp-devel] RcppArmadillo matrix with writeable auxiliary memory

2013-11-26 Thread Steven Varga
gt; R and passing it to C++ is the most practicable way and very fast. > > Best > Simon > Gesendet über den BlackBerry® Service von E-Plus. > > -Original Message- > From: Steven Varga > Sender: rcpp-devel-bounces@lists.r-forge.r-project.orgDate: Mon, 25 Nov > 2013

Re: [Rcpp-devel] RcppArmadillo matrix with writeable auxiliary memory

2013-11-26 Thread Steven Varga
; > Hi Steven > > On 25 November 2013 at 23:23, Steven Varga wrote: > | Thank you Dirk for the quick response; > | and for noting the memory handling. > | > | I am aware of it and there are other ways of obtaining a pointer to some > memory > | location. I used malloc/fre

Re: [Rcpp-devel] RcppArmadillo matrix with writeable auxiliary memory

2013-11-25 Thread Steven Varga
Thank you Dirk for the quick response; and for noting the memory handling. I am aware of it and there are other ways of obtaining a pointer to some memory location. I used malloc/free to put focus on arma::mat copying data during assignment and/or not able to use reference as class member. Leaving

[Rcpp-devel] RcppArmadillo matrix with writeable auxiliary memory

2013-11-25 Thread Steven Varga
sourceCpp('arma_example.cpp'); arma_example(); -- /* * Contact: Steven Varga * steven.va...@gmail.com * 2013 Toronto, On Canada */ #include #include using namespace std;

Re: [Rcpp-devel] reference classes in C++ :is it possible?

2013-03-01 Thread Steven Varga
ess/direct data flow ] > [ set of implementations to choose from ] steve On Fri, Mar 1, 2013 at 6:35 PM, Dirk Eddelbuettel wrote: > > Hi Steven, > > On 1 March 2013 at 14:34, Steven Varga wrote: > | > | Hello > | > | First thanks Dirk for th

Re: [Rcpp-devel] reference classes in C++ :is it possible?

2013-03-01 Thread Steven Varga
tion(){ some_field <<- "field value set" callSuper()# call constructor set_reference( .self ) # pass 'this' } ),saveAs="genWorld" ) On Thu, Feb 28, 2013 at 8:15 AM, Dirk Eddelbuette

[Rcpp-devel] reference classes in C++ :is it possible?

2013-02-28 Thread Steven Varga
Hello, I am trying to create an abstract pattern using R reference objects in C++; anyone knows if this is possible/not possible? Where to look? Rcpp:::Function() is quite useful to "extend" or create "callbacks" for c++ classes/methods; I am looking for a mechanism similar to Rcpp::Function wh