LAPACK  3.8.0
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 REAL array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
[in]INCX
          INCX is INTEGER
         storage spacing between elements of ZX
[in]ZY
          ZY is REAL array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
[in]INCY
          INCY is INTEGER
         storage spacing between elements of ZY
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date
November 2017
Further Details:
     jack dongarra, 3/11/78.
     modified 12/3/93, array(1) declarations changed to array(*)

Definition at line 85 of file zdotc.f.

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