114 SUBROUTINE dorgl2( M, N, K, A, LDA, TAU, WORK, INFO )
122 INTEGER INFO, K, LDA, M, N
125 DOUBLE PRECISION A( lda, * ), TAU( * ), WORK( * )
131 DOUBLE PRECISION ONE, ZERO
132 parameter ( one = 1.0d+0, zero = 0.0d+0 )
150 ELSE IF( n.LT.m )
THEN
152 ELSE IF( k.LT.0 .OR. k.GT.m )
THEN
154 ELSE IF( lda.LT.max( 1, m ) )
THEN
158 CALL xerbla(
'DORGL2', -info )
175 IF( j.GT.k .AND. j.LE.m )
187 CALL dlarf(
'Right', m-i, n-i+1, a( i, i ), lda,
188 $ tau( i ), a( i+1, i ), lda, work )
190 CALL dscal( n-i, -tau( i ), a( i, i+1 ), lda )
192 a( i, i ) = one - tau( i )
subroutine dlarf(SIDE, M, N, V, INCV, TAU, C, LDC, WORK)
DLARF applies an elementary reflector to a general rectangular matrix.
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine dscal(N, DA, DX, INCX)
DSCAL
subroutine dorgl2(M, N, K, A, LDA, TAU, WORK, INFO)
DORGL2