<p>There are another solutions could do the binarize, but it need to allocate memoryt</p>

<pre><code>arma::mat a, b;
//do something
b.row(0) = arma::conv_to&lt;arma::mat&gt;::from(a.row(0) &gt; 4);
</code></pre>

<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/666#issuecomment-223824219">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFGueDEDYSlcAMAdk8Vt54Q-iK2Q0ks5qIwDagaJpZM4IsxhK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDduyJd-k8V2BOghu55Ar60FSaveks5qIwDagaJpZM4IsxhK.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/666#issuecomment-223824219"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>