Hi, <br><br>I would like to do something like this:<br><br>src.cube &lt;- &quot;<br>    arma::cube a = as&lt;arma::cube&gt;(aR);<br>    return wrap(a);<br>    &quot;<br>fx &lt;- cxxfunction(signature(aR=&quot;array&quot;), src.cube, plugin=&quot;RcppArmadillo&quot;)<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>