SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ igenmat()

subroutine igenmat ( integer  m,
integer  n,
integer, dimension(lda,n)  a,
integer  lda,
integer  testnum,
integer  myrow,
integer  mycol 
)

Definition at line 6410 of file blacstest.f.

6411*
6412* -- BLACS tester (version 1.0) --
6413* University of Tennessee
6414* December 15, 1994
6415*
6416*
6417* .. Scalar Arguments ..
6418 INTEGER M, N, LDA, TESTNUM, MYROW, MYCOL
6419* ..
6420* .. Array Arguments ..
6421 INTEGER A(LDA,N)
6422* ..
6423*
6424* Purpose
6425* =======
6426* IGENMAT: Generates an M-by-N matrix filled with random elements.
6427*
6428* Arguments
6429* =========
6430* M (input) INTEGER
6431* The number of rows of the matrix A. M >= 0.
6432*
6433* N (input) INTEGER
6434* The number of columns of the matrix A. N >= 0.
6435*
6436* A (output) @up@(doctype) array, dimension (LDA,N)
6437* The m by n matrix A. Fortran77 (column-major) storage
6438* assumed.
6439*
6440* LDA (input) INTEGER
6441* The leading dimension of the array A. LDA >= max(1, M).
6442*
6443* TESTNUM (input) INTEGER
6444* Unique number for this test case, used as a basis for
6445* the random seeds.
6446*
6447* ====================================================================
6448*
6449* .. External Functions ..
6450 INTEGER IBTNPROCS
6451 INTEGER IBTRAN
6452 EXTERNAL ibtran, ibtnprocs
6453* ..
6454* .. Local Scalars ..
6455 INTEGER I, J, NPROCS, SRC
6456* ..
6457* .. Local Arrays ..
6458 INTEGER ISEED(4)
6459* ..
6460* .. Executable Statements ..
6461*
6462* ISEED's four values must be positive integers less than 4096,
6463* fourth one has to be odd. (see _LARND). Use some goofy
6464* functions to come up with seed values which together should
6465* be unique.
6466*
6467 nprocs = ibtnprocs()
6468 src = myrow * nprocs + mycol
6469 iseed(1) = mod( 1002 + testnum*5 + src*3, 4096 )
6470 iseed(2) = mod( 2027 + testnum*7 + src, 4096 )
6471 iseed(3) = mod( 1234 + testnum + src*3, 4096 )
6472 iseed(4) = mod( 4311 + testnum*10 + src*2, 4096 )
6473*
6474 DO 10 j = 1, n
6475 DO 10 i = 1, m
6476 a(i, j) = ibtran( iseed )
6477 10 CONTINUE
6478*
6479 RETURN
6480*
6481* End of IGENMAT.
6482*
integer function ibtran(iseed)
Definition blacstest.f:6486
integer function ibtnprocs()
Definition btprim.f:81
Here is the caller graph for this function: