<p>In <a href="https://github.com/mlpack/mlpack/pull/650#discussion_r65292648">src/mlpack/tests/split_data_test.cpp</a>:</p>
<pre style='color:#555'>&gt; @@ -67,17 +83,31 @@ void CheckDuplication(const Row&lt;size_t&gt;&amp; trainLabels,
&gt;      BOOST_REQUIRE_EQUAL(counts[i], 1);
&gt;  }
&gt;  
&gt; -BOOST_AUTO_TEST_CASE(SplitDataSplitResultMat)
&gt; +BOOST_AUTO_TEST_CASE(SplitDataResultMat)
&gt; +{
&gt; +  mat input(2, 10);
&gt; +  size_t count = 0; // count for putting unique sequential values
&gt; +  input.imbue([&amp;count] () { return ++count; });
</pre>
<p>I agree, really neat idea</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, <a href="https://github.com/mlpack/mlpack/pull/650/files/8ad3b900bba6c8535ad94b5af31aaab1de0c64d1#r65292648">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFPf7pXGp8at1yfa6vUAAnjcQJCvfks5qHOizgaJpZM4IneDD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDibWbTphqjUR0jN2LOIwMEmW5rbks5qHOizgaJpZM4IneDD.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/650/files/8ad3b900bba6c8535ad94b5af31aaab1de0c64d1#r65292648"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>