root / www / HPL_indxg2l.html
Historique | Voir | Annoter | Télécharger (2,03 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_indxg2l 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_indxg2l</B> Map a global index into a local one. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>int</CODE> |
15 |
<CODE>HPL_indxg2l(</CODE> |
16 |
<CODE>const int</CODE> |
17 |
<CODE>IG</CODE>, |
18 |
<CODE>const int</CODE> |
19 |
<CODE>INB</CODE>, |
20 |
<CODE>const int</CODE> |
21 |
<CODE>NB</CODE>, |
22 |
<CODE>const int</CODE> |
23 |
<CODE>SRCPROC</CODE>, |
24 |
<CODE>const int</CODE> |
25 |
<CODE>NPROCS</CODE> |
26 |
<CODE>);</CODE> |
27 |
|
28 |
<H1>Description</H1> |
29 |
<B>HPL_indxg2l</B> |
30 |
computes the local index of a matrix entry pointed to by |
31 |
the global index IG. This local returned index is the same in all |
32 |
processes. |
33 |
|
34 |
<H1>Arguments</H1> |
35 |
<PRE>
|
36 |
IG (input) const int |
37 |
On entry, IG specifies the global index of the matrix entry. |
38 |
IG must be at least zero. |
39 |
</PRE>
|
40 |
<PRE>
|
41 |
INB (input) const int |
42 |
On entry, INB specifies the size of the first block of the |
43 |
global matrix. INB must be at least one. |
44 |
</PRE>
|
45 |
<PRE>
|
46 |
NB (input) const int |
47 |
On entry, NB specifies the blocking factor used to partition |
48 |
and distribute the matrix. NB must be larger than one. |
49 |
</PRE>
|
50 |
<PRE>
|
51 |
SRCPROC (input) const int |
52 |
On entry, if SRCPROC = -1, the data is not distributed but |
53 |
replicated, in which case this routine returns IG in all |
54 |
processes. Otherwise, the value of SRCPROC is ignored. |
55 |
</PRE>
|
56 |
<PRE>
|
57 |
NPROCS (input) const int |
58 |
On entry, NPROCS specifies the total number of process rows |
59 |
or columns over which the matrix is distributed. NPROCS must |
60 |
be at least one. |
61 |
</PRE>
|
62 |
|
63 |
<H1>See Also</H1> |
64 |
<A HREF="HPL_indxg2lp.html">HPL_indxg2lp</A>, |
65 |
<A HREF="HPL_indxg2p.html">HPL_indxg2p</A>, |
66 |
<A HREF="HPL_indxl2g.html">HPL_indxl2g</A>, |
67 |
<A HREF="HPL_numroc.html">HPL_numroc</A>, |
68 |
<A HREF="HPL_numrocI.html">HPL_numrocI</A>. |
69 |
|
70 |
</BODY>
|
71 |
</HTML>
|