KPG1_CSUBx

Subtracts a constant from each element of a vectorised array

Description:

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

Invocation

CALL KPG1_CSUBx( 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 subtracted from 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: