Skip to content
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

Fix/normal space hashing #327

Merged

Conversation

jsburklund
Copy link
Contributor

Fix hashing issues.

Explicity use the correct rounding direction so that enough buckets are allocated, and handle wrapping theta appropriately at Pi. Previously, if theta=Pi, the hash returned an index out of bounds of the preallocated memory and caused a segfault.

jburklund added 2 commits April 2, 2019 13:38
Explicity use the correct rounding direction so that enough
buckets are allocated, and handle wrapping theta appropriately
at Pi. Previously, if theta=Pi, the hash returned an index out
of bounds of the preallocated memory and caused a segfault.
@simonpierredeschenes
Copy link
Collaborator

Thanks for the effort. It's really appreciated!

We'll look at this PR more in details at the end of this week.

@simonpierredeschenes
Copy link
Collaborator

Looks good to me, to merge.

@simonpierredeschenes simonpierredeschenes merged commit b2395c8 into norlab-ulaval:master Apr 4, 2019
@jsburklund jsburklund deleted the fix/normal_hashing_pr branch April 16, 2019 15:20
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.

2 participants