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