Skip to content
Prev 1013 / 10988 Next

[Rcpp-devel] Multiplication of ComplexVector?

Le 17/08/10 23:09, baptiste auguie a ?crit :
Rcpp runs the show, so as long as your Rcpp object lives longer than the 
armadillo object, you are fine.

armadillo has no clue it gets the data from Rcpp and will not interfere, 
it will not attempt to delete the data or whatever, just access it.

The way RcppArmadillo is usually used : "get SEXP, convert to Rcpp data 
(e.g. NumericVector), create a armadillo object, do some stuff with the 
armadillo object, convert the result back to Rcpp somehow and return 
something to R", this should be ok.

Romain

Thread (24 messages)