root / www / HPL_dmatgen.html
Historique | Voir | Annoter | Télécharger (1,98 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_dmatgen 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_dmatgen</B> random matrix generator. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>void</CODE> |
15 |
<CODE>HPL_dmatgen(</CODE> |
16 |
<CODE>const int</CODE> |
17 |
<CODE>M</CODE>, |
18 |
<CODE>const int</CODE> |
19 |
<CODE>N</CODE>, |
20 |
<CODE>double *</CODE> |
21 |
<CODE>A</CODE>, |
22 |
<CODE>const int</CODE> |
23 |
<CODE>LDA</CODE>, |
24 |
<CODE>const int</CODE> |
25 |
<CODE>ISEED</CODE> |
26 |
<CODE>);</CODE> |
27 |
|
28 |
<H1>Description</H1> |
29 |
<B>HPL_dmatgen</B> |
30 |
generates (or regenerates) a random matrix A. |
31 |
|
32 |
The pseudo-random generator uses the linear congruential algorithm: |
33 |
X(n+1) = (a * X(n) + c) mod m as described in the Art of Computer |
34 |
Programming, Knuth 1973, Vol. 2. |
35 |
|
36 |
<H1>Arguments</H1> |
37 |
<PRE>
|
38 |
M (input) const int |
39 |
On entry, M specifies the number of rows of the matrix A. |
40 |
M must be at least zero. |
41 |
</PRE>
|
42 |
<PRE>
|
43 |
N (input) const int |
44 |
On entry, N specifies the number of columns of the matrix A. |
45 |
N must be at least zero. |
46 |
</PRE>
|
47 |
<PRE>
|
48 |
A (output) double * |
49 |
On entry, A points to an array of dimension (LDA,N). On exit, |
50 |
this array contains the coefficients of the randomly |
51 |
generated matrix. |
52 |
</PRE>
|
53 |
<PRE>
|
54 |
LDA (input) const int |
55 |
On entry, LDA specifies the leading dimension of the array A. |
56 |
LDA must be at least max(1,M). |
57 |
</PRE>
|
58 |
<PRE>
|
59 |
ISEED (input) const int |
60 |
On entry, ISEED specifies the seed number to generate the |
61 |
matrix A. ISEED must be at least zero. |
62 |
</PRE>
|
63 |
|
64 |
<H1>See Also</H1> |
65 |
<A HREF="HPL_ladd.html">HPL_ladd</A>, |
66 |
<A HREF="HPL_lmul.html">HPL_lmul</A>, |
67 |
<A HREF="HPL_setran.html">HPL_setran</A>, |
68 |
<A HREF="HPL_xjumpm.html">HPL_xjumpm</A>, |
69 |
<A HREF="HPL_jumpit.html">HPL_jumpit</A>, |
70 |
<A HREF="HPL_rand.html">HPL_rand</A>. |
71 |
|
72 |
</BODY>
|
73 |
</HTML>
|