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
n |
| n | ||
s = ∑ xi yi | and | s = ∑ | x | i yi |
i = 1 |
| i = 1 |
where x is the complex conjugate of x. The vectors can be stored in
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)
84HP MLIB User’s Guide