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
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
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
;
> 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
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
sourceCpp('arma_example.cpp'); arma_example();
--
/*
* Contact: Steven Varga
* steven.va...@gmail.com
* 2013 Toronto, On Canada
*/
#include
#include
using namespace std;
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
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
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