112 SUBROUTINE zlat2c( UPLO, N, A, LDA, SA, LDSA, INFO )
121 INTEGER INFO, LDA, LDSA, N
124 COMPLEX SA( ldsa, * )
125 COMPLEX*16 A( lda, * )
132 DOUBLE PRECISION RMAX
136 INTRINSIC dble, dimag
141 EXTERNAL slamch, lsame
146 upper = lsame( uplo,
'U' )
150 IF( ( dble( a( i, j ) ).LT.-rmax ) .OR.
151 $ ( dble( a( i, j ) ).GT.rmax ) .OR.
152 $ ( dimag( a( i, j ) ).LT.-rmax ) .OR.
153 $ ( dimag( a( i, j ) ).GT.rmax ) )
THEN
157 sa( i, j ) = a( i, j )
163 IF( ( dble( a( i, j ) ).LT.-rmax ) .OR.
164 $ ( dble( a( i, j ) ).GT.rmax ) .OR.
165 $ ( dimag( a( i, j ) ).LT.-rmax ) .OR.
166 $ ( dimag( a( i, j ) ).GT.rmax ) )
THEN
170 sa( i, j ) = a( i, j )
subroutine zlat2c(UPLO, N, A, LDA, SA, LDSA, INFO)
ZLAT2C converts a double complex triangular matrix to a complex triangular matrix.