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

84 HP MLIB User’s Guide
SDOT/DDOT/CDOTC/CDOTU/ZDOTC/ZDOTU Dot product
Name SDOT/DDOT/CDOTC/CDOTU/ZDOTC/ZDOTU
Dot product
Purpose Given real or complex data vectors x and y of length n, these subprograms
compute the dot products
where is the complex conjugate of x. The vectors can be stored in
one-dimensional arrays or in either rows or columns of two-dimensional arrays.
Indexing through the arrays can be either forward or backward.
Usage VECLIB:
INTEGER*4 n, incx, incy
REAL*4 s, SDOT, x(lenx), y(leny)
s = SDOT(n, x, incx, y, incy)
INTEGER*4 n, incx, incy
REAL*8 s, DDOT, x(lenx), y(leny)
s = DDOT(n, x, incx, y, incy)
INTEGER*4 n, incx, incy
COMPLEX*8 s, CDOTC, x(lenx), y(leny)
s = CDOTC(n, x, incx, y, incy)
INTEGER*4 n, incx, incy
COMPLEX*8 s, CDOTU, x(lenx), y(leny)
s = CDOTU(n, x, incx, y, incy)
INTEGER*4 n, incx, incy
COMPLEX*16 s, ZDOTC, x(lenx), y(leny)
s = ZDOTC(n, x, incx, y, incy)
INTEGER*4 n, incx, incy
COMPLEX*16 s, ZDOTU, x(lenx), y(leny)
s = ZDOTU(n, x, incx, y, incy)
VECLIB8:
INTEGER*8 n, incx, incy
REAL*4 s, SDOT, x(lenx), y(leny)
s = SDOT(n, x, incx, y, incy)
sx
i
y
i
i 1=
n
= and sx
i
y
i
i 1=
n
=
x