LAPACK  3.6.1 LAPACK: Linear Algebra PACKage
 complex*16 function zdotu ( integer N, complex*16, dimension(*) ZX, integer INCX, complex*16, dimension(*) ZY, integer INCY )

ZDOTU

Purpose:
``` ZDOTU forms the dot product of two complex vectors
ZDOTU = X^T * Y```
Date
November 2015
Further Details:
```     jack dongarra, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)```

Definition at line 54 of file zdotu.f.

54 *
55 * -- Reference BLAS level1 routine (version 3.6.0) --
56 * -- Reference BLAS is a software package provided by Univ. of Tennessee, --
57 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
58 * November 2015
59 *
60 * .. Scalar Arguments ..
61  INTEGER incx,incy,n
62 * ..
63 * .. Array Arguments ..
64  COMPLEX*16 zx(*),zy(*)
65 * ..
66 *
67 * =====================================================================
68 *
69 * .. Local Scalars ..
70  COMPLEX*16 ztemp
71  INTEGER i,ix,iy
72 * ..
73  ztemp = (0.0d0,0.0d0)
74  zdotu = (0.0d0,0.0d0)
75  IF (n.LE.0) RETURN
76  IF (incx.EQ.1 .AND. incy.EQ.1) THEN
77 *
78 * code for both increments equal to 1
79 *
80  DO i = 1,n
81  ztemp = ztemp + zx(i)*zy(i)
82  END DO
83  ELSE
84 *
85 * code for unequal increments or equal increments
86 * not equal to 1
87 *
88  ix = 1
89  iy = 1
90  IF (incx.LT.0) ix = (-n+1)*incx + 1
91  IF (incy.LT.0) iy = (-n+1)*incy + 1
92  DO i = 1,n
93  ztemp = ztemp + zx(ix)*zy(iy)
94  ix = ix + incx
95  iy = iy + incy
96  END DO
97  END IF
98  zdotu = ztemp
99  RETURN
complex *16 function zdotu(N, ZX, INCX, ZY, INCY)
ZDOTU
Definition: zdotu.f:54

Here is the caller graph for this function: