- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This
routine replaces a specified element of a vectorised array with a supplied value and returns the former
value of the element.
Invocation
CALL KPG1_CHELx( EL, CHEL, NEWVAL, ARRAY, OLDVAL, STATUS
)
Arguments
EL = INTEGER (Given)
The dimension of the array.
CHEL = INTEGER (Given)
The element number to be replaced. It must lie between 1 and EL, otherwise an error report is made.
NEWVAL = ? (Given)
The new value of the element.
ARRAY( EL ) = ? (Given and Replaced)
The
array whose value is to be replaced.
OLDVAL = ? (Returned)
The former value of the array
element.
STATUS = INTEGER (Given and Returned)
Global status value
Notes:
-
There is a routine for each numeric data type: replace " x" in the routine name by I, R, or D as
appropriate. Arguments ARRAY, NEWVAL and OLDVAL must have the data type specified.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑