Skip to content

Commit

Permalink
dgesdd: Handle norm nan value
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jan 8, 2021
1 parent 62aeb5a commit af872c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SRC/dgesdd.f
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ SUBROUTINE DGESDD( JOBZ, M, N, A, LDA, S, U, LDU, VT, LDVT,
* Scale A if max element outside range [SMLNUM,BIGNUM]
*
ANRM = DLANGE( 'M', M, N, A, LDA, DUM )
IF( ANRM.NE.ANRM ) THEN
INFO = 1
RETURN
END IF
ISCL = 0
IF( ANRM.GT.ZERO .AND. ANRM.LT.SMLNUM ) THEN
ISCL = 1
Expand Down

0 comments on commit af872c2

Please sign in to comment.