HP MLIB User's Guide Vol. 2 7th Ed.
Chapter 12 VMATH 863
The exponentiation operation on corresponding elements of two vectors vspow, vdpow
Name vspow, vdpow
The exponentiation operation on corresponding elements of two vectors
Purpose vspow and vdpow calculate the exponentiation operation on vector element
pairs:
y(i) = a(i)**b(i), for 1 <= i <= n
Usage The Fortran include file math.fi declares interfaces for these subroutines,
suitable for both VMATH and VMATH8. The interfaces are compatible with
Intel’s MKL VML (Vector Math Library).
SUBROUTINE vspow(n, a, b, y)
INTEGER, INTENT(IN) :: n
REAL (KIND=4), DIMENSION(n), INTENT(IN) :: a, b
REAL (KIND=4), DIMENSION(n), INTENT(OUT):: y
SUBROUTINE vdpow(n, a, b, y)
INTEGER, INTENT(IN) :: n
REAL (KIND=8), DIMENSION(n), INTENT(IN) :: a, b
REAL (KIND=8), DIMENSION(n), INTENT(OUT):: y
Input n Number of elements to be calculated.
a Array of length at least n, specifying the input vector of
bases.
b Array of length at least n, specifying the input vector of
exponents.
Output y Array of length at least n specifying the output vector.