Skip to content

Conversation

wasowski
Copy link

@wasowski wasowski commented Jun 8, 2025

Fixes #1315. Details of debugging over there.

I added a regression test that fails without the fix to the nfix function. It would be fantastic if this was merged soon, as this would simplify my build management downstream.

@wasowski wasowski changed the title Ziggurat: Fix an underflow-bug and add a regression test cf. issue #1315 Ziggurat: Fix an underflow-bug and add a regression test Jun 8, 2025
@wasowski
Copy link
Author

wasowski commented Jun 8, 2025

Apparently the regression test is flaky (I could also just remove it). It seems to works fine with the current test suite, but since the Ziggurat implementation is stateful, it may require a higher constant than 975, if another tests presses it. As far as I can see, the regression test will only pass, if some other test fails for this reason, so it does not seem to be a big problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gaussian sampler crashes randomly with ArrayIndexOutOfBoundsException
1 participant