Télécharger dlaisnan.eso

Retour à la liste

Numérotation des lignes :

dlaisnan
  1. C DLAISNAN SOURCE FANDEUR 22/05/02 21:15:08 11359
  2. C DLAISNAN SOURCE
  3. *> \brief \b DLAISNAN tests input for NaN by comparing two arguments for inequality.
  4. *
  5. * =========== DOCUMENTATION ===========
  6. *
  7. * Online html documentation available at
  8. * http://www.netlib.org/lapack/explore-html/
  9. *
  10. *> \htmlonly
  11. *> Download DLAISNAN + dependencies
  12. *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlaisnan.f">
  13. *> [TGZ]</a>
  14. *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlaisnan.f">
  15. *> [ZIP]</a>
  16. *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlaisnan.f">
  17. *> [TXT]</a>
  18. *> \endhtmlonly
  19. *
  20. * Definition:
  21. * ===========
  22. *
  23. * LOGICAL FUNCTION DLAISNAN( DIN1, DIN2 )
  24. *
  25. * .. Scalar Arguments ..
  26. * REAL*8 DIN1, DIN2
  27. * ..
  28. *
  29. *
  30. *> \par Purpose:
  31. * =============
  32. *>
  33. *> \verbatim
  34. *>
  35. *> This routine is not for general use. It exists solely to avoid
  36. *> over-optimization in DISNAN.
  37. *>
  38. *> DLAISNAN checks for NaNs by comparing its two arguments for
  39. *> inequality. NaN is the only floating-point value where NaN != NaN
  40. *> returns .TRUE. To check for NaNs, pass the same variable as both
  41. *> arguments.
  42. *>
  43. *> A compiler must assume that the two arguments are
  44. *> not the same variable, and the test will not be optimized away.
  45. *> Interprocedural or whole-program optimization may delete this
  46. *> test. The ISNAN functions will be replaced by the correct
  47. *> Fortran 03 intrinsic once the intrinsic is widely available.
  48. *> \endverbatim
  49. *
  50. * Arguments:
  51. * ==========
  52. *
  53. *> \param[in] DIN1
  54. *> \verbatim
  55. *> DIN1 is DOUBLE PRECISION
  56. *> \endverbatim
  57. *>
  58. *> \param[in] DIN2
  59. *> \verbatim
  60. *> DIN2 is DOUBLE PRECISION
  61. *> Two numbers to compare for inequality.
  62. *> \endverbatim
  63. *
  64. * Authors:
  65. * ========
  66. *
  67. *> \author Univ. of Tennessee
  68. *> \author Univ. of California Berkeley
  69. *> \author Univ. of Colorado Denver
  70. *> \author NAG Ltd.
  71. *
  72. *> \date June 2017
  73. *
  74. *> \ingroup OTHERauxiliary
  75. *
  76. * =====================================================================
  77. LOGICAL FUNCTION DLAISNAN( DIN1, DIN2 )
  78. *
  79. * -- LAPACK auxiliary routine (version 3.7.1) --
  80. * -- LAPACK is a software package provided by Univ. of Tennessee, --
  81. * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
  82. * June 2017
  83. *
  84. * .. Scalar Arguments ..
  85. REAL*8 DIN1, DIN2
  86. * ..
  87. *
  88. * =====================================================================
  89. *
  90. * .. Executable Statements ..
  91. DLAISNAN = (DIN1.NE.DIN2)
  92. RETURN
  93. END
  94.  
  95.  
  96.  

© Cast3M 2003 - Tous droits réservés.
Mentions légales