aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/QR/SelfAdjointEigenSolver.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-06-02 02:06:33 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-06-02 02:06:33 +0000
commit92b7e2d6a16a6c52fb74f00601f0cfd213810426 (patch)
treeb007f759b8f047c2baa80d1249c66cf8ebc2d773 /Eigen/src/QR/SelfAdjointEigenSolver.h
parent001b01a2904e8e968bbe3e25bb27218318d5ffaf (diff)
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.
Diffstat (limited to 'Eigen/src/QR/SelfAdjointEigenSolver.h')
-rw-r--r--Eigen/src/QR/SelfAdjointEigenSolver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/QR/SelfAdjointEigenSolver.h b/Eigen/src/QR/SelfAdjointEigenSolver.h
index 2ac12fc6e..0df0db0b7 100644
--- a/Eigen/src/QR/SelfAdjointEigenSolver.h
+++ b/Eigen/src/QR/SelfAdjointEigenSolver.h
@@ -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();