Hi, <br><br>I would like to do something like this:<br><br>src.cube <- "<br> arma::cube a = as<arma::cube>(aR);<br> return wrap(a);<br> "<br>fx <- cxxfunction(signature(aR="array"), src.cube, plugin="RcppArmadillo")<br>
fx(array(1:27, c(3,3,3)))<br><br><br>But it fails. Can someone suggest a good alternative? I tried to create the cube on the C++ side and use .fill() to fill it with a NumericVector, but this did not work either.<br><br>Thanks,<br>
Richard<br>