Fix unused variable warning.

This commit is contained in:
Gael Guennebaud 2015-02-16 17:21:30 +01:00
parent 69fa405096
commit 1c0e8bcf09

View File

@ -358,6 +358,7 @@ UpperBidiagonalization<_MatrixType>& UpperBidiagonalization<_MatrixType>::comput
{ {
Index rows = matrix.rows(); Index rows = matrix.rows();
Index cols = matrix.cols(); Index cols = matrix.cols();
EIGEN_ONLY_USED_FOR_DEBUG(cols);
eigen_assert(rows >= cols && "UpperBidiagonalization is only for Arices satisfying rows>=cols."); eigen_assert(rows >= cols && "UpperBidiagonalization is only for Arices satisfying rows>=cols.");
@ -379,6 +380,7 @@ UpperBidiagonalization<_MatrixType>& UpperBidiagonalization<_MatrixType>::comput
{ {
Index rows = matrix.rows(); Index rows = matrix.rows();
Index cols = matrix.cols(); Index cols = matrix.cols();
EIGEN_ONLY_USED_FOR_DEBUG(cols);
eigen_assert(rows >= cols && "UpperBidiagonalization is only for Arices satisfying rows>=cols."); eigen_assert(rows >= cols && "UpperBidiagonalization is only for Arices satisfying rows>=cols.");