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