-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sorcsd #697
Fix sorcsd #697
Conversation
51ca742
to
deb3d85
Compare
The double precision tests still show: 39 failing tests. See https://github.com/Reference-LAPACK/lapack/actions/runs/2806513051 My personal machine found 16 tests failing for the CS decomposition in double precision:
Any idea where they could be, @christoph-conrads ?
|
my tests in #695 showed you'd need to restore dorbdb6.f to fix the 39 errors. |
Thanks, @martin-frbg! I completely bypassed your comment: #695 (comment). I will apply those changes too. |
Seems what breaks the tests is the changes around line 266 (257 in the 3.10.1 version) where the conditional for the early RETURN was changed and elements set to zero that were previously left alone. (Probably the latter is the actual cause, still testing right now) |
Yes minimal fix is just
but I do not see any benefit from any of the other changes in dorbdb6.f - maybe I'd need to be a mathematician rather than a lowly computational chemist for that ? |
@martin-frbg, your minimal fix makes my tests pass indeed. Thanks! However, I understand that setting X1 and X2 to this code is important for dorbdb5. See: Lines 218 to 226 in 3381a0e
The point here, as I understand, was to identify zero projections. If a zero projection is found, use a different projection: Lines 228 to 264 in 3381a0e
I will let @christoph-conrads comment on that before making additional changes. |
The reason for modifying the xORBDB6 return value can be found in #634. xORBDB5 is calling xORBDB6 to determine if a vector Assuming setting |
deb3d85
to
2ba5e8e
Compare
I will merge this PR since the failing tests in double precision were fixed by #702. [Edit:] Actually, can someone review my changes so I can merge it? Thanks! |
@weslleyspereira Thanks for fixing the issues. The changes make sense and I support merging your PR in. |
Closes #695.
Revert "SORCSD2BY1: remove dead code"
This reverts commit d245b4f.
Revert "SORCSD: fix documentation on matrix dimensions"
This reverts commit bdcd890.
Keep corrections in the documentation, which make sense.