1 *> \brief \b ILASLR scans a matrix for its last non-zero row.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download ILASLR + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ilaslr.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ilaslr.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ilaslr.f">
21 * INTEGER FUNCTION ILASLR( M, N, A, LDA )
23 * .. Scalar Arguments ..
26 * .. Array Arguments ..
36 *> ILASLR 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 REAL 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
74 *> \date September 2012
76 *> \ingroup realOTHERauxiliary
78 * =====================================================================
79 INTEGER FUNCTION ILASLR( M, N, A, LDA )
81 * -- LAPACK auxiliary routine (version 3.4.2) --
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 ..
93 * =====================================================================
97 PARAMETER ( ZERO = 0.0E+0 )
102 * .. Executable Statements ..
104 * Quick test for the common case where one corner is non-zero.
107 ELSEIF( 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 ILASLR = MAX( ILASLR, I )