1
*> \brief \b ILAZLC scans a matrix for its last non-zero column.
3
* =========== DOCUMENTATION ===========
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
9
*> Download ILAZLC + dependencies
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ilazlc.f">
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ilazlc.f">
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ilazlc.f">
21
* INTEGER FUNCTION ILAZLC( M, N, A, LDA )
23
* .. Scalar Arguments ..
26
* .. Array Arguments ..
27
* COMPLEX*16 A( LDA, * )
36
*> ILAZLC scans A for its last non-zero column.
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
74
*> \date September 2012
76
*> \ingroup complex16OTHERauxiliary
78
* =====================================================================
79
INTEGER FUNCTION ILAZLC( 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 ..
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(1, N).NE.ZERO .OR. A(M, N).NE.ZERO ) THEN
110
* Now scan each column from the end, returning with the first non-zero.
113
IF( A(I, ILAZLC).NE.ZERO ) RETURN