 LAPACK  3.10.1 LAPACK: Linear Algebra PACKage

## ◆ zdotc()

 complex*16 function zdotc ( integer N, complex*16, dimension(*) ZX, integer INCX, complex*16, dimension(*) ZY, integer INCY )

ZDOTC

Purpose:
``` ZDOTC forms the dot product of two complex vectors
ZDOTC = X^H * Y```
Parameters
 [in] N ``` N is INTEGER number of elements in input vector(s)``` [in] ZX ` ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) )` [in] INCX ``` INCX is INTEGER storage spacing between elements of ZX``` [in] ZY ` ZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) )` [in] INCY ``` INCY is INTEGER storage spacing between elements of ZY```
Further Details:
```     jack dongarra, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)```

Definition at line 82 of file zdotc.f.

83 *
84 * -- Reference BLAS level1 routine --
85 * -- Reference BLAS is a software package provided by Univ. of Tennessee, --
86 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
87 *
88 * .. Scalar Arguments ..
89  INTEGER INCX,INCY,N
90 * ..
91 * .. Array Arguments ..
92  COMPLEX*16 ZX(*),ZY(*)
93 * ..
94 *
95 * =====================================================================
96 *
97 * .. Local Scalars ..
98  COMPLEX*16 ZTEMP
99  INTEGER I,IX,IY
100 * ..
101 * .. Intrinsic Functions ..
102  INTRINSIC dconjg
103 * ..
104  ztemp = (0.0d0,0.0d0)
105  zdotc = (0.0d0,0.0d0)
106  IF (n.LE.0) RETURN
107  IF (incx.EQ.1 .AND. incy.EQ.1) THEN
108 *
109 * code for both increments equal to 1
110 *
111  DO i = 1,n
112  ztemp = ztemp + dconjg(zx(i))*zy(i)
113  END DO
114  ELSE
115 *
116 * code for unequal increments or equal increments
117 * not equal to 1
118 *
119  ix = 1
120  iy = 1
121  IF (incx.LT.0) ix = (-n+1)*incx + 1
122  IF (incy.LT.0) iy = (-n+1)*incy + 1
123  DO i = 1,n
124  ztemp = ztemp + dconjg(zx(ix))*zy(iy)
125  ix = ix + incx
126  iy = iy + incy
127  END DO
128  END IF
129  zdotc = ztemp
130  RETURN
131 *
132 * End of ZDOTC
133 *
complex *16 function zdotc(N, ZX, INCX, ZY, INCY)
ZDOTC
Definition: zdotc.f:83
Here is the caller graph for this function: