mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
bug #1403: fix implicit scalar type conversion.
This commit is contained in:
parent
ba5cab576a
commit
1bbcf19029
@ -555,7 +555,7 @@ void ColPivHouseholderQR<MatrixType>::computeInPlace()
|
||||
if (m_colNormsUpdated.coeffRef(j) != 0) {
|
||||
RealScalar temp = abs(m_qr.coeffRef(k, j)) / m_colNormsUpdated.coeffRef(j);
|
||||
temp = (RealScalar(1) + temp) * (RealScalar(1) - temp);
|
||||
temp = temp < 0 ? 0 : temp;
|
||||
temp = temp < 0 ? RealScalar(0) : temp;
|
||||
RealScalar temp2 = temp * numext::abs2<RealScalar>(m_colNormsUpdated.coeffRef(j) /
|
||||
m_colNormsDirect.coeffRef(j));
|
||||
if (temp2 <= norm_downdate_threshold) {
|
||||
|
Loading…
Reference in New Issue
Block a user