LAPACK
3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
zcopy.f
Go to the documentation of this file.
1
*> \brief \b ZCOPY
2
*
3
* =========== DOCUMENTATION ===========
4
*
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
7
*
8
* Definition:
9
* ===========
10
*
11
* SUBROUTINE ZCOPY(N,ZX,INCX,ZY,INCY)
12
*
13
* .. Scalar Arguments ..
14
* INTEGER INCX,INCY,N
15
* ..
16
* .. Array Arguments ..
17
* COMPLEX*16 ZX(*),ZY(*)
18
* ..
19
*
20
*
21
*> \par Purpose:
22
* =============
23
*>
24
*> \verbatim
25
*>
26
*> ZCOPY copies a vector, x, to a vector, y.
27
*> \endverbatim
28
*
29
* Arguments:
30
* ==========
31
*
32
*> \param[in] N
33
*> \verbatim
34
*> N is INTEGER
35
*> number of elements in input vector(s)
36
*> \endverbatim
37
*>
38
*> \param[in] ZX
39
*> \verbatim
40
*> ZX is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCX ) )
41
*> \endverbatim
42
*>
43
*> \param[in] INCX
44
*> \verbatim
45
*> INCX is INTEGER
46
*> storage spacing between elements of ZX
47
*> \endverbatim
48
*>
49
*> \param[out] ZY
50
*> \verbatim
51
*> ZY is COMPLEX*16 array, dimension ( 1 + ( N - 1 )*abs( INCY ) )
52
*> \endverbatim
53
*>
54
*> \param[in] INCY
55
*> \verbatim
56
*> INCY is INTEGER
57
*> storage spacing between elements of ZY
58
*> \endverbatim
59
*
60
* Authors:
61
* ========
62
*
63
*> \author Univ. of Tennessee
64
*> \author Univ. of California Berkeley
65
*> \author Univ. of Colorado Denver
66
*> \author NAG Ltd.
67
*
68
*> \ingroup copy
69
*
70
*> \par Further Details:
71
* =====================
72
*>
73
*> \verbatim
74
*>
75
*> jack dongarra, linpack, 4/11/78.
76
*> modified 12/3/93, array(1) declarations changed to array(*)
77
*> \endverbatim
78
*>
79
* =====================================================================
80
SUBROUTINE
zcopy
(N,ZX,INCX,ZY,INCY)
81
*
82
* -- Reference BLAS level1 routine --
83
* -- Reference BLAS is a software package provided by Univ. of Tennessee, --
84
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
85
*
86
* .. Scalar Arguments ..
87
INTEGER
INCX,INCY,N
88
* ..
89
* .. Array Arguments ..
90
COMPLEX*16
ZX(*),ZY(*)
91
* ..
92
*
93
* =====================================================================
94
*
95
* .. Local Scalars ..
96
INTEGER
I,IX,IY
97
* ..
98
IF
(n.LE.0)
RETURN
99
IF
(incx.EQ.1 .AND. incy.EQ.1)
THEN
100
*
101
* code for both increments equal to 1
102
*
103
DO
i = 1,n
104
zy(i) = zx(i)
105
END DO
106
ELSE
107
*
108
* code for unequal increments or equal increments
109
* not equal to 1
110
*
111
ix = 1
112
iy = 1
113
IF
(incx.LT.0) ix = (-n+1)*incx + 1
114
IF
(incy.LT.0) iy = (-n+1)*incy + 1
115
DO
i = 1,n
116
zy(iy) = zx(ix)
117
ix = ix + incx
118
iy = iy + incy
119
END DO
120
END IF
121
RETURN
122
*
123
* End of ZCOPY
124
*
125
END
zcopy
subroutine zcopy(n, zx, incx, zy, incy)
ZCOPY
Definition
zcopy.f:81
BLAS
SRC
zcopy.f
Generated on Tue Nov 28 2023 11:55:04 for LAPACK by
1.9.7