<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'>&gt; +
&gt; +//just a helper function, can&#39;t use it for anything else
&gt; +//finds max numbers on cube axis and returns max values,
&gt; +// also stores the locations of max values in Location
&gt; +template&lt;typename MatType, typename CubeType&gt;
&gt; +MatType StructuredForests&lt;MatType, CubeType&gt;::
&gt; +MaxAndLoc(CubeType &amp;mag, arma::umat &amp;Location) const
&gt; +{
&gt; +  /*Vectorize this function after prototype works*/
&gt; +  MatType MaxVal(Location.n_rows, Location.n_cols);
&gt; +  for(size_t i = 0; i &lt; mag.n_rows; ++i)
&gt; +  {
&gt; +    for(size_t j = 0; j &lt; mag.n_cols; ++j)
&gt; +    {
&gt; +      /*can use -infinity here*/
&gt; +      double max =  std::numeric_limits&lt;double&gt;::min();
</pre>
<p><code>std::numeric_limits&lt;double&gt;::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;">&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/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>