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

864 HP MLIB User’s Guide
vspowx, vdpowx Elements of a vector raised to a scalar power
Name vspowx, vdpowx
Elements of a vector raised to a scalar power
Purpose vspowx and vdpowx calculate vector elements raised to a scalar power:
y(i) = a(i)**b, 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 vspowx(n, a, b, y)
INTEGER, INTENT(IN) :: n
REAL (KIND=4), DIMENSION(n), INTENT(IN) :: a
REAL (KIND=4), INTENT(IN) :: b
REAL (KIND=4), DIMENSION(n), INTENT(OUT):: y
SUBROUTINE vdpowx(n, a, b, y)
INTEGER, INTENT(IN) :: n
REAL (KIND=8), DIMENSION(n), INTENT(IN) :: a
REAL (KIND=8), INTENT(IN) :: 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 The exponent.
Output y Array of length at least n specifying the output vector.