Statistiques
| Révision :

root / www / HPL_pdmatgen.html

Historique | Voir | Annoter | Télécharger (2,46 ko)

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_pdmatgen 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_pdmatgen</B> Parallel random matrix generator.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>void</CODE>
15
<CODE>HPL_pdmatgen(</CODE>
16
<CODE>const HPL_T_grid *</CODE>
17
<CODE>GRID</CODE>,
18
<CODE>const int</CODE>
19
<CODE>M</CODE>,
20
<CODE>const int</CODE>
21
<CODE>N</CODE>,
22
<CODE>const int</CODE>
23
<CODE>NB</CODE>,
24
<CODE>double *</CODE>
25
<CODE>A</CODE>,
26
<CODE>const int</CODE>
27
<CODE>LDA</CODE>,
28
<CODE>const int</CODE>
29
<CODE>ISEED</CODE>
30
<CODE>);</CODE>
31

    
32
<H1>Description</H1>
33
<B>HPL_pdmatgen</B>
34
generates (or regenerates) a parallel random matrix A.
35
 
36
The  pseudo-random  generator uses the linear congruential algorithm:
37
X(n+1) = (a * X(n) + c) mod m  as  described  in the  Art of Computer
38
Programming, Knuth 1973, Vol. 2.
39

    
40
<H1>Arguments</H1>
41
<PRE>
42
GRID    (local input)                 const HPL_T_grid *
43
        On entry,  GRID  points  to the data structure containing the
44
        process grid information.
45
</PRE>
46
<PRE>
47
M       (global input)                const int
48
        On entry,  M  specifies  the number  of rows of the matrix A.
49
        M must be at least zero.
50
</PRE>
51
<PRE>
52
N       (global input)                const int
53
        On entry,  N specifies the number of columns of the matrix A.
54
        N must be at least zero.
55
</PRE>
56
<PRE>
57
NB      (global input)                const int
58
        On entry,  NB specifies the blocking factor used to partition
59
        and distribute the matrix A. NB must be larger than one.
60
</PRE>
61
<PRE>
62
A       (local output)                double *
63
        On entry,  A  points  to an array of dimension (LDA,LocQ(N)).
64
        On exit, this array contains the coefficients of the randomly
65
        generated matrix.
66
</PRE>
67
<PRE>
68
LDA     (local input)                 const int
69
        On entry, LDA specifies the leading dimension of the array A.
70
        LDA must be at least max(1,LocP(M)).
71
</PRE>
72
<PRE>
73
ISEED   (global input)                const int
74
        On entry, ISEED  specifies  the  seed  number to generate the
75
        matrix A. ISEED must be at least zero.
76
</PRE>
77

    
78
<H1>See Also</H1>
79
<A HREF="HPL_ladd.html">HPL_ladd</A>,
80
<A HREF="HPL_lmul.html">HPL_lmul</A>,
81
<A HREF="HPL_setran.html">HPL_setran</A>,
82
<A HREF="HPL_xjumpm.html">HPL_xjumpm</A>,
83
<A HREF="HPL_jumpit.html">HPL_jumpit</A>,
84
<A HREF="HPL_drand.html">HPL_drand</A>.
85

    
86
</BODY>
87
</HTML>