<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'>> + * the changes to all dimensions.
> + *
> + * @code
> + * arma::mat input = loadData();
> + * double threshold = 0;
> + *
> + * // Binarize the whole Matrix. All positive values in will be set to 1 and
> + * // the values less than or equal to 0 will become 0.
> + * Binarize(input, threshold);
> + * @endcode
> + *
> + * @param input Input matrix to Binarize.
> + * @param threshold Threshold can by any number.
> + */
> +template<typename T>
> +void Binarize(arma::Mat<T>& 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<T>& input, arma::Mat<T>& output, const double threshold)</code></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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>