Statistiques
| Révision :

root / src / lapack / double / dlaisnan.f @ 9

Historique | Voir | Annoter | Télécharger (1,28 ko)

1 1 pfleura2
      LOGICAL FUNCTION DLAISNAN( DIN1, DIN2 )
2 1 pfleura2
*
3 1 pfleura2
*  -- LAPACK auxiliary routine (version 3.2.2) --
4 1 pfleura2
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
5 1 pfleura2
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
6 1 pfleura2
*     June 2010
7 1 pfleura2
*
8 1 pfleura2
*     .. Scalar Arguments ..
9 1 pfleura2
      DOUBLE PRECISION   DIN1, DIN2
10 1 pfleura2
*     ..
11 1 pfleura2
*
12 1 pfleura2
*  Purpose
13 1 pfleura2
*  =======
14 1 pfleura2
*
15 1 pfleura2
*  This routine is not for general use.  It exists solely to avoid
16 1 pfleura2
*  over-optimization in DISNAN.
17 1 pfleura2
*
18 1 pfleura2
*  DLAISNAN checks for NaNs by comparing its two arguments for
19 1 pfleura2
*  inequality.  NaN is the only floating-point value where NaN != NaN
20 1 pfleura2
*  returns .TRUE.  To check for NaNs, pass the same variable as both
21 1 pfleura2
*  arguments.
22 1 pfleura2
*
23 1 pfleura2
*  A compiler must assume that the two arguments are
24 1 pfleura2
*  not the same variable, and the test will not be optimized away.
25 1 pfleura2
*  Interprocedural or whole-program optimization may delete this
26 1 pfleura2
*  test.  The ISNAN functions will be replaced by the correct
27 1 pfleura2
*  Fortran 03 intrinsic once the intrinsic is widely available.
28 1 pfleura2
*
29 1 pfleura2
*  Arguments
30 1 pfleura2
*  =========
31 1 pfleura2
*
32 1 pfleura2
*  DIN1    (input) DOUBLE PRECISION
33 1 pfleura2
*
34 1 pfleura2
*  DIN2    (input) DOUBLE PRECISION
35 1 pfleura2
*          Two numbers to compare for inequality.
36 1 pfleura2
*
37 1 pfleura2
*  =====================================================================
38 1 pfleura2
*
39 1 pfleura2
*  .. Executable Statements ..
40 1 pfleura2
      DLAISNAN = (DIN1.NE.DIN2)
41 1 pfleura2
      RETURN
42 1 pfleura2
      END