195 INTEGER INFO, LDA, LDT, LWORK, M, N, MB, NB
198 DOUBLE PRECISION A( LDA, * ), T( LDT, * ), WORK( * )
204 DOUBLE PRECISION ONE, ZERO
205 parameter( one = 1.0d+0, zero = 0.0d+0 )
209 INTEGER NBLOCAL, MB2, M_PLUS_ONE, ITMP, IB_BOTTOM,
210 $ lworkopt, num_all_row_blocks, jb_t, ib, imb,
211 $ kb, kb_last, knb, mb1
214 DOUBLE PRECISION DUMMY( 1, 1 )
220 INTRINSIC dble, max, min
230 ELSE IF( n.LT.0 .OR. m.LT.n )
THEN
232 ELSE IF( mb.LE.n )
THEN
234 ELSE IF( nb.LT.1 )
THEN
236 ELSE IF( lda.LT.max( 1, m ) )
THEN
238 ELSE IF( ldt.LT.max( 1, min( nb, n ) ) )
THEN
240 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
244 nblocal = min( nb, n )
249 lworkopt = nblocal * max( nblocal, ( n - nblocal ) )
255 CALL xerbla(
'DORGTSQR_ROW', -info )
257 ELSE IF ( lquery )
THEN
258 work( 1 ) = dble( lworkopt )
264 IF( min( m, n ).EQ.0 )
THEN
265 work( 1 ) = dble( lworkopt )
272 CALL dlaset(
'U', m, n, zero, one, a, lda )
277 kb_last = ( ( n-1 ) / nblocal ) * nblocal + 1
299 itmp = ( m - mb - 1 ) / mb2
300 ib_bottom = itmp * mb2 + mb + 1
301 num_all_row_blocks = itmp + 2
302 jb_t = num_all_row_blocks * n + 1
304 DO ib = ib_bottom, mb+1, -mb2
309 imb = min( m_plus_one - ib, mb2 )
321 DO kb = kb_last, 1, -nblocal
326 knb = min( nblocal, n - kb + 1 )
329 $ t( 1, jb_t+kb-1 ), ldt, a( kb, kb ), lda,
330 $ a( ib, kb ), lda, work, knb )
349 DO kb = kb_last, 1, -nblocal
354 knb = min( nblocal, n - kb + 1 )
356 IF( mb1-kb-knb+1.EQ.0 )
THEN
363 $ t( 1, kb ), ldt, a( kb, kb ), lda,
364 $ dummy( 1, 1 ), 1, work, knb )
367 $ t( 1, kb ), ldt, a( kb, kb ), lda,
368 $ a( kb+knb, kb), lda, work, knb )
374 work( 1 ) = dble( lworkopt )
subroutine xerbla(srname, info)
subroutine dlarfb_gett(ident, m, n, k, t, ldt, a, lda, b, ldb, work, ldwork)
DLARFB_GETT
subroutine dlaset(uplo, m, n, alpha, beta, a, lda)
DLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
subroutine dorgtsqr_row(m, n, mb, nb, a, lda, t, ldt, work, lwork, info)
DORGTSQR_ROW