<p>In <a href="https://github.com/mlpack/mlpack/pull/523#discussion_r59445933">src/mlpack/tests/split_data_test.cpp</a>:</p>
<pre style='color:#555'>&gt; +using namespace mlpack;
&gt; +using namespace arma;
&gt; +
&gt; +BOOST_AUTO_TEST_SUITE(SplitDataTest);
&gt; +
&gt; +void compareData(arma::mat const &amp;inputData, arma::mat const &amp;compareData,
&gt; +                 arma::Row&lt;size_t&gt; const &amp;inputLabel)
&gt; +{
&gt; +    for(size_t i = 0; i != compareData.n_cols; ++i){
&gt; +        arma::mat const &amp;lhsCol = inputData.col(inputLabel(i));
&gt; +        arma::mat const &amp;rhsCol = compareData.col(i);
&gt; +        for(size_t j = 0; j != lhsCol.n_rows; ++j){
&gt; +            BOOST_REQUIRE_CLOSE(lhsCol(j), rhsCol(j), 1e-5);
&gt; +        }
&gt; +    }
&gt; +}
</pre>
<p>Do you mind adding a comment saying what this function does?  It might also be worth noting that this function depends on the labels being equivalent to the original point index (the trick you use in line 36/37).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/523/files/860256202d7cba23dd3500a05e36ecd351f1d673#r59445933">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNnWQsplHzxrtg6PHtlVrzwzFLWLks5p2_42gaJpZM4HhWF3.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/523/files/860256202d7cba23dd3500a05e36ecd351f1d673#r59445933"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>