mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user