<p>In <a href="https://github.com/mlpack/mlpack/pull/696#discussion_r67073948">src/mlpack/methods/edge_boxes/feature_extraction_impl.hpp</a>:</p>
<pre style='color:#555'>> +
> +//just a helper function, can't use it for anything else
> +//finds max numbers on cube axis and returns max values,
> +// also stores the locations of max values in Location
> +template<typename MatType, typename CubeType>
> +MatType StructuredForests<MatType, CubeType>::
> +MaxAndLoc(CubeType &mag, arma::umat &Location) const
> +{
> + /*Vectorize this function after prototype works*/
> + MatType MaxVal(Location.n_rows, Location.n_cols);
> + for(size_t i = 0; i < mag.n_rows; ++i)
> + {
> + for(size_t j = 0; j < mag.n_cols; ++j)
> + {
> + /*can use -infinity here*/
> + double max = std::numeric_limits<double>::min();
</pre>
<p><code>std::numeric_limits<double>::min()</code> is <code>DBL_MIN</code>: <code>DBL_MIN</code> returns the minimum positive normalized value, I guess what you like is: <code>-DBL_MAX</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/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67073948">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFBvzwdThiDpkuBF6eIUFxhsV3P33ks5qLzN_gaJpZM4I1lnr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMzQ6lRbvd3zycTAhnh4joXQk6nHks5qLzN_gaJpZM4I1lnr.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/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67073948"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>