1 *> \brief \b ICMAX1 finds the index of the first vector element of maximum absolute value.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download ICMAX1 + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/icmax1.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/icmax1.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/icmax1.f">
21 * INTEGER FUNCTION ICMAX1( N, CX, INCX )
23 * .. Scalar Arguments ..
26 * .. Array Arguments ..
36 *> ICMAX1 finds the index of the first vector element of maximum absolute value.
38 *> Based on ICAMAX from Level 1 BLAS.
39 *> The change is to use the 'genuine' absolute value.
48 *> The number of elements in the vector CX.
53 *> CX is COMPLEX array, dimension (N)
54 *> The vector CX. The ICMAX1 function returns the index of its first
55 *> element of maximum absolute value.
61 *> The spacing between successive values of CX. INCX >= 1.
67 *> \author Univ. of Tennessee
68 *> \author Univ. of California Berkeley
69 *> \author Univ. of Colorado Denver
72 *> \date February 2014
74 *> \ingroup complexOTHERauxiliary
79 *> Nick Higham for use with CLACON.
81 * =====================================================================
82 INTEGER FUNCTION ICMAX1( N, CX, INCX )
84 * -- LAPACK auxiliary routine (version 3.6.0) --
85 * -- LAPACK is a software package provided by Univ. of Tennessee, --
86 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
89 * .. Scalar Arguments ..
92 * .. Array Arguments ..
96 * =====================================================================
102 * .. Intrinsic Functions ..
105 * .. Executable Statements ..
108 IF (N.LT.1 .OR. INCX.LE.0) RETURN
113 * code for increment equal to 1
117 IF (ABS(CX(I)).GT.SMAX) THEN
124 * code for increment not equal to 1
130 IF (ABS(CX(IX)).GT.SMAX) THEN