KPG1_CADDx

Adds a constant to each element of a vectorised array

Description:

The routine adds a constant to each element of a vectorised array to produce a new array. Bad value checking is performed if required.

Invocation

CALL KPG1_CADDx( BAD, EL, A, CONST, B, NERR, STATUS )

Arguments

BAD = LOGICAL (Given)
Whether to check for bad values in the input array.
EL = INTEGER (Given)
Number of array elements to process.
A( EL ) = ? (Given)
Input array.
CONST = DOUBLE PRECISION (Given)
Constant to be added to each array element.
B( EL ) = ? (Returned)
Output array.
NERR = INTEGER (Returned)
Number of numerical errors which occurred while processing the array.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: