110 SUBROUTINE zlat2c( UPLO, N, A, LDA, SA, LDSA, INFO )
118 INTEGER INFO, LDA, LDSA, N
121 COMPLEX SA( LDSA, * )
122 COMPLEX*16 A( LDA, * )
129 DOUBLE PRECISION RMAX
133 INTRINSIC dble, dimag, cmplx
138 EXTERNAL slamch, lsame
143 upper = lsame( uplo,
'U' )
147 IF( ( dble( a( i, j ) ).LT.-rmax ) .OR.
148 $ ( dble( a( i, j ) ).GT.rmax ) .OR.
149 $ ( dimag( a( i, j ) ).LT.-rmax ) .OR.
150 $ ( dimag( a( i, j ) ).GT.rmax ) )
THEN
154 sa( i, j ) = cmplx( a( i, j ) )
160 IF( ( dble( a( i, j ) ).LT.-rmax ) .OR.
161 $ ( dble( a( i, j ) ).GT.rmax ) .OR.
162 $ ( dimag( a( i, j ) ).LT.-rmax ) .OR.
163 $ ( dimag( a( i, j ) ).GT.rmax ) )
THEN
167 sa( i, j ) = cmplx( a( i, j ) )
subroutine zlat2c(uplo, n, a, lda, sa, ldsa, info)
ZLAT2C converts a double complex triangular matrix to a complex triangular matrix.