HP MLIB User's Guide Vol. 2 7th Ed.

Chapter 12 VMATH 799
The base-e exponential of the elements of a vector, with variable increments vexp
Name vexp
The base-e exponential of the elements of a vector, with variable increments
Purpose vexp calculates the base-e exponential function of vector elements.
y(1+(i-1)*incy) = exp(x(1+(i-1)*incx)), for i=1 to n
Usage The Fortran include file math.fi declares an interface for this subroutine,
suitable for both VMATH and VMATH8. The interface is compatible with
Tru64 CXML (Compaq Extended Math Library).
The C include files vmath.h (for VMATH) and vmath8.h (for VMATH8) declare
prototypes for vexp. The vmath.h header uses type int* for integer parameters
of vexp. The vmath8.h header uses type long long*.
SUBROUTINE vexp(x, incx, y, incy, n)
INTEGER, INTENT(IN) :: incx, incy, n
REAL (KIND=8), DIMENSION(n), INTENT(IN) :: x
REAL (KIND=8), DIMENSION(n), INTENT(OUT):: y
Input x Array of length at least 1+(n-1)*incx containing the
elements of the input vector.
incx Positive increment for input vector stored (forward) in
array x.
incy Positive increment for output vector stored (forward) in
array y.
n Number of elements to be calculated.
Output y Array of length at least 1+(n-1)*incy receiving the
elements of the output vector.