* Compare RWORK(2*NRHS+1) from CGBSVX with the
* computed reciprocal pivot growth RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
ANRMPV = ZERO
DO 70 J = 1, INFO
DO 60 I = MAX( KU+2-J, 1 ),
* Compare RWORK(2*NRHS+1) from CGESVX with the
* computed reciprocal pivot growth factor RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
RPVGRW = CLANTR( 'M', 'U', 'N', INFO, INFO,
$ AFAC, LDA, RDUM )
IF( RPVGRW.EQ.ZERO ) THEN
$ LDA, IWORK, EQUED, WORK( N+1 ), B, LDA, X,
$ LDA, RCOND, RPVGRW_SVXX, BERR, N_ERR_BNDS,
$ ERRBNDS_N, ERRBNDS_C, 0, ZERO, WORK,
- $ RWORK, INFO )
+ $ RWORK(2*NRHS+1), INFO )
*
* Adjust the expected value of INFO to account for
* pivoting.
* Compare WORK(1) from DGBSVX with the computed
* reciprocal pivot growth factor RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
ANRMPV = ZERO
DO 70 J = 1, INFO
DO 60 I = MAX( KU+2-J, 1 ),
* Compare WORK(1) from DGESVX with the computed
* reciprocal pivot growth factor RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
RPVGRW = DLANTR( 'M', 'U', 'N', INFO, INFO,
$ AFAC, LDA, WORK )
IF( RPVGRW.EQ.ZERO ) THEN
* Compare WORK(1) from SGBSVX with the computed
* reciprocal pivot growth factor RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
ANRMPV = ZERO
DO 70 J = 1, INFO
DO 60 I = MAX( KU+2-J, 1 ),
* Compare WORK(1) from SGESVX with the computed
* reciprocal pivot growth factor RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
RPVGRW = SLANTR( 'M', 'U', 'N', INFO, INFO,
$ AFAC, LDA, WORK )
IF( RPVGRW.EQ.ZERO ) THEN
* Compare RWORK(2*NRHS+1) from ZGBSVX with the
* computed reciprocal pivot growth RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
ANRMPV = ZERO
DO 70 J = 1, INFO
DO 60 I = MAX( KU+2-J, 1 ),
* Compare RWORK(2*NRHS+1) from ZGESVX with the
* computed reciprocal pivot growth factor RPVGRW
*
- IF( INFO.NE.0 ) THEN
+ IF( INFO.NE.0 .AND. INFO.LE.N) THEN
RPVGRW = ZLANTR( 'M', 'U', 'N', INFO, INFO,
$ AFAC, LDA, RDUM )
IF( RPVGRW.EQ.ZERO ) THEN
$ LDA, IWORK, EQUED, WORK( N+1 ), B, LDA, X,
$ LDA, RCOND, RPVGRW_SVXX, BERR, N_ERR_BNDS,
$ ERRBNDS_N, ERRBNDS_C, 0, ZERO, WORK,
- $ RWORK, INFO )
+ $ RWORK(2*NRHS+1), INFO )
*
* Adjust the expected value of INFO to account for
* pivoting.