See post on the forum from Pauli Virtanen.
authorlangou <langou@users.noreply.github.com>
Sat, 12 Jul 2014 20:30:57 +0000 (20:30 +0000)
committerlangou <langou@users.noreply.github.com>
Sat, 12 Jul 2014 20:30:57 +0000 (20:30 +0000)
http://icl.cs.utk.edu/lapack-forum/viewtopic.php?t=4560

Documentation of xSTEVR says that VL and VU are not referenced if RANGE = 'A'
or 'I', however the code does reference VL and VU for any value of RANGE:

      VLL = VL
      VUU = VU

So simply protect these two lines of code:

      IF( VALEIG ) THEN
         VLL = VL
         VUU = VU
      END IF

Julien.

SRC/dstevr.f
SRC/sstevr.f

index 076ab92e9dc2fe9e7e31e298b95db1e791cb1a92..f393cfd6bdbc3c2b6394b360a8bd3ed7349c9687 100644 (file)
 *     Scale matrix to allowable range, if necessary.
 *
       ISCALE = 0
-      VLL = VL
-      VUU = VU
+      IF( VALEIG ) THEN
+         VLL = VL
+         VUU = VU
+      END IF
 *
       TNRM = DLANST( 'M', N, D, E )
       IF( TNRM.GT.ZERO .AND. TNRM.LT.RMIN ) THEN
index 556a78b6ed22425e2e1b10d018e989fb618cb1b7..74157cead082d88e8e8a57e03abc6020cc928f50 100644 (file)
 *     Scale matrix to allowable range, if necessary.
 *
       ISCALE = 0
-      VLL = VL
-      VUU = VU
+      IF( VALEIG ) THEN
+         VLL = VL
+         VUU = VU
+      END IF
 *
       TNRM = SLANST( 'M', N, D, E )
       IF( TNRM.GT.ZERO .AND. TNRM.LT.RMIN ) THEN