Fix argument in SLASET call to zero S
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 10 Nov 2018 16:16:53 +0000 (17:16 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Nov 2018 16:16:53 +0000 (17:16 +0100)
fixes #1859 in accordance with https://github.com/LAPACK-Reference/issue/296

lapack-netlib/SRC/sgelss.f

index 29380d4..84a882d 100644 (file)
 *        Matrix all zero. Return zero solution.
 *
          CALL SLASET( 'F', MAX( M, N ), NRHS, ZERO, ZERO, B, LDB )
-         CALL SLASET( 'F', MINMN, 1, ZERO, ZERO, S, 1 )
+         CALL SLASET( 'F', MINMN, 1, ZERO, ZERO, S, MINMN )
          RANK = 0
          GO TO 70
       END IF