- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
The routine multiplies each element of a vectorised 64-bit- integer array
by a constant to produce a new 64-bit-integer array. Bad value checking is performed if
required.
Invocation
CALL KPG1_CMULK( BAD, EL, A, CONST, B, NBAD, 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 ) = INTEGER
8
(Given)
Input array.
CONST = DOUBLE PRECISION (Given)
Constant by which each array
element is to be multiplied.
B( EL ) = DOUBLE PRECISION (Returned)
Output array.
NBAD =
INTEGER (Returned)
Number of bad values in the output array B.
STATUS = INTEGER (Given and
Returned)
The global status.
Notes:
-
This routine is intended for processing 64-bit integer data only. There is a related generic routine for
processing other data types, except double precision which has its own routine like this
one.
-
This routine will handle numerical errors (i.e. overflow) by assigning the appropriate "
bad"
value to
affected output array elements.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑