![]() |
![]()
| ![]() |
![]()
NAMEHPL_idamax - 1st k s.t. |x_k| = max_i(|x_i|).SYNOPSIS#include "hpl.h" int HPL_idamax( const int N, const double * X, const int INCX );DESCRIPTIONHPL_idamax returns the index in an n-vector x of the first element having maximum absolute value.ARGUMENTS
EXAMPLE#include "hpl.h" int main(int argc, char *argv[])double x[3]; int imax; x[0] = 1.0; x[1] = 3.0; x[2] = 2.0; imax = HPL_idamax( 3, x, 1 ); printf("imax=%d\n", imax); exit(0); return(0); SEE ALSOHPL_daxpy (3), HPL_dcopy (3), HPL_dscal (3), HPL_dswap (3).
|