Skip to content

Commit a6a52a7

Browse files
authored
Fix argument in SLASET call to zero S
fixes #1859 in accordance with https://github.com/LAPACK-Reference/issue/296
1 parent 76a66ea commit a6a52a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapack-netlib/SRC/sgelss.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ SUBROUTINE SGELSS( M, N, NRHS, A, LDA, B, LDB, S, RCOND, RANK,
407407
* Matrix all zero. Return zero solution.
408408
*
409409
CALL SLASET( 'F', MAX( M, N ), NRHS, ZERO, ZERO, B, LDB )
410-
CALL SLASET( 'F', MINMN, 1, ZERO, ZERO, S, 1 )
410+
CALL SLASET( 'F', MINMN, 1, ZERO, ZERO, S, MINMN )
411411
RANK = 0
412412
GO TO 70
413413
END IF

0 commit comments

Comments
 (0)