3 * =========== DOCUMENTATION
===========
5 * Online html documentation available at
6 * http
://www
.netlib
.org
/lapack
/explore
-html
/
9 *> Download ILAZLR
+ dependencies
10 *> <a href
="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ilazlr.f">
12 *> <a href
="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ilazlr.f">
14 *> <a href
="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ilazlr.f">
21 * INTEGER FUNCTION ILAZLR
( M
, N
, A
, LDA
)
23 * .. Scalar Arguments
..
26 * .. Array Arguments
..
27 * COMPLEX*16 A
( LDA
, * )
36 *> ILAZLR scans A
for its last non
-zero row
.
45 *> The number of rows of the matrix A
.
51 *> The number of columns of the matrix A
.
56 *> A is COMPLEX*16 array
, dimension (LDA
,N
)
57 *> The m by n matrix A
.
63 *> The leading
dimension of the array A
. LDA
>= max
(1,M
).
69 *> \author Univ
. of Tennessee
70 *> \author Univ
. of California Berkeley
71 *> \author Univ
. of Colorado Denver
76 *> \ingroup complex16OTHERauxiliary
78 * =====================================================================
79 INTEGER FUNCTION ILAZLR
( M
, N
, A
, LDA
)
81 * -- LAPACK auxiliary routine
(version
3.4.1) --
82 * -- LAPACK is a software package provided by Univ
. of Tennessee
, --
83 * -- Univ
. of California Berkeley
, Univ
. of Colorado Denver and NAG Ltd
..--
86 * .. Scalar Arguments
..
89 * .. Array Arguments
..
90 COMPLEX*16 A
( LDA
, * )
93 * =====================================================================
97 PARAMETER ( ZERO
= (0.0D
+0, 0.0D
+0) )
102 * .. Executable Statements
..
104 * Quick test
for the
common case where one corner is non
-zero
.
107 ELSE IF( A
(M
, 1).NE
.ZERO
.OR
. A
(M
, N
).NE
.ZERO
) THEN
110 * Scan up each column tracking the last zero row seen
.
114 DO WHILE((A
(MAX
(I
,1),J
).EQ
.ZERO
).AND
.(I
.GE
.1))
117 ILAZLR
= MAX
( ILAZLR
, I
)