<p>In <a href="https://github.com/mlpack/mlpack/pull/408#discussion_r25127656">src/mlpack/tests/arma_extend_test.cpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +  mat Y = X;
&gt; +
&gt; +  BOOST_REQUIRE(arma::inplace_transpose(X) == false);
&gt; +  BOOST_REQUIRE_EQUAL(X.n_rows, 4);
&gt; +  BOOST_REQUIRE_EQUAL(X.n_cols, 2);
&gt; +
&gt; +  for (size_t i = 0; i &lt; X.n_rows; ++i)
&gt; +    for (size_t j = 0; j &lt; X.n_cols; ++j)
&gt; +      BOOST_REQUIRE_CLOSE(X.at(i, j), Y.at(j, i), 1e-5);
&gt; +}
&gt; +
&gt; +/**
&gt; + * Try to transpose using low-mem method.
&gt; + */
&gt; +BOOST_AUTO_TEST_CASE(InplaceTransposeLowMemTest)
</pre>
<p>works very long..</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/408/files#r25127656">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFtAGFmbtnWUpsoGyGbvfenr_mtRks5nuSB1gaJpZM4Dj1tj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/408/files#r25127656"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>