KPG1_VASVx

Assigns values to an output array from an input array using a list of indices

Description:

This routine assigns values to an output vector from an input vector. The values are selected using a list of indices in the input vector, there being one index per output value. A bad value or a value outside the bounds of the array in the list of indices causes a bad value to be assigned to the output array.

Invocation

CALL KPG1_VASVx( OEL, INDICE, IEL, INARR, OUTARR, NBAD, STATUS )

Arguments

OEL = INTEGER (Given)
The dimension of the output vector and also the list of indices.
INDICE( OEL ) = INTEGER (Given)
The indices in the input array that point to the values to be assigned to the output vector.
IEL = INTEGER (Given)
The dimension of the input vector.
INARR( IEL ) = ? (Given)
The vector containing values to be given to the output vector.
OUTARR( OEL ) = ? (Returned)
The vector containing values copied from the input vector according to the list of indices.
NBAD = INTEGER (Returned)
The number of bad values in the output array.
STATUS = INTEGER (Given)
The global status.

Notes: