173 INTEGER info, lda, m, n
176 REAL a( lda, * ), d( * )
183 parameter( one = 1.0e+0 )
187 INTEGER i, iinfo, n1, n2
197 INTRINSIC abs, sign, max, min
206 ELSE IF( n.LT.0 )
THEN
208 ELSE IF( lda.LT.max( 1, m ) )
THEN
212 CALL xerbla(
'SLAORHR_COL_GETRFNP2', -info )
218 IF( min( m, n ).EQ.0 )
228 d( 1 ) = -sign( one, a( 1, 1 ) )
232 a( 1, 1 ) = a( 1, 1 ) - d( 1 )
234 ELSE IF( n.EQ.1 )
THEN
241 d( 1 ) = -sign( one, a( 1, 1 ) )
245 a( 1, 1 ) = a( 1, 1 ) - d( 1 )
255 IF( abs( a( 1, 1 ) ) .GE. sfmin )
THEN
256 CALL sscal( m-1, one / a( 1, 1 ), a( 2, 1 ), 1 )
259 a( i, 1 ) = a( i, 1 ) / a( 1, 1 )
277 CALL strsm(
'R',
'U',
'N',
'N', m-n1, n1, one, a, lda,
278 $ a( n1+1, 1 ), lda )
282 CALL strsm(
'L',
'L',
'N',
'U', n1, n2, one, a, lda,
283 $ a( 1, n1+1 ), lda )
288 CALL sgemm(
'N',
'N', m-n1, n2, n1, -one, a( n1+1, 1 ), lda,
289 $ a( 1, n1+1 ), lda, one, a( n1+1, n1+1 ), lda )
subroutine sgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)
SGEMM
subroutine strsm(side, uplo, transa, diag, m, n, alpha, a, lda, b, ldb)
STRSM