fix a couple of issues making the eigensolver test compile and run without aborting

on an assert. Had to fix a stupid bug in Block -- very strange we hadn't hit it
before.

However the test still fails.
This commit is contained in:
Benoit Jacob
2008-06-02 02:06:33 +00:00
parent 001b01a290
commit 92b7e2d6a1
3 changed files with 8 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ static void ei_givens_rotation(Scalar a, Scalar b, Scalar& c, Scalar& s)
/** \internal
* Performs a QR step on a tridiagonal symmetric matrix represented as a
* pair of two vectors \a diag \a subdiag.
* pair of two vectors \a diag and \a subdiag.
*
* \param matA the input selfadjoint matrix
* \param hCoeffs returned Householder coefficients
@@ -142,7 +142,7 @@ void SelfAdjointEigenSolver<MatrixType>::compute(const MatrixType& matrix)
Tridiagonalization<MatrixType> tridiag(m_eivec);
RealVectorType& diag = m_eivalues;
RealVectorType subdiag(n-1);
RealVectorTypeX subdiag(n-1);
diag = tridiag.diagonal();
subdiag = tridiag.subDiagonal();