LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
ilaclc.f
Go to the documentation of this file.
1*> \brief \b ILACLC scans a matrix for its last non-zero column.
2*
3* =========== DOCUMENTATION ===========
4*
5* Online html documentation available at
6* http://www.netlib.org/lapack/explore-html/
7*
8*> Download ILACLC + dependencies
9*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ilaclc.f">
10*> [TGZ]</a>
11*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ilaclc.f">
12*> [ZIP]</a>
13*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ilaclc.f">
14*> [TXT]</a>
15*
16* Definition:
17* ===========
18*
19* INTEGER FUNCTION ILACLC( M, N, A, LDA )
20*
21* .. Scalar Arguments ..
22* INTEGER M, N, LDA
23* ..
24* .. Array Arguments ..
25* COMPLEX A( LDA, * )
26* ..
27*
28*
29*> \par Purpose:
30* =============
31*>
32*> \verbatim
33*>
34*> ILACLC scans A for its last non-zero column.
35*> \endverbatim
36*
37* Arguments:
38* ==========
39*
40*> \param[in] M
41*> \verbatim
42*> M is INTEGER
43*> The number of rows of the matrix A.
44*> \endverbatim
45*>
46*> \param[in] N
47*> \verbatim
48*> N is INTEGER
49*> The number of columns of the matrix A.
50*> \endverbatim
51*>
52*> \param[in] A
53*> \verbatim
54*> A is COMPLEX array, dimension (LDA,N)
55*> The m by n matrix A.
56*> \endverbatim
57*>
58*> \param[in] LDA
59*> \verbatim
60*> LDA is INTEGER
61*> The leading dimension of the array A. LDA >= max(1,M).
62*> \endverbatim
63*
64* Authors:
65* ========
66*
67*> \author Univ. of Tennessee
68*> \author Univ. of California Berkeley
69*> \author Univ. of Colorado Denver
70*> \author NAG Ltd.
71*
72*> \ingroup ilalc
73*
74* =====================================================================
75 INTEGER FUNCTION ilaclc( M, N, A, LDA )
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
96* ..
97* .. Executable Statements ..
98*
99* Quick test for the common case where one corner is non-zero.
100 IF( n.EQ.0 ) THEN
101 ilaclc = n
102 ELSE IF( a(1, n).NE.zero .OR. a(m, n).NE.zero ) THEN
103 ilaclc = n
104 ELSE
105* Now scan each column from the end, returning with the first non-zero.
106 DO ilaclc = n, 1, -1
107 DO i = 1, m
108 IF( a(i, ilaclc).NE.zero ) RETURN
109 END DO
110 END DO
111 END IF
112 RETURN
113 END
integer function ilaclc(m, n, a, lda)
ILACLC scans a matrix for its last non-zero column.
Definition ilaclc.f:76