LAPACK
3.12.1
LAPACK: Linear Algebra PACKage
Toggle main menu visibility
Main Page
Related Pages
Routines
Modules
Modules List
Module Members
All
c
d
s
z
Functions/Subroutines
Variables
c
d
s
z
Data Types
Data Types List
Data Type Index
Data Fields
All
Functions/Subroutines
Variables
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
p
r
s
t
u
x
z
Functions/Subroutines
_
a
c
d
f
g
h
i
l
m
s
t
x
z
Variables
c
l
r
Typedefs
Enumerations
Enumerator
Macros
a
b
c
f
i
p
t
u
x
▼
LAPACK
►
LAPACK
►
Routines
►
Modules
►
Data Types
▼
Files
▼
File List
▼
BLAS
▼
SRC
►
caxpy.f
►
ccopy.f
►
cdotc.f
►
cdotu.f
►
cgbmv.f
►
cgemm.f
►
cgemmtr.f
►
cgemv.f
►
cgerc.f
►
cgeru.f
►
chbmv.f
►
chemm.f
►
chemv.f
►
cher.f
►
cher2.f
►
cher2k.f
►
cherk.f
►
chpmv.f
►
chpr.f
►
chpr2.f
►
crotg.f90
►
cscal.f
►
csrot.f
►
csscal.f
►
cswap.f
►
csymm.f
►
csyr2k.f
►
csyrk.f
►
ctbmv.f
►
ctbsv.f
►
ctpmv.f
►
ctpsv.f
►
ctrmm.f
►
ctrmv.f
►
ctrsm.f
►
ctrsv.f
►
dasum.f
►
daxpy.f
►
dcabs1.f
►
dcopy.f
►
ddot.f
►
dgbmv.f
►
dgemm.f
►
dgemmtr.f
►
dgemv.f
►
dger.f
►
dnrm2.f90
►
drot.f
►
drotg.f90
►
drotm.f
►
drotmg.f
►
dsbmv.f
►
dscal.f
►
dsdot.f
►
dspmv.f
►
dspr.f
►
dspr2.f
►
dswap.f
►
dsymm.f
►
dsymv.f
►
dsyr.f
►
dsyr2.f
►
dsyr2k.f
►
dsyrk.f
►
dtbmv.f
►
dtbsv.f
►
dtpmv.f
►
dtpsv.f
►
dtrmm.f
►
dtrmv.f
►
dtrsm.f
►
dtrsv.f
►
dzasum.f
►
dznrm2.f90
►
icamax.f
►
idamax.f
►
isamax.f
►
izamax.f
►
sasum.f
►
saxpy.f
►
scabs1.f
►
scasum.f
►
scnrm2.f90
►
scopy.f
►
sdot.f
►
sdsdot.f
►
sgbmv.f
►
sgemm.f
►
sgemmtr.f
►
sgemv.f
►
sger.f
►
snrm2.f90
►
srot.f
►
srotg.f90
►
srotm.f
►
srotmg.f
►
ssbmv.f
►
sscal.f
►
sspmv.f
►
sspr.f
►
sspr2.f
►
sswap.f
►
ssymm.f
►
ssymv.f
►
ssyr.f
►
ssyr2.f
►
ssyr2k.f
►
ssyrk.f
►
stbmv.f
►
stbsv.f
►
stpmv.f
►
stpsv.f
►
strmm.f
►
strmv.f
►
strsm.f
►
strsv.f
►
zaxpy.f
►
zcopy.f
►
zdotc.f
►
zdotu.f
►
zdrot.f
►
zdscal.f
►
zgbmv.f
►
zgemm.f
►
zgemmtr.f
►
zgemv.f
►
zgerc.f
►
zgeru.f
►
zhbmv.f
►
zhemm.f
►
zhemv.f
►
zher.f
►
zher2.f
►
zher2k.f
►
zherk.f
►
zhpmv.f
►
zhpr.f
►
zhpr2.f
►
zrotg.f90
►
zscal.f
►
zswap.f
►
zsymm.f
►
zsyr2k.f
►
zsyrk.f
►
ztbmv.f
►
ztbsv.f
►
ztpmv.f
►
ztpsv.f
►
ztrmm.f
►
ztrmv.f
►
ztrsm.f
►
ztrsv.f
►
TESTING
►
CBLAS
DOCS
►
INSTALL
►
SRC
►
TESTING
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
icamax.f
Go to the documentation of this file.
1
*> \brief \b ICAMAX
2
*
3
* =========== DOCUMENTATION ===========
4
*
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
7
*
8
* Definition:
9
* ===========
10
*
11
* INTEGER FUNCTION ICAMAX(N,CX,INCX)
12
*
13
* .. Scalar Arguments ..
14
* INTEGER INCX,N
15
* ..
16
* .. Array Arguments ..
17
* COMPLEX CX(*)
18
* ..
19
*
20
*
21
*> \par Purpose:
22
* =============
23
*>
24
*> \verbatim
25
*>
26
*> ICAMAX finds the index of the first element having maximum |Re(.)| + |Im(.)|
27
*> \endverbatim
28
*
29
* Arguments:
30
* ==========
31
*
32
*> \param[in] N
33
*> \verbatim
34
*> N is INTEGER
35
*> number of elements in input vector(s)
36
*> \endverbatim
37
*>
38
*> \param[in] CX
39
*> \verbatim
40
*> CX is COMPLEX array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
41
*> \endverbatim
42
*>
43
*> \param[in] INCX
44
*> \verbatim
45
*> INCX is INTEGER
46
*> storage spacing between elements of CX
47
*> \endverbatim
48
*
49
* Authors:
50
* ========
51
*
52
*> \author Univ. of Tennessee
53
*> \author Univ. of California Berkeley
54
*> \author Univ. of Colorado Denver
55
*> \author NAG Ltd.
56
*
57
*> \ingroup iamax
58
*
59
*> \par Further Details:
60
* =====================
61
*>
62
*> \verbatim
63
*>
64
*> jack dongarra, linpack, 3/11/78.
65
*> modified 3/93 to return if incx .le. 0.
66
*> modified 12/3/93, array(1) declarations changed to array(*)
67
*> \endverbatim
68
*>
69
* =====================================================================
70
INTEGER
FUNCTION
icamax
(N,CX,INCX)
71
*
72
* -- Reference BLAS level1 routine --
73
* -- Reference BLAS is a software package provided by Univ. of Tennessee, --
74
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
75
*
76
* .. Scalar Arguments ..
77
INTEGER
incx,n
78
* ..
79
* .. Array Arguments ..
80
COMPLEX
cx(*)
81
* ..
82
*
83
* =====================================================================
84
*
85
* .. Local Scalars ..
86
REAL
smax
87
INTEGER
i,ix
88
* ..
89
* .. External Functions ..
90
REAL
scabs1
91
EXTERNAL
scabs1
92
* ..
93
icamax
= 0
94
IF
(n.LT.1 .OR. incx.LE.0)
RETURN
95
icamax
= 1
96
IF
(n.EQ.1)
RETURN
97
IF
(incx.EQ.1)
THEN
98
*
99
* code for increment equal to 1
100
*
101
smax =
scabs1
(cx(1))
102
DO
i = 2,n
103
IF
(
scabs1
(cx(i)).GT.smax)
THEN
104
icamax
= i
105
smax =
scabs1
(cx(i))
106
END IF
107
END DO
108
ELSE
109
*
110
* code for increment not equal to 1
111
*
112
ix = 1
113
smax =
scabs1
(cx(1))
114
ix = ix + incx
115
DO
i = 2,n
116
IF
(
scabs1
(cx(ix)).GT.smax)
THEN
117
icamax
= i
118
smax =
scabs1
(cx(ix))
119
END IF
120
ix = ix + incx
121
END DO
122
END IF
123
RETURN
124
*
125
* End of ICAMAX
126
*
70
INTEGER
FUNCTION
icamax
(N,CX,INCX)
…
127
END
scabs1
real function scabs1(z)
SCABS1
Definition
scabs1.f:46
icamax
integer function icamax(n, cx, incx)
ICAMAX
Definition
icamax.f:71
BLAS
SRC
icamax.f
Generated on Mon Jan 20 2025 17:18:05 for LAPACK by
1.11.0