|
190 | 190 | *> The dimension of the array WORK.
|
191 | 191 | *>
|
192 | 192 | *> If LWORK = -1, then a workspace query is assumed; the routine
|
193 |
| -*> only calculates the optimal size of the WORK array, returns |
194 |
| -*> this value as the first entry of the work array, and no error |
195 |
| -*> message related to LWORK is issued by XERBLA. |
| 193 | +*> only calculates the optimal size of the WORK and RWORK |
| 194 | +*> arrays, returns this value as the first entry of the WORK |
| 195 | +*> and RWORK array, respectively, and no error message related |
| 196 | +*> to LWORK or LRWORK is issued by XERBLA. |
196 | 197 | *> \endverbatim
|
197 | 198 | *>
|
198 | 199 | *> \param[out] RWORK
|
|
211 | 212 | *> LRWORK is INTEGER
|
212 | 213 | *> The dimension of the array RWORK.
|
213 | 214 | *>
|
214 |
| -*> If LRWORK = -1, then a workspace query is assumed; the routine |
215 |
| -*> only calculates the optimal size of the RWORK array, returns |
216 |
| -*> this value as the first entry of the work array, and no error |
217 |
| -*> message related to LRWORK is issued by XERBLA. |
| 215 | +*> If LRWORK=-1, then a workspace query is assumed; the routine |
| 216 | +*> only calculates the optimal size of the WORK and RWORK |
| 217 | +*> arrays, returns this value as the first entry of the WORK |
| 218 | +*> and RWORK array, respectively, and no error message related |
| 219 | +*> to LWORK or LRWORK is issued by XERBLA. |
218 | 220 | *> \endverbatim
|
219 | 221 | *
|
220 | 222 | *> \param[out] IWORK
|
@@ -313,7 +315,7 @@ SUBROUTINE CUNCSD2BY1( JOBU1, JOBU2, JOBV1T, M, P, Q, X11, LDX11,
|
313 | 315 | WANTU1 = LSAME( JOBU1, 'Y' )
|
314 | 316 | WANTU2 = LSAME( JOBU2, 'Y' )
|
315 | 317 | WANTV1T = LSAME( JOBV1T, 'Y' )
|
316 |
| - LQUERY = LWORK .EQ. -1 |
| 318 | + LQUERY = ( LWORK.EQ.-1 ) .OR. ( LRWORK.EQ.-1 ) |
317 | 319 | *
|
318 | 320 | IF( M .LT. 0 ) THEN
|
319 | 321 | INFO = -4
|
|
0 commit comments