<p>In <a href="https://github.com/mlpack/mlpack/pull/666#discussion_r65708578">src/mlpack/core/data/binarize.hpp</a>:</p>
<pre style='color:#555'>&gt; + * the changes to all dimensions.
&gt; + *
&gt; + * @code
&gt; + * arma::mat input = loadData();
&gt; + * double threshold = 0;
&gt; + *
&gt; + * // Binarize the whole Matrix. All positive values in will be set to 1 and
&gt; + * // the values less than or equal to 0 will become 0.
&gt; + * Binarize(input, threshold);
&gt; + * @endcode
&gt; + *
&gt; + * @param input Input matrix to Binarize.
&gt; + * @param threshold Threshold can by any number.
&gt; + */
&gt; +template&lt;typename T&gt;
&gt; +void Binarize(arma::Mat&lt;T&gt;&amp; input,
</pre>
<p>Do you think it's reasonable to provide an interface that enables the user to set output matrix? e.g.</p>

<p><code>void Binarize(arma::Mat&lt;T&gt;&amp; input, arma::Mat&lt;T&gt;&amp; output, const double threshold)</code></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/666/files/095842f1517c0200eaffa51ccdf05cbf28cff2dc#r65708578">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFNA500TcTKqxIWgU0m3PrNTbRv-Wks5qIC9bgaJpZM4IsxhK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFDf7dJwQqju-7dNOp7THZy3xO2gks5qIC9bgaJpZM4IsxhK.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/files/095842f1517c0200eaffa51ccdf05cbf28cff2dc#r65708578"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>