150 SUBROUTINE slasd0( N, SQRE, D, E, U, LDU, VT, LDVT, SMLSIZ, IWORK,
158 INTEGER INFO, LDU, LDVT, N, SMLSIZ, SQRE
162 REAL D( * ), E( * ), U( LDU, * ), VT( LDVT, * ),
169 INTEGER I, I1, IC, IDXQ, IDXQC, IM1, INODE, ITEMP, IWK,
170 $ j, lf, ll, lvl, m, ncc, nd, ndb1, ndiml, ndimr,
171 $ nl, nlf, nlp1, nlvl, nr, nrf, nrp1, sqrei
185 ELSE IF( ( sqre.LT.0 ) .OR. ( sqre.GT.1 ) )
THEN
193 ELSE IF( ldvt.LT.m )
THEN
195 ELSE IF( smlsiz.LT.3 )
THEN
199 CALL xerbla(
'SLASD0', -info )
205 IF( n.LE.smlsiz )
THEN
206 CALL slasdq(
'U', sqre, n, m, n, 0, d, e, vt, ldvt, u, ldu, u,
218 CALL slasdt( n, nlvl, nd, iwork( inode ), iwork( ndiml ),
219 $ iwork( ndimr ), smlsiz )
235 ic = iwork( inode+i1 )
236 nl = iwork( ndiml+i1 )
238 nr = iwork( ndimr+i1 )
243 CALL slasdq(
'U', sqrei, nl, nlp1, nl, ncc, d( nlf ), e( nlf ),
244 $ vt( nlf, nlf ), ldvt, u( nlf, nlf ), ldu,
245 $ u( nlf, nlf ), ldu, work, info )
249 itemp = idxq + nlf - 2
259 CALL slasdq(
'U', sqrei, nr, nrp1, nr, ncc, d( nrf ), e( nrf ),
260 $ vt( nrf, nrf ), ldvt, u( nrf, nrf ), ldu,
261 $ u( nrf, nrf ), ldu, work, info )
267 iwork( itemp+j-1 ) = j
273 DO 50 lvl = nlvl, 1, -1
287 ic = iwork( inode+im1 )
288 nl = iwork( ndiml+im1 )
289 nr = iwork( ndimr+im1 )
291 IF( ( sqre.EQ.0 ) .AND. ( i.EQ.ll ) )
THEN
296 idxqc = idxq + nlf - 1
299 CALL slasd1( nl, nr, sqrei, d( nlf ), alpha, beta,
300 $ u( nlf, nlf ), ldu, vt( nlf, nlf ), ldvt,
301 $ iwork( idxqc ), iwork( iwk ), work, info )
subroutine xerbla(srname, info)
subroutine slasd0(n, sqre, d, e, u, ldu, vt, ldvt, smlsiz, iwork, work, info)
SLASD0 computes the singular values of a real upper bidiagonal n-by-m matrix B with diagonal d and of...
subroutine slasd1(nl, nr, sqre, d, alpha, beta, u, ldu, vt, ldvt, idxq, iwork, work, info)
SLASD1 computes the SVD of an upper bidiagonal matrix B of the specified size. Used by sbdsdc.
subroutine slasdq(uplo, sqre, n, ncvt, nru, ncc, d, e, vt, ldvt, u, ldu, c, ldc, work, info)
SLASDQ computes the SVD of a real bidiagonal matrix with diagonal d and off-diagonal e....
subroutine slasdt(n, lvl, nd, inode, ndiml, ndimr, msub)
SLASDT creates a tree of subproblems for bidiagonal divide and conquer. Used by sbdsdc.