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

◆ ilaslc()

integer function ilaslc ( integer m,
integer n,
real, dimension( lda, * ) a,
integer lda )

ILASLC scans a matrix for its last non-zero column.

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

Purpose:
!>
!> ILASLC scans A for its last non-zero column.
!> 
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 REAL 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 ilaslc.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 REAL A( LDA, * )
86* ..
87*
88* =====================================================================
89*
90* .. Parameters ..
91 REAL ZERO
92 parameter( zero = 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 ilaslc = n
102 ELSE IF( a(1, n).NE.zero .OR. a(m, n).NE.zero ) THEN
103 ilaslc = n
104 ELSE
105* Now scan each column from the end, returning with the first non-zero.
106 DO ilaslc = n, 1, -1
107 DO i = 1, m
108 IF( a(i, ilaslc).NE.zero ) RETURN
109 END DO
110 END DO
111 END IF
112 RETURN
integer function ilaslc(m, n, a, lda)
ILASLC scans a matrix for its last non-zero column.
Definition ilaslc.f:76
Here is the call graph for this function:
Here is the caller graph for this function: