Statistiques
| Révision :

root / man / man3 / HPL_pdmatgen.3 @ 1

Historique | Voir | Annoter | Télécharger (1,88 ko)

1
.TH HPL_pdmatgen 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions"
2
.SH NAME
3
HPL_pdmatgen \- Parallel random matrix generator.
4
.SH SYNOPSIS
5
\fB\&#include "hpl.h"\fR
6
 
7
\fB\&void\fR
8
\fB\&HPL_pdmatgen(\fR
9
\fB\&const HPL_T_grid *\fR
10
\fI\&GRID\fR,
11
\fB\&const int\fR
12
\fI\&M\fR,
13
\fB\&const int\fR
14
\fI\&N\fR,
15
\fB\&const int\fR
16
\fI\&NB\fR,
17
\fB\&double *\fR
18
\fI\&A\fR,
19
\fB\&const int\fR
20
\fI\&LDA\fR,
21
\fB\&const int\fR
22
\fI\&ISEED\fR
23
\fB\&);\fR
24
.SH DESCRIPTION
25
\fB\&HPL_pdmatgen\fR
26
generates (or regenerates) a parallel random matrix A.
27
 
28
The  pseudo-random  generator uses the linear congruential algorithm:
29
X(n+1) = (a * X(n) + c) mod m  as  described  in the  Art of Computer
30
Programming, Knuth 1973, Vol. 2.
31
.SH ARGUMENTS
32
.TP 8
33
GRID    (local input)           const HPL_T_grid *
34
On entry,  GRID  points  to the data structure containing the
35
process grid information.
36
.TP 8
37
M       (global input)          const int
38
On entry,  M  specifies  the number  of rows of the matrix A.
39
M must be at least zero.
40
.TP 8
41
N       (global input)          const int
42
On entry,  N specifies the number of columns of the matrix A.
43
N must be at least zero.
44
.TP 8
45
NB      (global input)          const int
46
On entry,  NB specifies the blocking factor used to partition
47
and distribute the matrix A. NB must be larger than one.
48
.TP 8
49
A       (local output)          double *
50
On entry,  A  points  to an array of dimension (LDA,LocQ(N)).
51
On exit, this array contains the coefficients of the randomly
52
generated matrix.
53
.TP 8
54
LDA     (local input)           const int
55
On entry, LDA specifies the leading dimension of the array A.
56
LDA must be at least max(1,LocP(M)).
57
.TP 8
58
ISEED   (global input)          const int
59
On entry, ISEED  specifies  the  seed  number to generate the
60
matrix A. ISEED must be at least zero.
61
.SH SEE ALSO
62
.BR HPL_ladd \ (3),
63
.BR HPL_lmul \ (3),
64
.BR HPL_setran \ (3),
65
.BR HPL_xjumpm \ (3),
66
.BR HPL_jumpit \ (3),
67
.BR HPL_drand \ (3).