CXML
CVMGP (3sciport)
Performs a conditional merge
SYNOPSIS
boolean = CVMGP( arg1, arg2, select )
FUNCTION VALUE
cvmgp Boolean. (Integer, Logical, or Real.)
The result of the conditional merge.
ARGUMENTS
arg1 Integer, Logical, or Real.
An input argument.
arg2 Integer, Logical, or Real.
An input argument.
select Integer, Logical, or Real.
The select argument.
DESCRIPTION
The external function CVMGP returns arg1 if the sign bit of select is set
to zero, otherwise arg2 is returned.
For equations and other information, see Volume 3: UNICOS Math and
Scientific Library Reference Manual SR-2081 7.0, Cray Research, Inc.
NOTES
Since CVMGP is not an ANSI Fortran 77 intrinsic function, it must be
declared as an external function of type integer, logical or real. For
example:
EXTERNAL CVMGP
LOGICAL CVMGP
LOGICAL P
...
P = CVMGP(.TRUE.,.FALSE.,-1.0) ! Same as P = .FALSE.
For more information about boolean functions, see the sciport man page.
CXML Home Page Index of CXML Routines