-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linspace construction failures #20520
Comments
Hmm, tricky. I just searched through |
I think this will require a 32-bit VM to debug. Fortunately, it fails on both Win32 and Linux32. |
you can use multilib compilers to build 32 bit julia on 64 bit linux. set |
I just saw what looks like a range length test failure on 64-bit, apparently due to unlucky random numbers: |
I've actually managed to reproduce this on 64-bit with enough iterations. Some cases: (start, step, stop, n) = (-1.7123204f0, 3.2072393f-8, -1.7123204f0, 2)
(start, step, stop, n) = (1.3173739f0, -2.3759904f-8, 1.3173739f0, 3)
(start, step, stop, n) = (1.2467973f0, 4.1729544f-9, 1.2467973f0, 2) |
The old code worked in the case where the inputs are expressible as rationals, but when that fails we were getting an InexactError.
Specifically this line fails on 32-bit systems. The failure is an
InexactError
and goes away when linspace construction in that loop is commented out, suggesting that there's some code somewhere that does atrunc
,floor
orceil
toInt
with a value that is too large to represent as a 32-bit integer.The text was updated successfully, but these errors were encountered: