ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
iceil.f
Go to the documentation of this file.
1  INTEGER FUNCTION iceil( INUM, IDENOM )
2 *
3 * -- ScaLAPACK tools routine (version 1.7) --
4 * University of Tennessee, Knoxville, Oak Ridge National Laboratory,
5 * and University of California, Berkeley.
6 * May 1, 1997
7 *
8 * .. Scalar Arguments ..
9  INTEGER idenom, inum
10 * ..
11 *
12 * Purpose
13 * =======
14 *
15 * ICEIL returns the ceiling of the division of two integers.
16 *
17 * Arguments
18 * =========
19 *
20 * INUM (local input) INTEGER
21 * The numerator,
22 *
23 * IDENOM (local input) INTEGER
24 * and the denominator of the fraction to be evaluated.
25 *
26 * =====================================================================
27 *
28 * .. Executable Statements ..
29 *
30  iceil = (inum+idenom-1) / idenom
31 *
32  RETURN
33 *
34 * End of ICEIL
35 *
36  END
iceil
integer function iceil(INUM, IDENOM)
Definition: iceil.f:2