Skip to content
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

Update to use safe scaling algorithm from Reference-LAPACK PR 527 #4143

Merged
merged 8 commits into from
Sep 1, 2023
Merged
2 changes: 1 addition & 1 deletion interface/rotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void CNAME(FLOAT *DA, FLOAT *DB, FLOAT *C, FLOAT *S){
if (adb == ZERO) {
*C = ONE;
*S = ZERO;
DA = ZERO;
*DA = ZERO;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this change. If the input vector is [a,0], then the rotation is the identity and the rotated vector [a,0]. Maybe your initial intention was to delete the whole line as in the other #if branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, looks like a cut-n-paste gone wrong. thanks for your vigilance - still haven't run any tests with this

*DB = ZERO;
} else {
FLOAT aa = da / scale;
Expand Down