Subroutine */
| 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: */ |
no outgoing calls
no test coverage detected