Skip to content

Fix assertion error for arrays with lots of zeros.#79

Open
jenni-westoby wants to merge 1 commit intodeweylab:masterfrom
jenni-westoby:master
Open

Fix assertion error for arrays with lots of zeros.#79
jenni-westoby wants to merge 1 commit intodeweylab:masterfrom
jenni-westoby:master

Conversation

@jenni-westoby
Copy link
Copy Markdown

The logic for sampling arrays fails when most of the array is zero.
We fix this by sampling uniformly from the indices into the array,
as suggested by the comment in simul.h.

The logic for sampling arrays fails when most of the array is zero.
We fix this by sampling uniformly from the indices into the array,
as suggested by the comment in simul.h.
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.

1 participant