1 SUBROUTINE pslauu2( UPLO, N, A, IA, JA, DESCA )
122 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DTYPE_,
123 $ LLD_, MB_, M_, NB_, N_, RSRC_
124 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
125 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
126 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
128 parameter( one = 1.0e+0 )
131 INTEGER IACOL, IAROW, ICURR, IDIAG, IIA, IOFFA, JJA,
132 $ LDA, MYCOL, MYROW, NA, NPCOL, NPROW
136 EXTERNAL blacs_gridinfo,
infog2l, sgemv, sscal
152 CALL blacs_gridinfo( desca( ctxt_ ), nprow, npcol, myrow, mycol )
153 CALL infog2l( ia, ja, desca, nprow, npcol, myrow, mycol, iia, jja,
156 IF( myrow.EQ.iarow .AND. mycol.EQ.iacol )
THEN
159 idiag = iia + ( jja - 1 ) * lda
162 IF( lsame( uplo,
'U' ) )
THEN
166 DO 10 na = n-1, 1, -1
169 a( idiag ) = aii*aii + sdot( na, a( icurr ), lda,
171 CALL sgemv(
'No transpose', n-na-1, na, one,
172 $ a( ioffa+lda ), lda, a( icurr ), lda, aii,
174 idiag = idiag + lda + 1
178 CALL sscal( n, aii, a( ioffa ), 1 )
187 a(idiag) = aii*aii + sdot( n-na, a( icurr ), 1,
189 CALL sgemv(
'Transpose', n-na, na-1, one, a( ioffa+1 ),
190 $ lda, a( icurr ), 1, aii, a( ioffa ), lda )
191 idiag = idiag + lda + 1
195 CALL sscal( n, aii, a( ioffa ), lda )