You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In row-major case, LAPACKE_?trexc_work requires ldq >= n even when compq is not 'v', that is, when the matrix Q is not referenced. The ldq parameter is always used conditionally only if compq is 'v', so the ldq >= n check should be also done only in that case.
In ?TREXC the corresponding check is:
IF( LDQ.LT.1 .OR. ( WANTQ .AND. LDQ.LT.MAX( 1, N ) ) ) THEN
INFO = -6
The text was updated successfully, but these errors were encountered:
Thanks for spotting this. What about on line 54 of LAPACKE_dtrexc_work.c:
if(( ldq < n )&&(LAPACKE_lsame( compq, 'v' ))) {
Note: LAPACKE does not check for ( ldq < 1 ) if the array is not referenced. This is fine. This is not consistent with LAPACK. LAPACK (Fortran) does check for ( ldq < 1 ).
Do you want to submit a pull request? And if you have a better solution for changing the check, please go ahead.
In row-major case,
LAPACKE_?trexc_work
requiresldq >= n
even whencompq
is not'v'
, that is, when the matrix Q is not referenced. Theldq
parameter is always used conditionally only ifcompq
is'v'
, so theldq >= n
check should be also done only in that case.In ?TREXC the corresponding check is:
The text was updated successfully, but these errors were encountered: