20 integer i__1, i__2, i__3, i__4, i__5;
28 integer i__,
j, k, kk, ix, iy, jx, jy, kx, ky,
info;
154 }
else if (*incx == 0) {
156 }
else if (*incy == 0) {
166 if (*n == 0 || (alpha->
r == 0. && alpha->
i == 0. && (beta->
r == 1. &&
176 kx = 1 - (*n - 1) * *incx;
181 ky = 1 - (*n - 1) * *incy;
189 if (beta->
r != 1. || beta->
i != 0.) {
191 if (beta->
r == 0. && beta->
i == 0.) {
193 for (i__ = 1; i__ <= i__1; ++i__) {
195 y[i__2].
r = 0., y[i__2].
i = 0.;
200 for (i__ = 1; i__ <= i__1; ++i__) {
203 z__1.
r = beta->
r * y[i__3].
r - beta->
i * y[i__3].
i,
204 z__1.
i = beta->
r * y[i__3].
i + beta->
i * y[i__3]
206 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
212 if (beta->
r == 0. && beta->
i == 0.) {
214 for (i__ = 1; i__ <= i__1; ++i__) {
216 y[i__2].
r = 0., y[i__2].
i = 0.;
222 for (i__ = 1; i__ <= i__1; ++i__) {
225 z__1.
r = beta->
r * y[i__3].
r - beta->
i * y[i__3].
i,
226 z__1.
i = beta->
r * y[i__3].
i + beta->
i * y[i__3]
228 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
235 if (alpha->
r == 0. && alpha->
i == 0.) {
243 if (*incx == 1 && *incy == 1) {
245 for (j = 1; j <= i__1; ++
j) {
247 z__1.
r = alpha->
r * x[i__2].
r - alpha->
i * x[i__2].
i, z__1.
i =
248 alpha->
r * x[i__2].
i + alpha->
i * x[i__2].
r;
249 temp1.
r = z__1.
r, temp1.
i = z__1.
i;
250 temp2.
r = 0., temp2.
i = 0.;
253 for (i__ = 1; i__ <= i__2; ++i__) {
257 z__2.
r = temp1.
r * ap[i__5].
r - temp1.
i * ap[i__5].
i,
258 z__2.
i = temp1.
r * ap[i__5].
i + temp1.
i * ap[i__5]
260 z__1.
r = y[i__4].
r + z__2.
r, z__1.
i = y[i__4].
i + z__2.
i;
261 y[i__3].
r = z__1.
r, y[i__3].
i = z__1.
i;
264 z__2.
r = z__3.
r * x[i__3].
r - z__3.
i * x[i__3].
i, z__2.
i =
265 z__3.
r * x[i__3].
i + z__3.
i * x[i__3].
r;
266 z__1.
r = temp2.
r + z__2.
r, z__1.
i = temp2.
i + z__2.
i;
267 temp2.
r = z__1.
r, temp2.
i = z__1.
i;
275 z__3.
r = d__1 * temp1.
r, z__3.
i = d__1 * temp1.
i;
276 z__2.
r = y[i__3].
r + z__3.
r, z__2.
i = y[i__3].
i + z__3.
i;
277 z__4.
r = alpha->
r * temp2.
r - alpha->
i * temp2.
i, z__4.
i =
278 alpha->
r * temp2.
i + alpha->
i * temp2.
r;
279 z__1.
r = z__2.
r + z__4.
r, z__1.
i = z__2.
i + z__4.
i;
280 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
288 for (j = 1; j <= i__1; ++
j) {
290 z__1.
r = alpha->
r * x[i__2].
r - alpha->
i * x[i__2].
i, z__1.
i =
291 alpha->
r * x[i__2].
i + alpha->
i * x[i__2].
r;
292 temp1.
r = z__1.
r, temp1.
i = z__1.
i;
293 temp2.
r = 0., temp2.
i = 0.;
297 for (k = kk; k <= i__2; ++k) {
301 z__2.
r = temp1.
r * ap[i__5].
r - temp1.
i * ap[i__5].
i,
302 z__2.
i = temp1.
r * ap[i__5].
i + temp1.
i * ap[i__5]
304 z__1.
r = y[i__4].
r + z__2.
r, z__1.
i = y[i__4].
i + z__2.
i;
305 y[i__3].
r = z__1.
r, y[i__3].
i = z__1.
i;
308 z__2.
r = z__3.
r * x[i__3].
r - z__3.
i * x[i__3].
i, z__2.
i =
309 z__3.
r * x[i__3].
i + z__3.
i * x[i__3].
r;
310 z__1.
r = temp2.
r + z__2.
r, z__1.
i = temp2.
i + z__2.
i;
311 temp2.
r = z__1.
r, temp2.
i = z__1.
i;
320 z__3.
r = d__1 * temp1.
r, z__3.
i = d__1 * temp1.
i;
321 z__2.
r = y[i__3].
r + z__3.
r, z__2.
i = y[i__3].
i + z__3.
i;
322 z__4.
r = alpha->
r * temp2.
r - alpha->
i * temp2.
i, z__4.
i =
323 alpha->
r * temp2.
i + alpha->
i * temp2.
r;
324 z__1.
r = z__2.
r + z__4.
r, z__1.
i = z__2.
i + z__4.
i;
325 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
336 if (*incx == 1 && *incy == 1) {
338 for (j = 1; j <= i__1; ++
j) {
340 z__1.
r = alpha->
r * x[i__2].
r - alpha->
i * x[i__2].
i, z__1.
i =
341 alpha->
r * x[i__2].
i + alpha->
i * x[i__2].
r;
342 temp1.
r = z__1.
r, temp1.
i = z__1.
i;
343 temp2.
r = 0., temp2.
i = 0.;
348 z__2.
r = d__1 * temp1.
r, z__2.
i = d__1 * temp1.
i;
349 z__1.
r = y[i__3].
r + z__2.
r, z__1.
i = y[i__3].
i + z__2.
i;
350 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
353 for (i__ = j + 1; i__ <= i__2; ++i__) {
357 z__2.
r = temp1.
r * ap[i__5].
r - temp1.
i * ap[i__5].
i,
358 z__2.
i = temp1.
r * ap[i__5].
i + temp1.
i * ap[i__5]
360 z__1.
r = y[i__4].
r + z__2.
r, z__1.
i = y[i__4].
i + z__2.
i;
361 y[i__3].
r = z__1.
r, y[i__3].
i = z__1.
i;
364 z__2.
r = z__3.
r * x[i__3].
r - z__3.
i * x[i__3].
i, z__2.
i =
365 z__3.
r * x[i__3].
i + z__3.
i * x[i__3].
r;
366 z__1.
r = temp2.
r + z__2.
r, z__1.
i = temp2.
i + z__2.
i;
367 temp2.
r = z__1.
r, temp2.
i = z__1.
i;
373 z__2.
r = alpha->
r * temp2.
r - alpha->
i * temp2.
i, z__2.
i =
374 alpha->
r * temp2.
i + alpha->
i * temp2.
r;
375 z__1.
r = y[i__3].
r + z__2.
r, z__1.
i = y[i__3].
i + z__2.
i;
376 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
384 for (j = 1; j <= i__1; ++
j) {
386 z__1.
r = alpha->
r * x[i__2].
r - alpha->
i * x[i__2].
i, z__1.
i =
387 alpha->
r * x[i__2].
i + alpha->
i * x[i__2].
r;
388 temp1.
r = z__1.
r, temp1.
i = z__1.
i;
389 temp2.
r = 0., temp2.
i = 0.;
394 z__2.
r = d__1 * temp1.
r, z__2.
i = d__1 * temp1.
i;
395 z__1.
r = y[i__3].
r + z__2.
r, z__1.
i = y[i__3].
i + z__2.
i;
396 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
400 for (k = kk + 1; k <= i__2; ++k) {
406 z__2.
r = temp1.
r * ap[i__5].
r - temp1.
i * ap[i__5].
i,
407 z__2.
i = temp1.
r * ap[i__5].
i + temp1.
i * ap[i__5]
409 z__1.
r = y[i__4].
r + z__2.
r, z__1.
i = y[i__4].
i + z__2.
i;
410 y[i__3].
r = z__1.
r, y[i__3].
i = z__1.
i;
413 z__2.
r = z__3.
r * x[i__3].
r - z__3.
i * x[i__3].
i, z__2.
i =
414 z__3.
r * x[i__3].
i + z__3.
i * x[i__3].
r;
415 z__1.
r = temp2.
r + z__2.
r, z__1.
i = temp2.
i + z__2.
i;
416 temp2.
r = z__1.
r, temp2.
i = z__1.
i;
421 z__2.
r = alpha->
r * temp2.
r - alpha->
i * temp2.
i, z__2.
i =
422 alpha->
r * temp2.
i + alpha->
i * temp2.
r;
423 z__1.
r = y[i__3].
r + z__2.
r, z__1.
i = y[i__3].
i + z__2.
i;
424 y[i__2].
r = z__1.
r, y[i__2].
i = z__1.
i;
RealScalar RealScalar int * incx
void d_cnjg(doublecomplex *r, doublecomplex *z)
EIGEN_WEAK_LINKING int xerbla_(const char *msg, int *info, int)
int zhpmv_(char *uplo, integer *n, doublecomplex *alpha, doublecomplex *ap, doublecomplex *x, integer *incx, doublecomplex *beta, doublecomplex *y, integer *incy, ftnlen uplo_len)
logical lsame_(char *ca, char *cb, ftnlen ca_len, ftnlen cb_len)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
int RealScalar int RealScalar int * incy