<p>In <a href="https://github.com/mlpack/mlpack/pull/391#discussion_r23541761">src/mlpack/core/optimizers/sdp/primal_dual_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; +  math::Svec(X, sx);
&gt; +  math::Svec(Z, sz);
&gt; +
&gt; +  arma::vec rp, rd, rc, gk;
&gt; +
&gt; +  arma::mat Rc, F, Einv_F_AsparseT, Einv_F_AdenseT, Gk,
&gt; +            M, DualCheck;
&gt; +
&gt; +  rp.set_size(sdp.NumConstraints());
&gt; +
&gt; +  Einv_F_AsparseT.set_size(n2bar, sdp.NumSparseConstraints());
&gt; +  Einv_F_AdenseT.set_size(n2bar, sdp.NumDenseConstraints());
&gt; +  M.set_size(sdp.NumConstraints(), sdp.NumConstraints());
&gt; +
&gt; +  double primalObj = 0., alpha, beta;
&gt; +  for (size_t iteration = 0; iteration != maxIterations; iteration++)
</pre>
<p><code>iteration</code> should probably initialize to 1 if you want to allow unlimited iterations with <code>maxIterations = 0</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/391/files#r23541761">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMPgYg8LKGqTqovWmElabNwBSL80ks5nlmBogaJpZM4DVljE.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/391/files#r23541761"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>