max1#

Functions

INT icmax1(
    const INT           n,
    const c64* restrict ZX,
    const INT           incx
);
INT icmax1(const INT n, const c64 *restrict ZX, const INT incx)#

ICMAX1 finds the index of the first vector element of maximum absolute value.

Based on IZAMAX from Level 1 BLAS. The change is to use the ‘genuine’ absolute value.

Parameters

in
n

The number of elements in the vector ZX.

in
ZX

Complex array, dimension (n). The vector ZX. The ICMAX1 function returns the index of its first element of maximum absolute value.

in
incx

The spacing between successive values of ZX. incx >= 1.

Functions

INT izmax1(
    const INT            n,
    const c128* restrict ZX,
    const INT            incx
);
INT izmax1(const INT n, const c128 *restrict ZX, const INT incx)#

IZMAX1 finds the index of the first vector element of maximum absolute value.

Based on IZAMAX from Level 1 BLAS. The change is to use the ‘genuine’ absolute value.

Parameters

in
n

The number of elements in the vector ZX.

in
ZX

Complex array, dimension (n). The vector ZX. The IZMAX1 function returns the index of its first element of maximum absolute value.

in
incx

The spacing between successive values of ZX. incx >= 1.