KPG1_DIVx

Divides two vectorised arrays with optional variance information

Description:

The routine divides one vectorised array by another, with optional variance information. Bad value checking is also performed if required.

Invocation

CALL KPG1_DIVx( BAD, VAR, EL, A, VA, B, VB, C, VC, NBAD, STATUS )

Arguments

BAD = LOGICAL (Given)
Whether it is necessary to check for bad values in the input arrays. The routine will execute more rapidly if this checking can be omitted.
VAR = LOGICAL (Given)
Whether associated variance information is to be processed.
EL = INTEGER (Given)
Number of array elements to process.
A( EL ) = ? (Given)
First array of data, to be divided by the second array.
VA( EL ) = ? (Given)
Variance values associated with the array A. Not used if VAR is set to .FALSE..
B( EL ) = ? (Given)
Second array of data, to be divided into the first array.
VB( EL ) = ? (Given)
Variance values associated with the array B. Not used if VAR is set to .FALSE..
C( EL ) = ? (Returned)
Result of dividing array A by array B.
VC( EL ) = ? (Returned)
Variance values associated with the array C. Not used if VAR is set to .FALSE..
NBAD = INTEGER (Returned)
Number of VAL__BADx values in the returned results array (C).
STATUS = INTEGER (Given and Returned)
The global status.

Notes: