Bugzilla – Attachment 582 Details for
Bug 1017
Tridiagonalization often generates non-unitarian Q-matrix for rank-deficient input
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
[patch]
Avoid underflow problems in makeHouseholder
bug1017.patch (text/plain), 558 bytes, created by
Christoph Hertzberg
on 2015-05-19 21:37:11 UTC
(
hide
)
Description:
Avoid underflow problems in makeHouseholder
Filename:
MIME Type:
Creator:
Christoph Hertzberg
Created:
2015-05-19 21:37:11 UTC
Size:
558 bytes
patch
obsolete
>diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h >--- a/Eigen/src/Householder/Householder.h >+++ b/Eigen/src/Householder/Householder.h >@@ -75,8 +75,9 @@ > > RealScalar tailSqNorm = size()==1 ? RealScalar(0) : tail.squaredNorm(); > Scalar c0 = coeff(0); >+ const RealScalar tol = (std::numeric_limits<RealScalar>::min)(); > >- if(tailSqNorm == RealScalar(0) && numext::imag(c0)==RealScalar(0)) >+ if(tailSqNorm <= tol && numext::abs2(numext::imag(c0))<=tol) > { > tau = RealScalar(0); > beta = numext::real(c0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1017
: 582