1HPL_dmatgen(3)               HPL Library Functions              HPL_dmatgen(3)
2
3
4

NAME

6       HPL_dmatgen - random matrix generator.
7

SYNOPSIS

9       #include "hpl.h"
10
11       void  HPL_dmatgen( const int M, const int N, double * A, const int LDA,
12       const int ISEED );
13

DESCRIPTION

15       HPL_dmatgen generates (or regenerates) a random matrix A.
16
17       The  pseudo-random  generator uses the linear  congruential  algorithm:
18       X(n+1)  =  (a * X(n) + c) mod m  as  described  in the  Art of Computer
19       Programming, Knuth 1973, Vol. 2.
20

ARGUMENTS

22       M       (input)                 const int
23               On entry,  M  specifies  the number  of rows of the  matrix  A.
24               M must be at least zero.
25
26       N       (input)                 const int
27               On  entry,   N specifies the number of columns of the matrix A.
28               N must be at least zero.
29
30       A       (output)                double *
31               On entry, A points to an array of dimension (LDA,N).  On  exit,
32               this   array   contains   the   coefficients  of  the  randomly
33               generated matrix.
34
35       LDA     (input)                 const int
36               On entry, LDA specifies the leading dimension of the  array  A.
37               LDA must be at least max(1,M).
38
39       ISEED   (input)                 const int
40               On  entry,  ISEED  specifies  the  seed  number to generate the
41               matrix A. ISEED must be at least zero.
42

SEE ALSO

44       HPL_ladd (3),     HPL_lmul (3),     HPL_setran (3),     HPL_xjumpm (3),
45       HPL_jumpit (3), HPL_rand (3).
46
47
48
49HPL 2.2                        February 24, 2016                HPL_dmatgen(3)
Impressum