ISAMIN/IDAMIN/IIAMIN/ICAMIN/IZAMIN | Index of minimum of magnitudes | |
| VECLIB8: |
|
| INTEGER*8 | i, ISAMIN, n, incx |
| REAL*4 | x(lenx) |
| i = ISAMIN(n, x, incx) | |
| INTEGER*8 | i, IDAMIN, n, incx |
| REAL*8 | x(lenx) |
| i = IDAMIN(n, x, incx) | |
| INTEGER*8 | i, IIAMIN, n, incx, x(lenx) |
| i = IIAMIN(n, x, incx) | |
| INTEGER*8 | i, ICAMIN, n, incx |
| COMPLEX*8 | x(lenx) |
| i = ICAMIN(n, x, incx) | |
| INTEGER*8 | i, IZAMIN, n, incx |
| COMPLEX*16 | x(lenx) |
| i = IZAMIN(n, x, incx) | |
Input | n | Number of elements of vector x to be used. If n ≤ 0, the |
|
| subprograms do not reference x. |
| x | Array of length lenx = (n−1)⋅incx+1 containing the |
|
| |
| incx | Increment for the array x. x is stored forward in array x |
|
| with increment incx; that is, xi is stored in |
|
| x((i−1)⋅incx+1). |
|
| Use incx = 1 if the vector x is stored contiguously in |
|
| array x; that is, if xi is stored in x(i). Refer to “BLAS |
|
| Indexing Conventions” in the introduction to this |
|
| chapter. |
Output | i | If n ≤ 0, then i = 0. Otherwise, i is the index of the |
|
| element of x of minimum magnitude. |
44HP MLIB User’s Guide