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

◆ zgennd()

logical function zgennd ( integer  m,
integer  n,
complex*16, dimension( lda, * )  a,
integer  lda 
)

ZGENND

Purpose:
    ZGENND tests that its argument has a real, non-negative diagonal.
Parameters
[in]M
          M is INTEGER
          The number of rows in A.
[in]N
          N is INTEGER
          The number of columns in A.
[in]A
          A is COMPLEX*16 array, dimension (LDA, N)
          The matrix.
[in]LDA
          LDA is INTEGER
          Leading dimension of A.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 67 of file zgennd.f.

68*
69* -- LAPACK test routine --
70* -- LAPACK is a software package provided by Univ. of Tennessee, --
71* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
72*
73* .. Scalar Arguments ..
74 INTEGER M, N, LDA
75* ..
76* .. Array Arguments ..
77 COMPLEX*16 A( LDA, * )
78* ..
79*
80* =====================================================================
81*
82* .. Parameters ..
83 REAL ZERO
84 parameter( zero = 0.0e0 )
85* ..
86* .. Local Scalars ..
87 INTEGER I, K
88 COMPLEX*16 AII
89* ..
90* .. Intrinsics ..
91 INTRINSIC min, dble, dimag
92* ..
93* .. Executable Statements ..
94 k = min( m, n )
95 DO i = 1, k
96 aii = a( i, i )
97 IF( dble( aii ).LT.zero.OR.dimag( aii ).NE.zero ) THEN
98 zgennd = .false.
99 RETURN
100 END IF
101 END DO
102 zgennd = .true.
103 RETURN
logical function zgennd(m, n, a, lda)
ZGENND
Definition zgennd.f:68
Here is the call graph for this function:
Here is the caller graph for this function: