XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ idamax()

int idamax ( int  n,
double  x[],
int  incx 
)

Index of the first element having maximum absolute value (BLAS 1)

Purpose
This routine finds the index of the first element having maximum absolute value.
Returns
The index of the first element having maximum absolute value of input vector.
Parameters
[in]nNumber of elements in input vector.
[in]x[]Array x[lx] (lx >= 1 + (n - 1)*abs(incx))
Input vector x.
[in]incxStorage spacing between elements of x.
Reference
BLAS