<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'>> +
> + mat Y = X;
> +
> + BOOST_REQUIRE(arma::inplace_transpose(X) == false);
> + BOOST_REQUIRE_EQUAL(X.n_rows, 4);
> + BOOST_REQUIRE_EQUAL(X.n_cols, 2);
> +
> + for (size_t i = 0; i < X.n_rows; ++i)
> + for (size_t j = 0; j < X.n_cols; ++j)
> + BOOST_REQUIRE_CLOSE(X.at(i, j), Y.at(j, i), 1e-5);
> +}
> +
> +/**
> + * Try to transpose using low-mem method.
> + */
> +BOOST_AUTO_TEST_CASE(InplaceTransposeLowMemTest)
</pre>
<p>works very long..</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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>