<p>In <a href="https://github.com/mlpack/mlpack/pull/666#discussion_r65803324">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>Many other functions in mlpack seems to provide these kind of interfaces.<br>
so yea, I'll add <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#r65803324">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFARalxqXFBfoxFdW6s_I054MzYhQks5qIY0wgaJpZM4IsxhK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKsujpDR23p3e5eE_0CKMcpmesjdks5qIY0wgaJpZM4IsxhK.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#r65803324"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>