I guess that octave uses sNaN as NA?
Rafael Laboissière <rafael@debian.org> 于2025年5月13日周二 00:30写道:
[…]
It seems to be a problem related to how floating point NA and NaN are
represented.
Strangely, I cannot reproduce this problem. I built the package manually
on a mips64el porterbox using schroot and everything worked fine.
I see. The problem is that the machine (mipsel-osuosl-03.debian.org) is Loongson 3A4000. The problem is that MIPS swap the encodings of sNaN
and qNaN since MIPSr5.
I guess that octave uses sNaN as NA? We have no good solution for it.
We have meet some other packages with this case. Let's just ask the
help from DSA to pin this package on non-3A4000 machines.
* YunQiang Su <wzssyqa@gmail.com> [2025-05-13 08:49]:
Rafael Laboissière <rafael@debian.org> 于2025年5月13日周二 00:30写道:
[…]
It seems to be a problem related to how floating point NA and NaN
are represented.
Strangely, I cannot reproduce this problem. I built the package
manually on a mips64el porterbox using schroot and everything worked fine.
I see. The problem is that the machine (mipsel-osuosl-03.debian.org) is Loongson 3A4000. The problem is that MIPS swap the encodings of sNaN and qNaN since MIPSr5.
I guess that octave uses sNaN as NA? We have no good solution for it. We have meet some other packages with this case. Let's just ask the help
from DSA to pin this package on non-3A4000 machines.
Could you please tell me how to make do such a request?
some years ago (how time flies) someone pushed a patch for R (upstream)
to stop using nan-with-payload for na. it looks like octave also needs
such a change for architectures which support only canonical nans.
such as riscv. (and mips?)
the respective licenses (2or3 -> 3) would permit any octave patch to
borrow from how R now handles na.
"RL" == Rafael Laboissire <rafael@debian.org> writes:
could you please provide more information about the patch you mentioned?
i took a look at all of the r-devel archves.
it is clear my memory about separation NA from nan was not about R.
although those archives do talk about avoiding sending NA or nan to BLAS.
(i found a related post from me back in 2010...)
i wonder whether the NA discussion i recalled may have been about julia?
if so it was before they dropped mainglists in favour of discourse ☹.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 49:26:17 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,312 |
Posted today: | 1 |