3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117 INTEGER LDA, M, N
3118 CHARACTER*1 UPLO
3119 CHARACTER*2 TYPE
3120
3121 COMPLEX*16 AA( LDA, * ), AS( LDA, * )
3122
3123 INTEGER I, IBEG, IEND, J
3124 LOGICAL UPPER
3125
3126 upper = uplo.EQ.'U'
3127 IF( type.EQ.'GE' )THEN
3128 DO 20 j = 1, n
3129 DO 10 i = m + 1, lda
3130 IF( aa( i, j ).NE.as( i, j ) )
3131 $ GO TO 70
3132 10 CONTINUE
3133 20 CONTINUE
3134 ELSE IF( type.EQ.'HE' )THEN
3135 DO 50 j = 1, n
3136 IF( upper )THEN
3137 ibeg = 1
3138 iend = j
3139 ELSE
3140 ibeg = j
3141 iend = n
3142 END IF
3143 DO 30 i = 1, ibeg - 1
3144 IF( aa( i, j ).NE.as( i, j ) )
3145 $ GO TO 70
3146 30 CONTINUE
3147 DO 40 i = iend + 1, lda
3148 IF( aa( i, j ).NE.as( i, j ) )
3149 $ GO TO 70
3150 40 CONTINUE
3151 50 CONTINUE
3152 END IF
3153
3155 GO TO 80
3156 70 CONTINUE
3158 80 RETURN
3159
3160
3161
logical function lzeres(type, uplo, m, n, aa, as, lda)