Skip to content

Commit ae02a57

Browse files
authored
Merge pull request #1866 from martin-frbg/issue1859
Fix argument in SLASET call to zero S
2 parents b0c15ba + a6a52a7 commit ae02a57

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)