You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max_element is calling for range neighbours.begin(), neighbours.begin() which doesn't make sense. Moreover, even if you use the full range, there will only be 2 neighboring particles in it, meaning the current particle itself is ignored when calculating the local best.
The text was updated successfully, but these errors were encountered:
Hi,
I was just studying the code and came across the following function:
max_element is calling for range neighbours.begin(), neighbours.begin() which doesn't make sense. Moreover, even if you use the full range, there will only be 2 neighboring particles in it, meaning the current particle itself is ignored when calculating the local best.
The text was updated successfully, but these errors were encountered: