But thinking about it again that’s probably suboptimal but not fatal.
However these lines immediately before that if statement look like you
are accessing the input array x *before* checking bounds
neighbor_idx(0) = i-shift(1);
neighbor_idx(1) = j+shift(0);
int neighbor_val =
Thank you Greg. That change worked perfectly! Not sure why that wasn't
always causing problems, but that fixed the issue and I pushed the changes
to github. Also, thank you Dirk for the additional resources.
On Wed, Oct 28, 2020 at 7:43 PM Alexander Ilich wrote:
> Oh, sorry. A comma got tacked o