Get rid of wrong "subscript above bounds" warning (bug #149).

This commit is contained in:
Jitse Niesen 2011-05-07 18:44:11 +01:00
parent 4e7e5d09e1
commit 0896c6d97d

View File

@ -496,7 +496,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
}
}
}
else if (q < 0) // Complex vector
else if (q < 0 && n > 0) // Complex vector
{
Scalar lastra=0, lastsa=0, lastw=0;
Index l = n-1;
@ -570,6 +570,10 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
}
}
}
else
{
eigen_assert("Internal bug in EigenSolver"); // this should not happen
}
}
// Back transformation to get eigenvectors of original matrix