LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ lceres()

logical function lceres ( character*2  type,
character*1  uplo,
integer  m,
integer  n,
complex, dimension( lda, * )  aa,
complex, dimension( lda, * )  as,
integer  lda 
)

Definition at line 3096 of file cblat2.f.

3097*
3098* Tests if selected elements in two arrays are equal.
3099*
3100* TYPE is 'GE', 'HE' or 'HP'.
3101*
3102* Auxiliary routine for test program for Level 2 Blas.
3103*
3104* -- Written on 10-August-1987.
3105* Richard Hanson, Sandia National Labs.
3106* Jeremy Du Croz, NAG Central Office.
3107*
3108* .. Scalar Arguments ..
3109 INTEGER LDA, M, N
3110 CHARACTER*1 UPLO
3111 CHARACTER*2 TYPE
3112* .. Array Arguments ..
3113 COMPLEX AA( LDA, * ), AS( LDA, * )
3114* .. Local Scalars ..
3115 INTEGER I, IBEG, IEND, J
3116 LOGICAL UPPER
3117* .. Executable Statements ..
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*
3146 lceres = .true.
3147 GO TO 80
3148 70 CONTINUE
3149 lceres = .false.
3150 80 RETURN
3151*
3152* End of LCERES
3153*
logical function lceres(type, uplo, m, n, aa, as, lda)
Definition cblat2.f:3097
Here is the call graph for this function:
Here is the caller graph for this function: