116 SUBROUTINE zlarfx( SIDE, M, N, V, TAU, C, LDC, WORK )
128 COMPLEX*16 C( LDC, * ), V( * ), WORK( * )
135 parameter( zero = ( 0.0d+0, 0.0d+0 ),
136 $ one = ( 1.0d+0, 0.0d+0 ) )
140 COMPLEX*16 SUM, T1, T10, T2, T3, T4, T5, T6, T7, T8, T9,
141 $ V1, V10, V2, V3, V4, V5, V6, V7, V8, V9
157 IF( lsame( side,
'L' ) )
THEN
161 GO TO ( 10, 30, 50, 70, 90, 110, 130, 150,
166 CALL zlarf( side, m, n, v, 1, tau, c, ldc, work )
172 t1 = one - tau*v( 1 )*dconjg( v( 1 ) )
174 c( 1, j ) = t1*c( 1, j )
181 v1 = dconjg( v( 1 ) )
182 t1 = tau*dconjg( v1 )
183 v2 = dconjg( v( 2 ) )
184 t2 = tau*dconjg( v2 )
186 sum = v1*c( 1, j ) + v2*c( 2, j )
187 c( 1, j ) = c( 1, j ) - sum*t1
188 c( 2, j ) = c( 2, j ) - sum*t2
195 v1 = dconjg( v( 1 ) )
196 t1 = tau*dconjg( v1 )
197 v2 = dconjg( v( 2 ) )
198 t2 = tau*dconjg( v2 )
199 v3 = dconjg( v( 3 ) )
200 t3 = tau*dconjg( v3 )
202 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j )
203 c( 1, j ) = c( 1, j ) - sum*t1
204 c( 2, j ) = c( 2, j ) - sum*t2
205 c( 3, j ) = c( 3, j ) - sum*t3
212 v1 = dconjg( v( 1 ) )
213 t1 = tau*dconjg( v1 )
214 v2 = dconjg( v( 2 ) )
215 t2 = tau*dconjg( v2 )
216 v3 = dconjg( v( 3 ) )
217 t3 = tau*dconjg( v3 )
218 v4 = dconjg( v( 4 ) )
219 t4 = tau*dconjg( v4 )
221 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
223 c( 1, j ) = c( 1, j ) - sum*t1
224 c( 2, j ) = c( 2, j ) - sum*t2
225 c( 3, j ) = c( 3, j ) - sum*t3
226 c( 4, j ) = c( 4, j ) - sum*t4
233 v1 = dconjg( v( 1 ) )
234 t1 = tau*dconjg( v1 )
235 v2 = dconjg( v( 2 ) )
236 t2 = tau*dconjg( v2 )
237 v3 = dconjg( v( 3 ) )
238 t3 = tau*dconjg( v3 )
239 v4 = dconjg( v( 4 ) )
240 t4 = tau*dconjg( v4 )
241 v5 = dconjg( v( 5 ) )
242 t5 = tau*dconjg( v5 )
244 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
245 $ v4*c( 4, j ) + v5*c( 5, j )
246 c( 1, j ) = c( 1, j ) - sum*t1
247 c( 2, j ) = c( 2, j ) - sum*t2
248 c( 3, j ) = c( 3, j ) - sum*t3
249 c( 4, j ) = c( 4, j ) - sum*t4
250 c( 5, j ) = c( 5, j ) - sum*t5
257 v1 = dconjg( v( 1 ) )
258 t1 = tau*dconjg( v1 )
259 v2 = dconjg( v( 2 ) )
260 t2 = tau*dconjg( v2 )
261 v3 = dconjg( v( 3 ) )
262 t3 = tau*dconjg( v3 )
263 v4 = dconjg( v( 4 ) )
264 t4 = tau*dconjg( v4 )
265 v5 = dconjg( v( 5 ) )
266 t5 = tau*dconjg( v5 )
267 v6 = dconjg( v( 6 ) )
268 t6 = tau*dconjg( v6 )
270 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
271 $ v4*c( 4, j ) + v5*c( 5, j ) + v6*c( 6, j )
272 c( 1, j ) = c( 1, j ) - sum*t1
273 c( 2, j ) = c( 2, j ) - sum*t2
274 c( 3, j ) = c( 3, j ) - sum*t3
275 c( 4, j ) = c( 4, j ) - sum*t4
276 c( 5, j ) = c( 5, j ) - sum*t5
277 c( 6, j ) = c( 6, j ) - sum*t6
284 v1 = dconjg( v( 1 ) )
285 t1 = tau*dconjg( v1 )
286 v2 = dconjg( v( 2 ) )
287 t2 = tau*dconjg( v2 )
288 v3 = dconjg( v( 3 ) )
289 t3 = tau*dconjg( v3 )
290 v4 = dconjg( v( 4 ) )
291 t4 = tau*dconjg( v4 )
292 v5 = dconjg( v( 5 ) )
293 t5 = tau*dconjg( v5 )
294 v6 = dconjg( v( 6 ) )
295 t6 = tau*dconjg( v6 )
296 v7 = dconjg( v( 7 ) )
297 t7 = tau*dconjg( v7 )
299 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
300 $ v4*c( 4, j ) + v5*c( 5, j ) + v6*c( 6, j ) +
302 c( 1, j ) = c( 1, j ) - sum*t1
303 c( 2, j ) = c( 2, j ) - sum*t2
304 c( 3, j ) = c( 3, j ) - sum*t3
305 c( 4, j ) = c( 4, j ) - sum*t4
306 c( 5, j ) = c( 5, j ) - sum*t5
307 c( 6, j ) = c( 6, j ) - sum*t6
308 c( 7, j ) = c( 7, j ) - sum*t7
315 v1 = dconjg( v( 1 ) )
316 t1 = tau*dconjg( v1 )
317 v2 = dconjg( v( 2 ) )
318 t2 = tau*dconjg( v2 )
319 v3 = dconjg( v( 3 ) )
320 t3 = tau*dconjg( v3 )
321 v4 = dconjg( v( 4 ) )
322 t4 = tau*dconjg( v4 )
323 v5 = dconjg( v( 5 ) )
324 t5 = tau*dconjg( v5 )
325 v6 = dconjg( v( 6 ) )
326 t6 = tau*dconjg( v6 )
327 v7 = dconjg( v( 7 ) )
328 t7 = tau*dconjg( v7 )
329 v8 = dconjg( v( 8 ) )
330 t8 = tau*dconjg( v8 )
332 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
333 $ v4*c( 4, j ) + v5*c( 5, j ) + v6*c( 6, j ) +
334 $ v7*c( 7, j ) + v8*c( 8, j )
335 c( 1, j ) = c( 1, j ) - sum*t1
336 c( 2, j ) = c( 2, j ) - sum*t2
337 c( 3, j ) = c( 3, j ) - sum*t3
338 c( 4, j ) = c( 4, j ) - sum*t4
339 c( 5, j ) = c( 5, j ) - sum*t5
340 c( 6, j ) = c( 6, j ) - sum*t6
341 c( 7, j ) = c( 7, j ) - sum*t7
342 c( 8, j ) = c( 8, j ) - sum*t8
349 v1 = dconjg( v( 1 ) )
350 t1 = tau*dconjg( v1 )
351 v2 = dconjg( v( 2 ) )
352 t2 = tau*dconjg( v2 )
353 v3 = dconjg( v( 3 ) )
354 t3 = tau*dconjg( v3 )
355 v4 = dconjg( v( 4 ) )
356 t4 = tau*dconjg( v4 )
357 v5 = dconjg( v( 5 ) )
358 t5 = tau*dconjg( v5 )
359 v6 = dconjg( v( 6 ) )
360 t6 = tau*dconjg( v6 )
361 v7 = dconjg( v( 7 ) )
362 t7 = tau*dconjg( v7 )
363 v8 = dconjg( v( 8 ) )
364 t8 = tau*dconjg( v8 )
365 v9 = dconjg( v( 9 ) )
366 t9 = tau*dconjg( v9 )
368 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
369 $ v4*c( 4, j ) + v5*c( 5, j ) + v6*c( 6, j ) +
370 $ v7*c( 7, j ) + v8*c( 8, j ) + v9*c( 9, j )
371 c( 1, j ) = c( 1, j ) - sum*t1
372 c( 2, j ) = c( 2, j ) - sum*t2
373 c( 3, j ) = c( 3, j ) - sum*t3
374 c( 4, j ) = c( 4, j ) - sum*t4
375 c( 5, j ) = c( 5, j ) - sum*t5
376 c( 6, j ) = c( 6, j ) - sum*t6
377 c( 7, j ) = c( 7, j ) - sum*t7
378 c( 8, j ) = c( 8, j ) - sum*t8
379 c( 9, j ) = c( 9, j ) - sum*t9
386 v1 = dconjg( v( 1 ) )
387 t1 = tau*dconjg( v1 )
388 v2 = dconjg( v( 2 ) )
389 t2 = tau*dconjg( v2 )
390 v3 = dconjg( v( 3 ) )
391 t3 = tau*dconjg( v3 )
392 v4 = dconjg( v( 4 ) )
393 t4 = tau*dconjg( v4 )
394 v5 = dconjg( v( 5 ) )
395 t5 = tau*dconjg( v5 )
396 v6 = dconjg( v( 6 ) )
397 t6 = tau*dconjg( v6 )
398 v7 = dconjg( v( 7 ) )
399 t7 = tau*dconjg( v7 )
400 v8 = dconjg( v( 8 ) )
401 t8 = tau*dconjg( v8 )
402 v9 = dconjg( v( 9 ) )
403 t9 = tau*dconjg( v9 )
404 v10 = dconjg( v( 10 ) )
405 t10 = tau*dconjg( v10 )
407 sum = v1*c( 1, j ) + v2*c( 2, j ) + v3*c( 3, j ) +
408 $ v4*c( 4, j ) + v5*c( 5, j ) + v6*c( 6, j ) +
409 $ v7*c( 7, j ) + v8*c( 8, j ) + v9*c( 9, j ) +
411 c( 1, j ) = c( 1, j ) - sum*t1
412 c( 2, j ) = c( 2, j ) - sum*t2
413 c( 3, j ) = c( 3, j ) - sum*t3
414 c( 4, j ) = c( 4, j ) - sum*t4
415 c( 5, j ) = c( 5, j ) - sum*t5
416 c( 6, j ) = c( 6, j ) - sum*t6
417 c( 7, j ) = c( 7, j ) - sum*t7
418 c( 8, j ) = c( 8, j ) - sum*t8
419 c( 9, j ) = c( 9, j ) - sum*t9
420 c( 10, j ) = c( 10, j ) - sum*t10
427 GO TO ( 210, 230, 250, 270, 290, 310, 330, 350,
432 CALL zlarf( side, m, n, v, 1, tau, c, ldc, work )
438 t1 = one - tau*v( 1 )*dconjg( v( 1 ) )
440 c( j, 1 ) = t1*c( j, 1 )
448 t1 = tau*dconjg( v1 )
450 t2 = tau*dconjg( v2 )
452 sum = v1*c( j, 1 ) + v2*c( j, 2 )
453 c( j, 1 ) = c( j, 1 ) - sum*t1
454 c( j, 2 ) = c( j, 2 ) - sum*t2
462 t1 = tau*dconjg( v1 )
464 t2 = tau*dconjg( v2 )
466 t3 = tau*dconjg( v3 )
468 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 )
469 c( j, 1 ) = c( j, 1 ) - sum*t1
470 c( j, 2 ) = c( j, 2 ) - sum*t2
471 c( j, 3 ) = c( j, 3 ) - sum*t3
479 t1 = tau*dconjg( v1 )
481 t2 = tau*dconjg( v2 )
483 t3 = tau*dconjg( v3 )
485 t4 = tau*dconjg( v4 )
487 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
489 c( j, 1 ) = c( j, 1 ) - sum*t1
490 c( j, 2 ) = c( j, 2 ) - sum*t2
491 c( j, 3 ) = c( j, 3 ) - sum*t3
492 c( j, 4 ) = c( j, 4 ) - sum*t4
500 t1 = tau*dconjg( v1 )
502 t2 = tau*dconjg( v2 )
504 t3 = tau*dconjg( v3 )
506 t4 = tau*dconjg( v4 )
508 t5 = tau*dconjg( v5 )
510 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
511 $ v4*c( j, 4 ) + v5*c( j, 5 )
512 c( j, 1 ) = c( j, 1 ) - sum*t1
513 c( j, 2 ) = c( j, 2 ) - sum*t2
514 c( j, 3 ) = c( j, 3 ) - sum*t3
515 c( j, 4 ) = c( j, 4 ) - sum*t4
516 c( j, 5 ) = c( j, 5 ) - sum*t5
524 t1 = tau*dconjg( v1 )
526 t2 = tau*dconjg( v2 )
528 t3 = tau*dconjg( v3 )
530 t4 = tau*dconjg( v4 )
532 t5 = tau*dconjg( v5 )
534 t6 = tau*dconjg( v6 )
536 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
537 $ v4*c( j, 4 ) + v5*c( j, 5 ) + v6*c( j, 6 )
538 c( j, 1 ) = c( j, 1 ) - sum*t1
539 c( j, 2 ) = c( j, 2 ) - sum*t2
540 c( j, 3 ) = c( j, 3 ) - sum*t3
541 c( j, 4 ) = c( j, 4 ) - sum*t4
542 c( j, 5 ) = c( j, 5 ) - sum*t5
543 c( j, 6 ) = c( j, 6 ) - sum*t6
551 t1 = tau*dconjg( v1 )
553 t2 = tau*dconjg( v2 )
555 t3 = tau*dconjg( v3 )
557 t4 = tau*dconjg( v4 )
559 t5 = tau*dconjg( v5 )
561 t6 = tau*dconjg( v6 )
563 t7 = tau*dconjg( v7 )
565 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
566 $ v4*c( j, 4 ) + v5*c( j, 5 ) + v6*c( j, 6 ) +
568 c( j, 1 ) = c( j, 1 ) - sum*t1
569 c( j, 2 ) = c( j, 2 ) - sum*t2
570 c( j, 3 ) = c( j, 3 ) - sum*t3
571 c( j, 4 ) = c( j, 4 ) - sum*t4
572 c( j, 5 ) = c( j, 5 ) - sum*t5
573 c( j, 6 ) = c( j, 6 ) - sum*t6
574 c( j, 7 ) = c( j, 7 ) - sum*t7
582 t1 = tau*dconjg( v1 )
584 t2 = tau*dconjg( v2 )
586 t3 = tau*dconjg( v3 )
588 t4 = tau*dconjg( v4 )
590 t5 = tau*dconjg( v5 )
592 t6 = tau*dconjg( v6 )
594 t7 = tau*dconjg( v7 )
596 t8 = tau*dconjg( v8 )
598 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
599 $ v4*c( j, 4 ) + v5*c( j, 5 ) + v6*c( j, 6 ) +
600 $ v7*c( j, 7 ) + v8*c( j, 8 )
601 c( j, 1 ) = c( j, 1 ) - sum*t1
602 c( j, 2 ) = c( j, 2 ) - sum*t2
603 c( j, 3 ) = c( j, 3 ) - sum*t3
604 c( j, 4 ) = c( j, 4 ) - sum*t4
605 c( j, 5 ) = c( j, 5 ) - sum*t5
606 c( j, 6 ) = c( j, 6 ) - sum*t6
607 c( j, 7 ) = c( j, 7 ) - sum*t7
608 c( j, 8 ) = c( j, 8 ) - sum*t8
616 t1 = tau*dconjg( v1 )
618 t2 = tau*dconjg( v2 )
620 t3 = tau*dconjg( v3 )
622 t4 = tau*dconjg( v4 )
624 t5 = tau*dconjg( v5 )
626 t6 = tau*dconjg( v6 )
628 t7 = tau*dconjg( v7 )
630 t8 = tau*dconjg( v8 )
632 t9 = tau*dconjg( v9 )
634 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
635 $ v4*c( j, 4 ) + v5*c( j, 5 ) + v6*c( j, 6 ) +
636 $ v7*c( j, 7 ) + v8*c( j, 8 ) + v9*c( j, 9 )
637 c( j, 1 ) = c( j, 1 ) - sum*t1
638 c( j, 2 ) = c( j, 2 ) - sum*t2
639 c( j, 3 ) = c( j, 3 ) - sum*t3
640 c( j, 4 ) = c( j, 4 ) - sum*t4
641 c( j, 5 ) = c( j, 5 ) - sum*t5
642 c( j, 6 ) = c( j, 6 ) - sum*t6
643 c( j, 7 ) = c( j, 7 ) - sum*t7
644 c( j, 8 ) = c( j, 8 ) - sum*t8
645 c( j, 9 ) = c( j, 9 ) - sum*t9
653 t1 = tau*dconjg( v1 )
655 t2 = tau*dconjg( v2 )
657 t3 = tau*dconjg( v3 )
659 t4 = tau*dconjg( v4 )
661 t5 = tau*dconjg( v5 )
663 t6 = tau*dconjg( v6 )
665 t7 = tau*dconjg( v7 )
667 t8 = tau*dconjg( v8 )
669 t9 = tau*dconjg( v9 )
671 t10 = tau*dconjg( v10 )
673 sum = v1*c( j, 1 ) + v2*c( j, 2 ) + v3*c( j, 3 ) +
674 $ v4*c( j, 4 ) + v5*c( j, 5 ) + v6*c( j, 6 ) +
675 $ v7*c( j, 7 ) + v8*c( j, 8 ) + v9*c( j, 9 ) +
677 c( j, 1 ) = c( j, 1 ) - sum*t1
678 c( j, 2 ) = c( j, 2 ) - sum*t2
679 c( j, 3 ) = c( j, 3 ) - sum*t3
680 c( j, 4 ) = c( j, 4 ) - sum*t4
681 c( j, 5 ) = c( j, 5 ) - sum*t5
682 c( j, 6 ) = c( j, 6 ) - sum*t6
683 c( j, 7 ) = c( j, 7 ) - sum*t7
684 c( j, 8 ) = c( j, 8 ) - sum*t8
685 c( j, 9 ) = c( j, 9 ) - sum*t9
686 c( j, 10 ) = c( j, 10 ) - sum*t10