bugfix in the eigenvalue solvers (forgot to resize the eigen vectors)

This commit is contained in:
Gael Guennebaud
2009-09-30 16:48:02 +02:00
parent 4b04a9bcfa
commit d7a2a37a4c
3 changed files with 3 additions and 0 deletions

View File

@@ -194,6 +194,7 @@ EigenSolver<MatrixType>& EigenSolver<MatrixType>::compute(const MatrixType& matr
assert(matrix.cols() == matrix.rows());
int n = matrix.cols();
m_eivalues.resize(n,1);
m_eivec.resize(n,n);
MatrixType matH = matrix;
RealVectorType ort(n);