You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sceil.f 1.7 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. C> \brief \b SCEIL
  2. *
  3. * =========== DOCUMENTATION ===========
  4. *
  5. * Online html documentation available at
  6. * http://www.netlib.org/lapack/explore-html/
  7. *
  8. * Definition:
  9. * ===========
  10. *
  11. * REAL FUNCTION SCEIL( A )
  12. *
  13. * .. Scalar Arguments ..
  14. * REAL A
  15. * ..
  16. *
  17. * =====================================================================
  18. *
  19. * .. Intrinsic Functions ..
  20. * INTRINSIC INT
  21. * ..
  22. * .. Executable Statements ..*
  23. *
  24. * IF (A-INT(A).EQ.0) THEN
  25. * SCEIL = A
  26. * ELSE IF (A.GT.0) THEN
  27. * SCEIL = INT(A)+1;
  28. * ELSE
  29. * SCEIL = INT(A)
  30. * END IF
  31. *
  32. * RETURN
  33. *
  34. * END
  35. * Purpose
  36. * =======
  37. *
  38. C>\details \b Purpose:
  39. C>\verbatim
  40. C>\endverbatim
  41. *
  42. * Arguments:
  43. * ==========
  44. *
  45. *
  46. * Authors:
  47. * ========
  48. *
  49. C> \author Univ. of Tennessee
  50. C> \author Univ. of California Berkeley
  51. C> \author Univ. of Colorado Denver
  52. C> \author NAG Ltd.
  53. *
  54. C> \date December 2016
  55. *
  56. C> \ingroup variantsOTHERcomputational
  57. *
  58. * =====================================================================
  59. REAL FUNCTION SCEIL( A )
  60. *
  61. * -- LAPACK computational routine --
  62. * -- LAPACK is a software package provided by Univ. of Tennessee, --
  63. * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
  64. *
  65. * .. Scalar Arguments ..*
  66. REAL A
  67. * ..
  68. *
  69. * =====================================================================
  70. *
  71. * .. Intrinsic Functions ..
  72. INTRINSIC INT
  73. * ..
  74. * .. Executable Statements ..*
  75. *
  76. IF (A-INT(A).EQ.0) THEN
  77. SCEIL = A
  78. ELSE IF (A.GT.0) THEN
  79. SCEIL = INT(A)+1;
  80. ELSE
  81. SCEIL = INT(A)
  82. END IF
  83. RETURN
  84. *
  85. END