mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 04:35:57 +08:00
bug #1394: fix compilation of SelfAdjointEigenSolver<Matrix>(sparse*sparse);
This commit is contained in:
parent
d8b1f6cebd
commit
76687f385c
@ -414,7 +414,8 @@ SelfAdjointEigenSolver<MatrixType>& SelfAdjointEigenSolver<MatrixType>
|
|||||||
|
|
||||||
if(n==1)
|
if(n==1)
|
||||||
{
|
{
|
||||||
m_eivalues.coeffRef(0,0) = numext::real(matrix.diagonal()[0]);
|
m_eivec = matrix;
|
||||||
|
m_eivalues.coeffRef(0,0) = numext::real(m_eivec.coeff(0,0));
|
||||||
if(computeEigenvectors)
|
if(computeEigenvectors)
|
||||||
m_eivec.setOnes(n,n);
|
m_eivec.setOnes(n,n);
|
||||||
m_info = Success;
|
m_info = Success;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user