<p>Using Visual Studio 2013 Release x64<br>
In this function<br>
void LARS::GivensRotate(const arma::vec::fixed& x,<br>
arma::vec::fixed& rotatedX,<br>
arma::mat& matG)<br>
{<br>
if (x(1) == 0) /////////////////////////////compiler error/////////////////////</p>
<h2>The compiler error is (could be an issue with armadillo);</h2>
<p>1>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> c:\projects\include\armadillo_bits/Col_bones.hpp(198): could be 'const arma::subview_col arma::Col::operator ()(const arma::span &) const'<br>
1> with<br>
1> [<br>
1> eT=double<br>
1> ]<br>
1> c:\projects\include\armadillo_bits/Col_bones.hpp(198): or 'arma::subview_col arma::Col::operator ()(const arma::span &)'<br>
1> with<br>
1> [<br>
1> eT=double<br>
1> ]<br>
1> c:\projects\include\armadillo_bits/Col_bones.hpp(198): or 'double &arma::Mat::operator ()(const arma::uword)'<br>
1> c:\projects\include\armadillo_bits/Col_bones.hpp(198): or 'const double &arma::Mat::operator ()(const arma::uword) const'<br>
1> c:\projects\include\armadillo_bits/Col_bones.hpp(221): or 'double &arma::Col::fixed::operator ()(const arma::uword)'<br>
1> c:\projects\include\armadillo_bits/Col_bones.hpp(222): or 'const double &arma::Col::fixed::operator ()(const arma::uword) const'</p>
<h2>1> 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;">—<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>