- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This
routine determines whether or not adjacent elements of a 1-d array have values that are equally
spaced, i.e. it tests for linearity. It simply checks if the intervals between all successive pairs of
elements are the same within the machine precision.
Invocation
CALL KPG1_AXLIx( EL, ARRAY,
LVAL, UVAL, LINEAR, STATUS )
Arguments
EL = INTEGER (Given)
The number of elements in
the array. It must be at least two.
ARRAY( EL ) = ? (Given)
The array to be tested.
LVAL = ?
(Returned)
Value of the first array element. If this is bad an estimated value is substituted when the
array is linear.
UVAL = ? (Returned)
Value of the last array element. If this is bad an
estimated value is substituted when the array is linear.
LINEAR = LOGICAL (Returned)
True if the array is linear.
STATUS = INTEGER (Given)
The global status.
Notes:
-
There is a routine for most numeric data types: replace "
x"
in the routine name by D, R, I, W, or UW
as appropriate. The array (and the variables for the first and last array elements) supplied to the
routine must have the data type specified.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑