HP MLIB User's Guide Vol. 2 7th Ed.
Chapter 12 VMATH 865
The square root of the elements of a vector, with variable increments vsqrt
Name vsqrt
The square root of the elements of a vector, with variable increments
Purpose vsqrt calculates the square root function of vector elements:
y(1+(i-1)*incy) = sqrt(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 vsqrt. The vmath.h header uses type int* for integer parameters
of vsqrt. The vmath8.h header uses type long long*.
SUBROUTINE vsqrt(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.