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

◆ ladd()

subroutine ladd ( integer, dimension(2)  j,
integer, dimension(2)  k,
integer, dimension(2)  i 
)

Definition at line 5 of file pmatgeninc.f.

6*
7* -- ScaLAPACK routine (version 1.7) --
8* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
9* and University of California, Berkeley.
10* May 1, 1997
11*
12* .. Array Arguments ..
13 INTEGER I(2), J(2), K(2)
14* ..
15*
16* =====================================================================
17*
18* .. Parameters ..
19 INTEGER IPOW16, IPOW15
20 parameter( ipow16=2**16, ipow15=2**15 )
21* ..
22* .. Intrinsic Functions ..
23 INTRINSIC mod
24* ..
25* .. Executable Statements ..
26*
27 i(1) = mod( k(1)+j(1), ipow16 )
28 i(2) = mod( (k(1)+j(1)) / ipow16+k(2)+j(2), ipow15 )
29*
30 RETURN
31*
32* End of LADD
33*