- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This routine
returns values from a vector at supplied indices. This is intended for accessing a few values from a
mapped array.
Invocation
CALL KPG1_RETVx( EL, ARRAY, NVAL, INDEX, VALUES, STATUS )
Arguments
EL = INTEGER (Given)
The number of elements in the array.
ARRAY( EL ) = ?
(Given)
The input array.
NVAL = INTEGER (Given)
The number of element values
to return.
INDEX( NVAL ) = INTEGER (Given)
The indices of the array elements to
be returned.
VALUES( NVAL ) = ? (Returned)
The value of the Xth array element.
STATUS = INTEGER (Given and Returned)
The global status.
Implementation Status:
-
There is a routine for each of the numerics data types and logical: replace "
x"
in the routine name by
D, R, I, K, W, UW, B, UB, L as appropriate. The array supplied to the routine must have the data type
specified.
-
Bad status is returned if the supplied indices lie beyond the array bounds.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑