root / www / HPL_pdlange.html
Historique | Voir | Annoter | Télécharger (2,57 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_pdlange HPL 2.0 Library Functions September 10, 2008</TITLE> |
4 |
</HEAD>
|
5 |
|
6 |
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099" |
7 |
ALINK = "#ffff00"> |
8 |
|
9 |
<H1>Name</H1> |
10 |
<B>HPL_pdlange</B> Compute ||A||. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>double</CODE> |
15 |
<CODE>HPL_pdlange(</CODE> |
16 |
<CODE>const HPL_T_grid *</CODE> |
17 |
<CODE>GRID</CODE>, |
18 |
<CODE>const HPL_T_NORM</CODE> |
19 |
<CODE>NORM</CODE>, |
20 |
<CODE>const int</CODE> |
21 |
<CODE>M</CODE>, |
22 |
<CODE>const int</CODE> |
23 |
<CODE>N</CODE>, |
24 |
<CODE>const int</CODE> |
25 |
<CODE>NB</CODE>, |
26 |
<CODE>const double *</CODE> |
27 |
<CODE>A</CODE>, |
28 |
<CODE>const int</CODE> |
29 |
<CODE>LDA</CODE> |
30 |
<CODE>);</CODE> |
31 |
|
32 |
<H1>Description</H1> |
33 |
<B>HPL_pdlange</B> |
34 |
returns the value of the one norm, or the infinity norm, |
35 |
or the element of largest absolute value of a distributed matrix A: |
36 |
|
37 |
|
38 |
max(abs(A(i,j))) when NORM = HPL_NORM_A, |
39 |
norm1(A), when NORM = HPL_NORM_1, |
40 |
normI(A), when NORM = HPL_NORM_I, |
41 |
|
42 |
where norm1 denotes the one norm of a matrix (maximum column sum) and |
43 |
normI denotes the infinity norm of a matrix (maximum row sum). Note |
44 |
that max(abs(A(i,j))) is not a matrix norm. |
45 |
|
46 |
<H1>Arguments</H1> |
47 |
<PRE>
|
48 |
GRID (local input) const HPL_T_grid * |
49 |
On entry, GRID points to the data structure containing the |
50 |
process grid information. |
51 |
</PRE>
|
52 |
<PRE>
|
53 |
NORM (global input) const HPL_T_NORM |
54 |
On entry, NORM specifies the value to be returned by this |
55 |
function as described above. |
56 |
</PRE>
|
57 |
<PRE>
|
58 |
M (global input) const int |
59 |
On entry, M specifies the number of rows of the matrix A. |
60 |
M must be at least zero. |
61 |
</PRE>
|
62 |
<PRE>
|
63 |
N (global input) const int |
64 |
On entry, N specifies the number of columns of the matrix A. |
65 |
N must be at least zero. |
66 |
</PRE>
|
67 |
<PRE>
|
68 |
NB (global input) const int |
69 |
On entry, NB specifies the blocking factor used to partition |
70 |
and distribute the matrix. NB must be larger than one. |
71 |
</PRE>
|
72 |
<PRE>
|
73 |
A (local input) const double * |
74 |
On entry, A points to an array of dimension (LDA,LocQ(N)), |
75 |
that contains the local pieces of the distributed matrix A. |
76 |
</PRE>
|
77 |
<PRE>
|
78 |
LDA (local input) const int |
79 |
On entry, LDA specifies the leading dimension of the array A. |
80 |
LDA must be at least max(1,LocP(M)). |
81 |
</PRE>
|
82 |
|
83 |
<H1>See Also</H1> |
84 |
<A HREF="HPL_pdlaprnt.html">HPL_pdlaprnt</A>, |
85 |
<A HREF="HPL_fprintf.html">HPL_fprintf</A>. |
86 |
|
87 |
</BODY>
|
88 |
</HTML>
|