File: ZV.tex

package info (click to toggle)
spooles 2.2-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,656 kB
  • ctags: 3,690
  • sloc: ansic: 146,836; sh: 7,571; csh: 3,615; makefile: 1,968; perl: 74
file content (686 lines) | stat: -rw-r--r-- 26,078 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
\par
\subsection{{\tt ZV} : {\tt double complex } vector methods}
\label{subsection:Utilities:proto:ZV}
\par
A double precision complex vector of length {\tt n} 
is simply a double precision vector of length {\tt 2n}.
There is a separate {\tt ZVinit()} allocator and initializer method,
since it requires a real and imaginary part to fill the vector.
However, there is no {\tt ZVinit2()} method (which allocates
without initializing the entries) nor a {\tt ZVfree()} method
to free the entries;
the {\tt DVinit2()} and {\tt DVfree()} methods can be used.
Similarly, there is no {\tt ZVfscanf()} method,
instead the {\tt DVfscanf()} method can be used.
\par
%=======================================================================
\begin{enumerate}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
double * ZVinit ( int n, double real, double imag ) ;
\end{verbatim}
\index{ZVinit@{\tt ZVinit()}}
This is the allocator and initializer method 
for {\tt double complex} vectors.
Storage for an array with size {\tt n} is found and each
entry is filled with {\tt (real,imag)}.
A pointer to the array is returned.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVfprintf ( FILE *fp, int n, double y[] ) ;
\end{verbatim}
\index{ZVfprintf@{\tt ZVfprintf()}}
This method prints {\tt n} entries in {\tt y[]} to file {\tt fp}.
The format is new line followed by 
{\tt "< \%12.4e, \%12.4e >"} format.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
double Zabs ( double real, double imag ) ;
\end{verbatim}
\index{Zabs@{\tt Zabs()}}
This method returns the magnitude of {\tt (real,imag)}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int Zrecip ( double areal, double aimag, double *pbreal, double *pbimag ) ;
\end{verbatim}
\index{Zrecip@{\tt Zrecip()}}
This method fills {\tt *pbreal} and {\tt *pbimag} with the real and
imaginary parts of the reciprocal of {\tt (areal,aimag)}.
The return value is {\tt 0} if {\tt areal} and {\tt aimag} are zero,
otherwise the return value is {\tt 1}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int Zrecip2 ( double areal, double aimag, double breal, double bimag,
              double creal, double cimag, double dreal, double dimag,
              double *pereal, double *peimag, double *pfreal, double *pfimag,
              double *pgreal, double *pgimag, double *phreal, double *phimag ) ;
\end{verbatim}
\index{Zrecip2@{\tt Zrecip2()}}
This method computes 
$
\displaystyle
\left \lbrack \begin{array}{cc}
e & f \\
g & h
\end{array} \right \rbrack
=
\left \lbrack \begin{array}{cc}
a & b \\
c & d
\end{array} \right \rbrack^{-1}
$.
If {\tt pereal} is not {\tt NULL}, then {\tt *pereal} is loaded with
the real part of $e$.
If {\tt peimag} is not {\tt NULL}, then {\tt *peimag} is loaded with
the imaginary part of $e$.
Similarly for $f$, $g$ and $h$.
The return value is {\tt 0} if $2 \times 2$ matrix is singular,
otherwise the return value is {\tt 1}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy ( int n, double y[], double areal, double aimag, double x[] ) ;
\end{verbatim}
\index{ZVaxpy@{\tt ZVaxpy()}}
This method adds a scaled multiple of {\tt n} entries from {\tt x[]} 
into {\tt y[]},
i.e.,
{\tt y[i] += (areal,aimag) * x[i]} for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy2 ( int n, double z[], double areal, double aimag, 
               double x[], double breal, double bimag, double y[] ) ;
\end{verbatim}
\index{ZVaxpy@{\tt ZVaxpy()}}
This method adds a scaled multiple of two vectors {\tt x[]} 
and {\tt y[]} to another vector {\tt z[]}, i.e.,
i.e.,
{\tt z[i] += (areal,aimag) * x[i] + (breal,bimag) * y[i]} for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy33 ( int n, double y0[], double y1[], double y2[], 
                double alpha[], double x0[], double x1[], double x2[] ) ;
\end{verbatim}
\index{ZVaxpy33@{\tt ZVaxpy33()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] + alpha[2:3] * x1[] + alpha[4:5] * x2[]
y1[] = y1[] + alpha[6:7] * x0[] + alpha[8:9] * x1[] + alpha[10:11] * x2[]
y2[] = y2[] + alpha[12:13] * x0[] + alpha[14:15] * x1[] + alpha[16:17] * x2[]
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy32 ( int n, double y0[], double y1[], double y2[], 
                double alpha[], double x0[], double x1[] ) ;
\end{verbatim}
\index{ZVaxpy32@{\tt ZVaxpy32()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] + alpha[2:3] * x1[] 
y1[] = y1[] + alpha[4:5] * x0[] + alpha[6:7] * x1[] 
y2[] = y2[] + alpha[8:9] * x0[] + alpha[10:11] * x1[] 
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy31 ( int n, double y0[], double y1[], double y2[], 
                double alpha[], double x0[] ) ;
\end{verbatim}
\index{ZVaxpy31@{\tt ZVaxpy31()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] 
y1[] = y1[] + alpha[2:3] * x0[] 
y2[] = y2[] + alpha[4:5] * x0[] 
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy23 ( int n, double y0[], double y1[], 
                double alpha[], double x0[], double x1[], double x2[] ) ;
\end{verbatim}
\index{ZVaxpy23@{\tt ZVaxpy23()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] + alpha[2:3] * x1[] + alpha[4:5] * x2[]
y1[] = y1[] + alpha[6:7] * x0[] + alpha[8:9] * x1[] + alpha[10:11] * x2[]
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy22 ( int n, double y0[], double y1[], 
                double alpha[], double x0[], double x1[] ) ;
\end{verbatim}
\index{ZVaxpy22@{\tt ZVaxpy22()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] + alpha[2:3] * x1[] 
y1[] = y1[] + alpha[4:5] * x0[] + alpha[6:7] * x1[] 
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy21 ( int n, double y0[], double y1[], 
                double alpha[], double x0[] ) ;
\end{verbatim}
\index{ZVaxpy21@{\tt ZVaxpy21()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] 
y1[] = y1[] + alpha[2:3] * x0[] 
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy13 ( int n, double y0[], 
                double alpha[], double x0[], double x1[], double x2[] ) ;
\end{verbatim}
\index{ZVaxpy13@{\tt ZVaxpy13()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] + alpha[2:3] * x1[] + alpha[4:5] * x2[]
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy12 ( int n, double y0[], double alpha[], double x0[], double x1[] ) ;
\end{verbatim}
\index{ZVaxpy12@{\tt ZVaxpy12()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] + alpha[2:3] * x1[] 
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVaxpy11 ( int n, double y0[], double alpha[], double x0[] ) ;
\end{verbatim}
\index{ZVaxpy11@{\tt ZVaxpy11()}}
This method computes the following.
\begin{verbatim}
y0[] = y0[] + alpha[0:1] * x0[] 
\end{verbatim}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVcopy ( int n, double y[], double x[] ) ;
\end{verbatim}
\index{ZVcopy@{\tt ZVcopy()}}
This method copies {\tt n} entries from {\tt x[]} to {\tt y[]},
i.e.,
{\tt y[i] = x[i]} for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVdotU ( int n, double y[], double x[], double *prdot, double *pidot ) ;
\end{verbatim}
\index{ZVdotU@{\tt ZVdotU()}}
This method fills {\tt *prdot} and {\tt *pidot} with the real and
imaginary part of ${\tt y}^T{\tt x}$,
the dot product of the vector {\tt x[]} and {\tt y[]}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVdotC ( int n, double y[], double x[], double *prdot, double *pidot ) ;
\end{verbatim}
\index{ZVdotC@{\tt ZVdotC()}}
This method fills {\tt *prdot} and {\tt *pidot} with the real and
imaginary part of ${\tt y}^H{\tt x}$,
the dot product of the vector {\tt x[]} and {\tt y[]}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVdotiU ( int n, double y[], int index[], double x[],
               double *prdot, double *pidot ) ;
\end{verbatim}
\index{ZVdotiU@{\tt ZVdotiU()}}
This method fills {\tt *prdot} and {\tt *pidot} with the real and
imaginary parts of the indexed dot product 
$\displaystyle \sum_{{\tt i=0}}^{{\tt n-1}} {\tt y[index[i]] * x[i]}$.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVdotiC ( int n, double y[], int index[], double x[],
               double *prdot, double *pidot ) ;
\end{verbatim}
\index{ZVdotiC@{\tt ZVdotiC()}}
This method fills {\tt *prdot} and {\tt *pidot} with the real and
imaginary parts of the indexed dot product 
$\displaystyle \sum_{{\tt i=0}}^{{\tt n-1}} 
\overline{\tt y[index[i]]} * {\tt x[i]}$.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU33 ( int n, double row0[], double row1[], double row2[], 
              double col0[], double col1[], double col2[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU33@{\tt ZVdotU33()}}
This method computes nine dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0;1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col2[i]}$ &
$\displaystyle{\tt sums[6:7]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col0[i]}$ \\
$\displaystyle{\tt sums[8:9]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col1[i]}$ &
$\displaystyle{\tt sums[10:11]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col2[i]}$ \\
$\displaystyle{\tt sums[12:13]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row2[i] * col0[i]}$ &
$\displaystyle{\tt sums[14:15]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row2[i] * col1[i]}$ \\
$\displaystyle{\tt sums[16:17]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row2[i] * col2[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU32 ( int n, double row0[], double row1[], double row2[], 
              double col0[], double col1[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU32@{\tt ZVdotU32()}}
This method computes six dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col0[i]}$ &
$\displaystyle{\tt sums[6:7]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col1[i]}$ \\
$\displaystyle{\tt sums[8:9]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row2[i] * col0[i]}$ &
$\displaystyle{\tt sums[10:11]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row2[i] * col1[i]}$
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU31 ( int n, double row0[], double row1[], double row2[], 
              double col0[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU31@{\tt ZVdotU31()}}
This method computes three dot products.
\par
\begin{tabular}{l}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ \\
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col0[i]}$ \\
$\displaystyle{\tt sums[4:5]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row2[i] * col0[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU23 ( int n, double row0[], double row1[],         
              double col0[], double col1[], double col2[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU23@{\tt ZVdotU23()}}
This method computes six dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col2[i]}$ &
$\displaystyle{\tt sums[6:7]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col0[i]}$ \\
$\displaystyle{\tt sums[8:9]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col1[i]}$ &
$\displaystyle{\tt sums[10:11]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col2[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU22 ( int n, double row0[], double row1[], 
              double col0[], double col1[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU22@{\tt ZVdotU22()}}
This method computes four dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col0[i]}$ &
$\displaystyle{\tt sums[6:7]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col1[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU21 ( int n, double row0[], double row1[], 
              double col0[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU21@{\tt ZVdotU21()}}
This method computes two dot products.
\par
\begin{tabular}{l}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ \\
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row1[i] * col0[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU13 ( int n, double row0[], 
              double col0[], double col1[], double col2[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU13@{\tt ZVdotU13()}}
This method computes six dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col2[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU12 ( int n, double row0[], double row1[], 
              double col0[], double col1[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU12@{\tt ZVdotU12()}}
This method computes two dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col1[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotU11 ( int n, double row0[], double col0[], double sums[] ) ;
\end{verbatim}
\index{ZVdotU11@{\tt ZVdotU11()}}
This method computes one dot product.
\par
\begin{tabular}{l}
$\displaystyle{\tt sums[0:1]}
               = \sum_{\tt i = 0}^{\tt n-1} {\tt row0[i] * col0[i]}$
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC33 ( int n, double row0[], double row1[], double row2[], 
              double col0[], double col1[], double col2[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC33@{\tt ZVdotC33()}}
This method computes nine dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0;1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col2[i]}$ &
$\displaystyle{\tt sums[6:7]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col0[i]}$ \\
$\displaystyle{\tt sums[8:9]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col1[i]}$ &
$\displaystyle{\tt sums[10:11]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col2[i]}$ \\
$\displaystyle{\tt sums[12:13]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row2[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[14:15]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row2[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[16:17]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row2[i]} * {\tt col2[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC32 ( int n, double row0[], double row1[], double row2[], 
              double col0[], double col1[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC32@{\tt ZVdotC32()}}
This method computes six dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[6:7]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[8:9]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row2[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[10:11]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row2[i]} * {\tt col1[i]}$
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC31 ( int n, double row0[], double row1[], double row2[], 
              double col0[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC31@{\tt ZVdotC31()}}
This method computes three dot products.
\par
\begin{tabular}{l}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ \\
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col0[i]}$ \\
$\displaystyle{\tt sums[4:5]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row2[i]} * {\tt col0[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC23 ( int n, double row0[], double row1[],         
              double col0[], double col1[], double col2[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC23@{\tt ZVdotC23()}}
This method computes six dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col2[i]}$ &
$\displaystyle{\tt sums[6:7]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col0[i]}$ \\
$\displaystyle{\tt sums[8:9]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col1[i]}$ &
$\displaystyle{\tt sums[10:11]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col2[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC22 ( int n, double row0[], double row1[], 
              double col0[], double col1[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC22@{\tt ZVdotC22()}}
This method computes four dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[6:7]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col1[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC21 ( int n, double row0[], double row1[], 
              double col0[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC21@{\tt ZVdotC21()}}
This method computes two dot products.
\par
\begin{tabular}{l}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ \\
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row1[i]} * {\tt col0[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC13 ( int n, double row0[], 
              double col0[], double col1[], double col2[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC13@{\tt ZVdotC13()}}
This method computes six dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col1[i]}$ \\
$\displaystyle{\tt sums[4:5]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col2[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC12 ( int n, double row0[], double row1[], 
              double col0[], double col1[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC12@{\tt ZVdotC12()}}
This method computes two dot products.
\par
\begin{tabular}{ll}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$ &
$\displaystyle{\tt sums[2:3]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col1[i]}$ 
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
int ZVdotC11 ( int n, double row0[], double col0[], double sums[] ) ;
\end{verbatim}
\index{ZVdotC11@{\tt ZVdotC11()}}
This method computes one dot product.
\par
\begin{tabular}{l}
$\displaystyle{\tt sums[0:1]}
= \sum_{\tt i = 0}^{\tt n-1} \overline{\tt row0[i]} * {\tt col0[i]}$
\end{tabular}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVgather ( int n, double y[], double x[], int index[] ) ;
\end{verbatim}
\index{ZVgather@{\tt ZVgather()}}
{\tt y[i] = x[index[i]]} for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
double ZVmaxabs ( int n, double y[] ) ;
\end{verbatim}
\index{ZVmaxabs@{\tt ZVmaxabs()}}
This method returns the maximum magnitude of entries in {\tt y[0:n-1]}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
double ZVminabs ( int n, double y[] ) ;
\end{verbatim}
\index{ZVminabs@{\tt ZVminabs()}}
This method returns the minimum magnitude of entries in {\tt y[0:n-1]}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVscale ( int n, double y[], double areal, double aimag ) ;
\end{verbatim}
\index{ZVscale@{\tt ZVscale()}}
This method scales a vector {\tt y[]} by {\tt (areal,aimag)},
i.e.,
{\tt y[i] *= (areal,aimag)}.
for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVscale2 ( int n, double x[], double y[], 
                double areal, double aimag, double breal, double bimag, 
                double creal, double cimag, double dreal, double dimag ) ;
\end{verbatim}
\index{ZVscale@{\tt ZVscale()}}
This method scales two vectors {\tt y[]} by a $2 \times 2$ matrix,
i.e.,
$$
\left \lbrack \begin{array}{ccc}
{\tt x[0]} & \ldots & {\tt x[n-1]} \\
{\tt y[0]} & \ldots & {\tt y[n-1]} 
\end{array} \right \rbrack
:= 
\left \lbrack \begin{array}{cc}
{\tt (areal,aimag)} & {\tt (breal,bimag)} \\
{\tt (creal,cimag)} & {\tt (dreal,dimag)}
\end{array} \right \rbrack
\left \lbrack \begin{array}{ccc}
{\tt x[0]} & \ldots & {\tt x[n-1]} \\
{\tt y[0]} & \ldots & {\tt y[n-1]} 
\end{array} \right \rbrack.
$$
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVscatter ( int n, double y[], int index[], double x[] ) ;
\end{verbatim}
\index{ZVscatter@{\tt ZVscatter()}}
This method scatters {\tt n} entries of {\tt x[]} into {\tt y[]} 
as follows,
{\tt y[index[i]] = x[i]} 
for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVsub ( int n, double y[], double x[] ) ;
\end{verbatim}
\index{ZVsub@{\tt ZVsub()}}
This method subtracts {\tt n} entries from {\tt x[]} to {\tt y[]},
i.e.,
{\tt y[i] -= x[i]}
for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\item
\begin{verbatim}
void ZVzero ( int n, double y[] ) ;
\end{verbatim}
\index{ZVzero@{\tt ZVzero()}}
This method zeroes {\tt n} entries in {\tt y[]},
i.e.,
{\tt y[i] = 0} 
for {\tt 0 <= i < n}.
%-----------------------------------------------------------------------
\end{enumerate}