Developer Reference for Intel® oneAPI Math Kernel Library for C
i?max1
Finds the index of the vector element whose real part has maximum absolute value.
Syntax
MKL_INTicmax1 ( constMKL_INTn , constMKL_Complex8cx , constMKL_INTincx )
MKL_INTizmax1 ( constMKL_INTn , constMKL_Complex16cx , constMKL_INTincx )
Include Files
mkl.h
Description
icmax1 izmax1
Given a complex vector cx , the i?max1 functions return the index of the first vector element of maximum absolute value. These functions are based on the BLAS functions icamax / izamax , but using the absolute value of components. They are designed for use with clacon / zlacon .
Input Parameters
n
Specifies the number of elements in the vector cx .
- cx
-
COMPLEX for icmax1 DOUBLE COMPLEX for i zmax1 Array, size at least (1+(n-1)*abs(incx)) . Contains the input vector.
incx
Specifies the spacing between successive elements of cx .
Output Parameters
index
Index of the vector element of maximum absolute value.
Return Values
Index of the vector element of maximum absolute value.