JCublasJava/src/main/java/jcuda/jcublas/JCublas.java
public static int cublasIcamin(int n, Pointer x, int incx)
    {
        int result = cublasIcaminNative(n, x, incx);
        checkResultBLAS();
        return result;
    }
public static int cublasIcamin(int n, Pointer x, int incx)
    {
        int result = cublasIcaminNative(n, x, incx);
        checkResultBLAS();
        return result;
    }
<pre>
int
cublasIcamin (int n, const float *x, int incx)

finds the smallest index of the element having minimum absolute value
in single-complex vector x; that is, the result is the first i, i = 0
to n - 1 that minimizes abs(real(x[1+i*incx]))+abs(imag(x[1 + i * incx])).

Input
-----
n      number of elements in input vector
x      single-complex vector with n elements
incx   storage spacing between elements of x

Output
------
returns the smallest index (0 if n <= 0 or incx <= 0)

Reference: see ICAMAX.

Error status for this function can be retrieved via cublasGetError().

Error Status
------------
CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized
CUBLAS_STATUS_EXECUTION_FAILED if function failed to launch on GPU
</pre>