LAPACK  3.10.0
LAPACK: Linear Algebra PACKage

◆ lzeres()

logical function lzeres ( character*2  TYPE,
character*1  UPLO,
integer  M,
integer  N,
complex*16, dimension( lda, * )  AA,
complex*16, dimension( lda, * )  AS,
integer  LDA 
)

Definition at line 3076 of file zblat2.f.

3077 *
3078 * Tests if selected elements in two arrays are equal.
3079 *
3080 * TYPE is 'GE', 'HE' or 'HP'.
3081 *
3082 * Auxiliary routine for test program for Level 2 Blas.
3083 *
3084 * -- Written on 10-August-1987.
3085 * Richard Hanson, Sandia National Labs.
3086 * Jeremy Du Croz, NAG Central Office.
3087 *
3088 * .. Scalar Arguments ..
3089  INTEGER LDA, M, N
3090  CHARACTER*1 UPLO
3091  CHARACTER*2 TYPE
3092 * .. Array Arguments ..
3093  COMPLEX*16 AA( LDA, * ), AS( LDA, * )
3094 * .. Local Scalars ..
3095  INTEGER I, IBEG, IEND, J
3096  LOGICAL UPPER
3097 * .. Executable Statements ..
3098  upper = uplo.EQ.'U'
3099  IF( type.EQ.'GE' )THEN
3100  DO 20 j = 1, n
3101  DO 10 i = m + 1, lda
3102  IF( aa( i, j ).NE.as( i, j ) )
3103  $ GO TO 70
3104  10 CONTINUE
3105  20 CONTINUE
3106  ELSE IF( type.EQ.'HE' )THEN
3107  DO 50 j = 1, n
3108  IF( upper )THEN
3109  ibeg = 1
3110  iend = j
3111  ELSE
3112  ibeg = j
3113  iend = n
3114  END IF
3115  DO 30 i = 1, ibeg - 1
3116  IF( aa( i, j ).NE.as( i, j ) )
3117  $ GO TO 70
3118  30 CONTINUE
3119  DO 40 i = iend + 1, lda
3120  IF( aa( i, j ).NE.as( i, j ) )
3121  $ GO TO 70
3122  40 CONTINUE
3123  50 CONTINUE
3124  END IF
3125 *
3126  lzeres = .true.
3127  GO TO 80
3128  70 CONTINUE
3129  lzeres = .false.
3130  80 RETURN
3131 *
3132 * End of LZERES
3133 *
logical function lzeres(TYPE, UPLO, M, N, AA, AS, LDA)
Definition: zblat2.f:3077
Here is the caller graph for this function: