- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
The routine forms the product of two vectorised arrays, with optional
variance information. Bad value checking is also performed if required.
Invocation
CALL
KPG1_MULx( BAD, VAR, EL, A, VA, B, VB, C, VC, NERR, 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
multiplied.
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 multipled.
VB(
EL ) = ? (Given)
Variance values associated with the array B. Not used if VAR is set to
.FALSE..
C( EL ) = ? (Returned)
Result of multiplying arrays A and B.
VC( EL ) = ?
(Returned)
Variance values associated with the array C. Not used if VAR is set to .FALSE..
NERR = INTEGER (Returned)
Number of numerical errors that occurred during the
calculations.
STATUS = INTEGER (Given and Returned)
The global status.
Notes:
-
There is a routine for each of the data types integer, real and double precision: replace "
x"
in the
routine name by I, R or D as appropriate. The arrays passed to this routine should all have the
specified data type.
-
This routine will handle numerical overflow. If overflow occurs, then affected output array elements
will be set to the "
bad"
value. A count of the numerical errors which occur is returned via the NERR
argument.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑