Armadillo equivalent of Matlab permute?
<p>I have a <code>arma::cube mycube(5,10,15);</code> and I want to permute its dimensions, as one would do in matlab:</p>

<pre><code>mycube = ones(5,10,15);
mycube = permute(mycube,[3 1 2]);
size(mycube) % returns (15 5 10)
</code></pre>

<p>Is there a way to do that?<br>
Would it be too inefficient?  </p>

<p>I actually want to do a 3D FFT, so I thought of permuting the first and third dimensions to be able to use <code>arma::fft</code>, and then permuting back.</p>