fix eigenvectors computations :)

This commit is contained in:
Gael Guennebaud
2008-06-03 18:03:55 +00:00
parent 915587d03d
commit a0cff1a295
3 changed files with 8 additions and 5 deletions

View File

@@ -197,6 +197,10 @@ void Tridiagonalization<MatrixType>::_compute(MatrixType& matA, CoeffVectorType&
matA.col(i).coeffRef(i+1) = beta;
hCoeffs.coeffRef(i) = (beta - v0) / beta;
}
else
{
hCoeffs.coeffRef(n-2) = 0;
}
}
/** reconstructs and returns the matrix Q */