MCPcopy Create free account
hub / github.com/numpy/numpy / ccopy_

Function ccopy_

numpy/linalg/lapack_lite/f2c_blas.c:122–194  ·  view source on GitHub ↗

Subroutine */

Source from the content-addressed store, hash-verified

120} /* caxpy_ */
121
122/* Subroutine */ int ccopy_(integer *n, complex *cx, integer *incx, complex *
123 cy, integer *incy)
124{
125 /* System generated locals */
126 integer i__1, i__2, i__3;
127
128 /* Local variables */
129 static integer i__, ix, iy;
130
131
132/*
133 Purpose
134 =======
135
136 CCOPY copies a vector x to a vector y.
137
138 Further Details
139 ===============
140
141 jack dongarra, linpack, 3/11/78.
142 modified 12/3/93, array(1) declarations changed to array(*)
143
144 =====================================================================
145*/
146
147 /* Parameter adjustments */
148 --cy;
149 --cx;
150
151 /* Function Body */
152 if (*n <= 0) {
153 return 0;
154 }
155 if (*incx == 1 && *incy == 1) {
156 goto L20;
157 }
158
159/*
160 code for unequal increments or equal increments
161 not equal to 1
162*/
163
164 ix = 1;
165 iy = 1;
166 if (*incx < 0) {
167 ix = (-(*n) + 1) * *incx + 1;
168 }
169 if (*incy < 0) {
170 iy = (-(*n) + 1) * *incy + 1;
171 }
172 i__1 = *n;
173 for (i__ = 1; i__ <= i__1; ++i__) {
174 i__2 = iy;
175 i__3 = ix;
176 cy[i__2].r = cx[i__3].r, cy[i__2].i = cx[i__3].i;
177 ix += *incx;
178 iy += *incy;
179/* L10: */

Callers 12

chseqr_Function · 0.85
claed0_Function · 0.85
claed8_Function · 0.85
clahqr_Function · 0.85
clahr2_Function · 0.85
clals0_Function · 0.85
clalsa_Function · 0.85
clalsd_Function · 0.85
claqr2_Function · 0.85
claqr3_Function · 0.85
clarfb_Function · 0.85
ctrevc_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected