Skip to content

Commit 1f0d961

Browse files
committed
fix comments about workspace length
Some subroutines use WORK(1) but declare WORK length pro rata N which could be equal to 0.
1 parent c30a253 commit 1f0d961

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

SRC/cgbsvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
*>
323323
*> \param[out] RWORK
324324
*> \verbatim
325-
*> RWORK is REAL array, dimension (N)
325+
*> RWORK is REAL array, dimension (MAX(1,N))
326326
*> On exit, RWORK(1) contains the reciprocal pivot growth
327327
*> factor norm(A)/norm(U). The "max absolute element" norm is
328328
*> used. If RWORK(1) is much less than 1, then the stability

SRC/cgesvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
*>
303303
*> \param[out] RWORK
304304
*> \verbatim
305-
*> RWORK is REAL array, dimension (2*N)
305+
*> RWORK is REAL array, dimension (MAX(1,2*N))
306306
*> On exit, RWORK(1) contains the reciprocal pivot growth
307307
*> factor norm(A)/norm(U). The "max absolute element" norm is
308308
*> used. If RWORK(1) is much less than 1, then the stability

SRC/dgbsvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
*>
317317
*> \param[out] WORK
318318
*> \verbatim
319-
*> WORK is DOUBLE PRECISION array, dimension (3*N)
319+
*> WORK is DOUBLE PRECISION array, dimension (MAX(1,3*N))
320320
*> On exit, WORK(1) contains the reciprocal pivot growth
321321
*> factor norm(A)/norm(U). The "max absolute element" norm is
322322
*> used. If WORK(1) is much less than 1, then the stability

SRC/dgejsv.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
*>
363363
*> \param[out] IWORK
364364
*> \verbatim
365-
*> IWORK is INTEGER array, dimension (M+3*N).
365+
*> IWORK is INTEGER array, dimension (MAX(3,M+3*N)).
366366
*> On exit,
367367
*> IWORK(1) = the numerical rank determined after the initial
368368
*> QR factorization with pivoting. See the descriptions

SRC/dgesvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
*>
297297
*> \param[out] WORK
298298
*> \verbatim
299-
*> WORK is DOUBLE PRECISION array, dimension (4*N)
299+
*> WORK is DOUBLE PRECISION array, dimension (MAX(1,4*N))
300300
*> On exit, WORK(1) contains the reciprocal pivot growth
301301
*> factor norm(A)/norm(U). The "max absolute element" norm is
302302
*> used. If WORK(1) is much less than 1, then the stability

SRC/sgbsvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
*>
317317
*> \param[out] WORK
318318
*> \verbatim
319-
*> WORK is REAL array, dimension (3*N)
319+
*> WORK is REAL array, dimension (MAX(1,3*N))
320320
*> On exit, WORK(1) contains the reciprocal pivot growth
321321
*> factor norm(A)/norm(U). The "max absolute element" norm is
322322
*> used. If WORK(1) is much less than 1, then the stability

SRC/sgesvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
*>
297297
*> \param[out] WORK
298298
*> \verbatim
299-
*> WORK is REAL array, dimension (4*N)
299+
*> WORK is REAL array, dimension (MAX(1,4*N))
300300
*> On exit, WORK(1) contains the reciprocal pivot growth
301301
*> factor norm(A)/norm(U). The "max absolute element" norm is
302302
*> used. If WORK(1) is much less than 1, then the stability

SRC/zgbsvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
*>
323323
*> \param[out] RWORK
324324
*> \verbatim
325-
*> RWORK is DOUBLE PRECISION array, dimension (N)
325+
*> RWORK is DOUBLE PRECISION array, dimension (MAX(1,N))
326326
*> On exit, RWORK(1) contains the reciprocal pivot growth
327327
*> factor norm(A)/norm(U). The "max absolute element" norm is
328328
*> used. If RWORK(1) is much less than 1, then the stability

SRC/zgesvx.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
*>
303303
*> \param[out] RWORK
304304
*> \verbatim
305-
*> RWORK is DOUBLE PRECISION array, dimension (2*N)
305+
*> RWORK is DOUBLE PRECISION array, dimension (MAX(1,2*N))
306306
*> On exit, RWORK(1) contains the reciprocal pivot growth
307307
*> factor norm(A)/norm(U). The "max absolute element" norm is
308308
*> used. If RWORK(1) is much less than 1, then the stability

0 commit comments

Comments
 (0)