Open jenni-westoby opened 6 years ago
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.