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

Function zcopy_

numpy/linalg/lapack_lite/f2c_blas.c:15195–15267  ·  view source on GitHub ↗

Subroutine */

Source from the content-addressed store, hash-verified

15193} /* zaxpy_ */
15194
15195/* Subroutine */ int zcopy_(integer *n, doublecomplex *zx, integer *incx,
15196 doublecomplex *zy, integer *incy)
15197{
15198 /* System generated locals */
15199 integer i__1, i__2, i__3;
15200
15201 /* Local variables */
15202 static integer i__, ix, iy;
15203
15204
15205/*
15206 Purpose
15207 =======
15208
15209 ZCOPY copies a vector, x, to a vector, y.
15210
15211 Further Details
15212 ===============
15213
15214 jack dongarra, linpack, 4/11/78.
15215 modified 12/3/93, array(1) declarations changed to array(*)
15216
15217 =====================================================================
15218*/
15219
15220 /* Parameter adjustments */
15221 --zy;
15222 --zx;
15223
15224 /* Function Body */
15225 if (*n <= 0) {
15226 return 0;
15227 }
15228 if (*incx == 1 && *incy == 1) {
15229 goto L20;
15230 }
15231
15232/*
15233 code for unequal increments or equal increments
15234 not equal to 1
15235*/
15236
15237 ix = 1;
15238 iy = 1;
15239 if (*incx < 0) {
15240 ix = (-(*n) + 1) * *incx + 1;
15241 }
15242 if (*incy < 0) {
15243 iy = (-(*n) + 1) * *incy + 1;
15244 }
15245 i__1 = *n;
15246 for (i__ = 1; i__ <= i__1; ++i__) {
15247 i__2 = iy;
15248 i__3 = ix;
15249 zy[i__2].r = zx[i__3].r, zy[i__2].i = zx[i__3].i;
15250 ix += *incx;
15251 iy += *incy;
15252/* L10: */

Callers 12

zhseqr_Function · 0.85
zlaed0_Function · 0.85
zlaed8_Function · 0.85
zlahqr_Function · 0.85
zlahr2_Function · 0.85
zlals0_Function · 0.85
zlalsa_Function · 0.85
zlalsd_Function · 0.85
zlaqr2_Function · 0.85
zlaqr3_Function · 0.85
zlarfb_Function · 0.85
ztrevc_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected