-
Notifications
You must be signed in to change notification settings - Fork 480
modify xGBT02 and xGET02 to use 1-norm of op(A) not A (no.2 from PR #562) #571
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
Conversation
The RWORK dimension was understated.
If M=1 or M<N then an index expression I2-I1+1 may take a non-positive value. This will raise an out of bound error. A check was borrowed from xGBT01.
…eference-LAPACK#562) 1. Comments improved, unified and fixed. 2. Code changed. To unify with routines xGBT01, xGTT02, xTBT02, xTPT02, and xTRT02.
…uting A check was borrowed from xLANGB.
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
=======================================
Coverage 82.37% 82.37%
=======================================
Files 1894 1894
Lines 190679 190679
=======================================
Hits 157065 157065
Misses 33614 33614 Continue to review full report at Codecov.
|
Good point. You are correct. The fact that we use two different measures is awkward and I do not know why this has been like that. I wonder whether using xLANGB in xGBT02 would not (1) simplify the code of xGBT02, and (2) use magnitude-based norms |y|. |
It would, but this change will require to extend xLANGB interface to accept non-square matrices. And also to extend xLANGT, xLANTB, and xLANTP in the same way, to maintain consistency. |
|
I see. Thanks @jip for explaining. Another idea is to have SCASUM (and DZASUM) that works with complex ABS( z ) instead of ABS(REAL( z )) + ABS(IMAG( z )). Having such SCASUM and DZASUM could actually be useful for a variety of reason. Then we would simply replace the calls to SCASUM (and DZASUM) in CGBT02 (and ZGBT02) by these new routines. So, well, I think that's great work @jip and we can leave it at that for now. And revisit as needed in the future. |
…PACK#562) Despite the recommendation, no change has been made in xGBT02, xGET02, xGTT02, xTBT02, xTPT02, and xTRT02 for C,Z datatypes yet: as it was noted afterwards in PR Reference-LAPACK#571, those routines are using mixed types of norm: 1-norm for op(A) and taxicab-based norm |Re(z)|+|Im(z)| for residual.
To unify with routines xGBT01, xGTT02, xLANGB, xTBT02, xTPT02, and xTRT02.
Some remarks: