Skip to content

Commit

Permalink
fix comments about workspace length
Browse files Browse the repository at this point in the history
Some subroutines use WORK(1) but declare WORK length pro rata N which could be equal to 0.
  • Loading branch information
jip committed Mar 29, 2023
1 parent c30a253 commit 1f0d961
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion SRC/cgbsvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
*>
*> \param[out] RWORK
*> \verbatim
*> RWORK is REAL array, dimension (N)
*> RWORK is REAL array, dimension (MAX(1,N))
*> On exit, RWORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If RWORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/cgesvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
*>
*> \param[out] RWORK
*> \verbatim
*> RWORK is REAL array, dimension (2*N)
*> RWORK is REAL array, dimension (MAX(1,2*N))
*> On exit, RWORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If RWORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/dgbsvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
*>
*> \param[out] WORK
*> \verbatim
*> WORK is DOUBLE PRECISION array, dimension (3*N)
*> WORK is DOUBLE PRECISION array, dimension (MAX(1,3*N))
*> On exit, WORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If WORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/dgejsv.f
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
*>
*> \param[out] IWORK
*> \verbatim
*> IWORK is INTEGER array, dimension (M+3*N).
*> IWORK is INTEGER array, dimension (MAX(3,M+3*N)).
*> On exit,
*> IWORK(1) = the numerical rank determined after the initial
*> QR factorization with pivoting. See the descriptions
Expand Down
2 changes: 1 addition & 1 deletion SRC/dgesvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
*>
*> \param[out] WORK
*> \verbatim
*> WORK is DOUBLE PRECISION array, dimension (4*N)
*> WORK is DOUBLE PRECISION array, dimension (MAX(1,4*N))
*> On exit, WORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If WORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/sgbsvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
*>
*> \param[out] WORK
*> \verbatim
*> WORK is REAL array, dimension (3*N)
*> WORK is REAL array, dimension (MAX(1,3*N))
*> On exit, WORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If WORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/sgesvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
*>
*> \param[out] WORK
*> \verbatim
*> WORK is REAL array, dimension (4*N)
*> WORK is REAL array, dimension (MAX(1,4*N))
*> On exit, WORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If WORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/zgbsvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
*>
*> \param[out] RWORK
*> \verbatim
*> RWORK is DOUBLE PRECISION array, dimension (N)
*> RWORK is DOUBLE PRECISION array, dimension (MAX(1,N))
*> On exit, RWORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If RWORK(1) is much less than 1, then the stability
Expand Down
2 changes: 1 addition & 1 deletion SRC/zgesvx.f
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
*>
*> \param[out] RWORK
*> \verbatim
*> RWORK is DOUBLE PRECISION array, dimension (2*N)
*> RWORK is DOUBLE PRECISION array, dimension (MAX(1,2*N))
*> On exit, RWORK(1) contains the reciprocal pivot growth
*> factor norm(A)/norm(U). The "max absolute element" norm is
*> used. If RWORK(1) is much less than 1, then the stability
Expand Down

0 comments on commit 1f0d961

Please sign in to comment.