1 SUBROUTINE pclauum( UPLO, N, A, IA, JA, DESCA )
120 INTEGER BLOCK_CYCLIC_2D, CSRC_, CTXT_, DLEN_, DTYPE_,
121 $ LLD_, MB_, M_, NB_, N_, RSRC_
122 parameter( block_cyclic_2d = 1, dlen_ = 9, dtype_ = 1,
123 $ ctxt_ = 2, m_ = 3, n_ = 4, mb_ = 5, nb_ = 6,
124 $ rsrc_ = 7, csrc_ = 8, lld_ = 9 )
126 parameter( one = 1.0e+0 )
128 parameter( cone = 1.0e+0 )
134 EXTERNAL pcgemm, pcherk,
pclauu2, pctrmm
139 EXTERNAL iceil, lsame
151 jn =
min( iceil( ja, desca( nb_ ) ) * desca( nb_ ), ja+n-1 )
152 IF( lsame( uplo,
'U' ) )
THEN
159 CALL pclauu2(
'Upper', jb, a, ia, ja, desca )
161 CALL pcherk(
'Upper',
'No transpose', jb, n-jb, one, a, ia,
162 $ ja+jb, desca, one, a, ia, ja, desca )
167 DO 10 j = jn+1, ja+n-1, desca( nb_ )
168 jb =
min( n-j+ja, desca( nb_ ) )
170 CALL pctrmm(
'Right',
'Upper',
'Conjugate transpose',
171 $
'Non-unit', j-ja, jb, cone, a, i, j, desca,
173 CALL pclauu2(
'Upper', jb, a, i, j, desca )
174 IF( j+jb.LE.ja+n-1 )
THEN
175 CALL pcgemm(
'No transpose',
'Conjugate transpose',
176 $ j-ja, jb, n-j-jb+ja, cone, a, ia, j+jb,
177 $ desca, a, i, j+jb, desca, cone, a, ia,
179 CALL pcherk(
'Upper',
'No transpose', jb, n-j-jb+ja, one,
180 $ a, i, j+jb, desca, one, a, i, j, desca )
190 CALL pclauu2(
'Lower', jb, a, ia, ja, desca )
192 CALL pcherk(
'Lower',
'Conjugate transpose', jb, n-jb, one,
193 $ a, ia+jb, ja, desca, one, a, ia, ja, desca )
198 DO 20 j = jn+1, ja+n-1, desca( nb_ )
199 jb =
min( n-j+ja, desca( nb_ ) )
201 CALL pctrmm(
'Left',
'Lower',
'Conjugate Transpose',
202 $
'Non-unit', jb, j-ja, cone, a, i, j, desca, a,
204 CALL pclauu2(
'Lower', jb, a, i, j, desca )
205 IF( j+jb.LE.ja+n-1 )
THEN
206 CALL pcgemm(
'Conjugate transpose',
'No transpose', jb,
207 $ j-ja, n-j-jb+ja, cone, a, i+jb, j, desca,
208 $ a, i+jb, ja, desca, cone, a, i, ja, desca )
209 CALL pcherk(
'Lower',
'Conjugate transpose', jb,
210 $ n-j-jb+ja, one, a, i+jb, j, desca, one,