mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-26 23:02:04 +08:00
Get rid of wrong "subscript above bounds" warning (bug #149).
This commit is contained in:
parent
4e7e5d09e1
commit
0896c6d97d
@ -496,7 +496,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (q < 0) // Complex vector
|
else if (q < 0 && n > 0) // Complex vector
|
||||||
{
|
{
|
||||||
Scalar lastra=0, lastsa=0, lastw=0;
|
Scalar lastra=0, lastsa=0, lastw=0;
|
||||||
Index l = n-1;
|
Index l = n-1;
|
||||||
@ -570,6 +570,10 @@ void EigenSolver<MatrixType>::doComputeEigenvectors()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eigen_assert("Internal bug in EigenSolver"); // this should not happen
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Back transformation to get eigenvectors of original matrix
|
// Back transformation to get eigenvectors of original matrix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user