2944 parameter ( zero = ( 0.0, 0.0 ), one = ( 1.0, 0.0 ) )
2946 parameter ( rogue = ( -1.0e10, 1.0e10 ) )
2948 parameter ( rzero = 0.0 )
2950 parameter ( rrogue = -1.0e10 )
2953 INTEGER lda, m, n, nmax
2955 CHARACTER*1 diag, uplo
2958 COMPLEX a( nmax, * ), aa( * )
2960 INTEGER i, ibeg, iend, j, jj
2961 LOGICAL gen, her, lower, sym, tri, unit, upper
2966 INTRINSIC cmplx, conjg, real
2972 upper = ( her.OR.sym.OR.tri ).AND.uplo.EQ.
'U'
2973 lower = ( her.OR.sym.OR.tri ).AND.uplo.EQ.
'L'
2974 unit = tri.AND.diag.EQ.
'U'
2980 IF( gen.OR.( upper.AND.i.LE.j ).OR.( lower.AND.i.GE.j ) )
2982 a( i, j ) =
cbeg( reset ) + transl
2985 IF( n.GT.3.AND.j.EQ.n/2 )
2988 a( j, i ) = conjg( a( i, j ) )
2990 a( j, i ) = a( i, j )
2998 $ a( j, j ) = cmplx(
REAL( A( J, J ) ), rzero )
3000 $ a( j, j ) = a( j, j ) + one
3007 IF( type.EQ.
'GE' )
THEN
3010 aa( i + ( j - 1 )*lda ) = a( i, j )
3012 DO 40 i = m + 1, lda
3013 aa( i + ( j - 1 )*lda ) = rogue
3016 ELSE IF( type.EQ.
'HE'.OR.type.EQ.
'SY'.OR.type.EQ.
'TR' )
THEN
3033 DO 60 i = 1, ibeg - 1
3034 aa( i + ( j - 1 )*lda ) = rogue
3036 DO 70 i = ibeg, iend
3037 aa( i + ( j - 1 )*lda ) = a( i, j )
3039 DO 80 i = iend + 1, lda
3040 aa( i + ( j - 1 )*lda ) = rogue
3043 jj = j + ( j - 1 )*lda
3044 aa( jj ) = cmplx(
REAL( AA( JJ ) ), rrogue )
complex function cbeg(RESET)