jzarnett / ece459

ECE 459: Programming for Performance
446 stars 137 forks source link

Corrected 'is_adjacent' function within nbody-bins #58

Closed deadinsky closed 3 years ago

deadinsky commented 3 years ago

First off, there's a duplicate comparison for +1. Secondly, the intent seems to be a symmetric comparison for both bins. The last 4 lines were duplicates and the 4 lines before that did not have positive counterparts. Those lines and the comment were updated to be inline with the commutative nature of this function.