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

◆ ilaclr()

integer function ilaclr ( integer m,
integer n,
complex, dimension( lda, * ) a,
integer lda )

ILACLR scans a matrix for its last non-zero row.

Download ILACLR + dependencies [TGZ] [ZIP] [TXT]

Purpose:
!>
!> ILACLR scans A for its last non-zero row.
!> 
Parameters
[in]M
!>          M is INTEGER
!>          The number of rows of the matrix A.
!> 
[in]N
!>          N is INTEGER
!>          The number of columns of the matrix A.
!> 
[in]A
!>          A is COMPLEX array, dimension (LDA,N)
!>          The m by n matrix A.
!> 
[in]LDA
!>          LDA is INTEGER
!>          The leading dimension of the array A. LDA >= max(1,M).
!> 
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 75 of file ilaclr.f.

76*
77* -- LAPACK auxiliary routine --
78* -- LAPACK is a software package provided by Univ. of Tennessee, --
79* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
80*
81* .. Scalar Arguments ..
82 INTEGER M, N, LDA
83* ..
84* .. Array Arguments ..
85 COMPLEX A( LDA, * )
86* ..
87*
88* =====================================================================
89*
90* .. Parameters ..
91 COMPLEX ZERO
92 parameter( zero = (0.0e+0, 0.0e+0) )
93* ..
94* .. Local Scalars ..
95 INTEGER I, J
96* ..
97* .. Executable Statements ..
98*
99* Quick test for the common case where one corner is non-zero.
100 IF( m.EQ.0 ) THEN
101 ilaclr = m
102 ELSE IF( a(m, 1).NE.zero .OR. a(m, n).NE.zero ) THEN
103 ilaclr = m
104 ELSE
105* Scan up each column tracking the last zero row seen.
106 ilaclr = 0
107 DO j = 1, n
108 i=m
109 DO WHILE((a(max(i,1),j).EQ.zero).AND.(i.GE.1))
110 i=i-1
111 ENDDO
112 ilaclr = max( ilaclr, i )
113 END DO
114 END IF
115 RETURN
integer function ilaclr(m, n, a, lda)
ILACLR scans a matrix for its last non-zero row.
Definition ilaclr.f:76
Here is the call graph for this function:
Here is the caller graph for this function: