Merged in vanhoucke/eigen_vanhoucke_unused_variable (pull request PR-34)

Silence unused variable warning.
This commit is contained in:
Gael Guennebaud 2013-10-29 11:04:47 +01:00
commit 9b863c1830

View File

@ -512,8 +512,7 @@ template<typename MatrixType>
template<typename OtherDerived, typename ResultType> template<typename OtherDerived, typename ResultType>
bool SVD<MatrixType>::solve(const MatrixBase<OtherDerived> &b, ResultType* result) const bool SVD<MatrixType>::solve(const MatrixBase<OtherDerived> &b, ResultType* result) const
{ {
const int rows = m_matU.rows(); ei_assert(b.rows() == m_matU.rows());
ei_assert(b.rows() == rows);
Scalar maxVal = m_sigma.cwise().abs().maxCoeff(); Scalar maxVal = m_sigma.cwise().abs().maxCoeff();
for (int j=0; j<b.cols(); ++j) for (int j=0; j<b.cols(); ++j)