<blockquote>
<p>I'm almost sure the first const is obsolete, I'll need to check that.</p>
</blockquote>

<p>Don't worry, const could be removed, unlike constexpr function, constexpr variable must be able to evaluate at compile time(as I remember).</p>

<p>example : </p>

<pre><code>constexpr double log2pi = 3.14159;
log2pi = 3.14; //compile time error
</code></pre>

<p>I will add the static back to the variable, this should make sure the variable can be evaluated at compile time and would not recreate every time.</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 or <a href="https://github.com/mlpack/mlpack/pull/612#issuecomment-209098646">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFH3fgVHaiZbvPUpE5SolHDvhgY7Dks5p3AcIgaJpZM4IFRuV.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/612#issuecomment-209098646"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>