<p>Using Visual Studio 2013 Release x64<br>
In this function<br>
void LARS::GivensRotate(const arma::vec::fixed&amp; x,<br>
                        arma::vec::fixed&amp; rotatedX,<br>
                        arma::mat&amp; matG)<br>
{<br>
  if (x(1) == 0)  /////////////////////////////compiler error/////////////////////</p>

<h2>The compiler error is (could be an issue with armadillo);</h2>

<p>1&gt;C:\Projects\CPP\mlpack\mlpack-1.0.12\src\mlpack\methods\lars\lars.cpp(431): error C3066: there are multiple ways that an object of this type can be called with these arguments<br>
1&gt;          c:\projects\include\armadillo_bits/Col_bones.hpp(198): could be 'const arma::subview_col arma::Col::operator ()(const arma::span &amp;) const'<br>
1&gt;          with<br>
1&gt;          [<br>
1&gt;              eT=double<br>
1&gt;          ]<br>
1&gt;          c:\projects\include\armadillo_bits/Col_bones.hpp(198): or       'arma::subview_col arma::Col::operator ()(const arma::span &amp;)'<br>
1&gt;          with<br>
1&gt;          [<br>
1&gt;              eT=double<br>
1&gt;          ]<br>
1&gt;          c:\projects\include\armadillo_bits/Col_bones.hpp(198): or       'double &amp;arma::Mat::operator ()(const arma::uword)'<br>
1&gt;          c:\projects\include\armadillo_bits/Col_bones.hpp(198): or       'const double &amp;arma::Mat::operator ()(const arma::uword) const'<br>
1&gt;          c:\projects\include\armadillo_bits/Col_bones.hpp(221): or       'double &amp;arma::Col::fixed::operator ()(const arma::uword)'<br>
1&gt;          c:\projects\include\armadillo_bits/Col_bones.hpp(222): or       'const double &amp;arma::Col::fixed::operator ()(const arma::uword) const'</p>

<h2>1&gt;          while trying to match the argument list '(int)'</h2>

<p>The work around is<br>
if (x[1] == 0)</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/issues/424">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLhHrpasuNtQHGc_GMoSO8NLjiEaks5n3PUmgaJpZM4DyYOG.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/issues/424"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>