Module splashsurf_lib::neighborhood_search
source · Expand description
Simple neighborhood search based on spatial hashing
This module provides basic sequential and parallel neighborhood search implementations using spatial hashing. The algorithms return per-particle neighborhood list with indices of all particles that are within the given radius of the particle.
Structs
- Stores particle neighborhood lists contiguously in memory using a second offset array
- Stats of a neighborhood list
Traits
- Trait unifying different particle neighborhood list storage formats
Functions
- Computes stats (avg. neighbors, histogram) of the given neighborhood list
- Performs a naive neighborhood search with
O(N^2)
complexity, only recommended for testing - Performs a neighborhood search (sequential implementation)
- Performs a neighborhood search (sequential implementation, with filter)
- Performs a neighborhood search (sequential implementation, returning a
FlatNeighborhoodList
) - Performs a neighborhood search (sequential implementation, with filter, returning a
FlatNeighborhoodList
) - Performs a neighborhood search (multi-threaded implementation)
- Performs a neighborhood search, returning the indices of all neighboring particles in the given search radius per particle
- Performs a neighborhood search inplace, stores the indices of all neighboring particles in the given search radius per particle in the given vector