![]() |
1
35
这太尴尬了。
编译器(在本例中是GCC)优化比较和
-ffast-math Sets -fno-math-errno, -funsafe-math-optimizations, -fno-trapping-math, -ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx-limited-range. This option causes the preprocessor macro __FAST_MATH__ to be defined. This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math functions.
注意结尾的句子-
|
![]() |
2
4
这是我在测试套件中使用的:
|
![]() |
3
1
这看起来像是库的实现中的一个bug
编辑
:带
|
![]() |
4
0
有一个C99 isnan(),您应该可以使用它。 如果在您的实现中它不能正常工作(那是哪一个?)你可以实现你自己的,通过重新解释你铸造到长和做IEEE位魔术。 |
![]() |
5
0
这可能是不可移植的,但如果你确定你的平台,它可以接受。更多: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlf101l.doc/xlfopg/fpieee.htm |
![]() |
6
-3
这是根据维基百科文章发表的评论。请注意,它是完全未经测试的--它应该给你一个想法,你可以做的事情,虽然。
编辑:我真的认为你应该考虑向GLibc的人提交一个bug。 |
![]() |
Pbalazs89 · NaN问题-无法在Jquery中显示数字 7 年前 |
![]() |
Jan · 用熊猫的数据填充矩阵。数据帧,跳过NaN 7 年前 |
![]() |
user2614596 · scipy。pdist()返回NaN值 7 年前 |
|
user7055375 · 如何在ruby中检查var是否为NaN? 7 年前 |