LAPACK  3.6.1 LAPACK: Linear Algebra PACKage
 complex function cdotc ( integer N, complex, dimension(*) CX, integer INCX, complex, dimension(*) CY, integer INCY )

CDOTC

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

Definition at line 54 of file cdotc.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 cx(*),cy(*)
65 * ..
66 *
67 * =====================================================================
68 *
69 * .. Local Scalars ..
70  COMPLEX ctemp
71  INTEGER i,ix,iy
72 * ..
73 * .. Intrinsic Functions ..
74  INTRINSIC conjg
75 * ..
76  ctemp = (0.0,0.0)
77  cdotc = (0.0,0.0)
78  IF (n.LE.0) RETURN
79  IF (incx.EQ.1 .AND. incy.EQ.1) THEN
80 *
81 * code for both increments equal to 1
82 *
83  DO i = 1,n
84  ctemp = ctemp + conjg(cx(i))*cy(i)
85  END DO
86  ELSE
87 *
88 * code for unequal increments or equal increments
89 * not equal to 1
90 *
91  ix = 1
92  iy = 1
93  IF (incx.LT.0) ix = (-n+1)*incx + 1
94  IF (incy.LT.0) iy = (-n+1)*incy + 1
95  DO i = 1,n
96  ctemp = ctemp + conjg(cx(ix))*cy(iy)
97  ix = ix + incx
98  iy = iy + incy
99  END DO
100  END IF
101  cdotc = ctemp
102  RETURN
complex function cdotc(N, CX, INCX, CY, INCY)
CDOTC
Definition: cdotc.f:54

Here is the caller graph for this function: