-
Notifications
You must be signed in to change notification settings - Fork 45
ArborX::BruteForce::BruteForce
Andrey Prokopenko edited this page Jan 6, 2025
·
6 revisions
ArborX / Spatial indexes / ArborX::BruteForce
BruteForce() noexcept; // (1)
template <typename ExecutionSpace, typename Primitives>
BruteForce(ExecutionSpace const& space, Primitives const& primitives); // (2)- Default constructor. Constructs an empty data structure.
- Constructs a bounding volume hierarchy from the given data source.
space
: the execution space.
primitives
: geometrical objects one wishes to index.
-
MemorySpacemust be accessible fromExecutionSpace. (Kokkos::SpaceAccessibility<ExecutionSpace, MemorySpace>::accessiblemust betrue.) - A specialization of
ArborX::AccessTraitsmust matchPrimitivesas the first template argument. - The return type of
ArborX::AccessTraits<Primitives>::get()must decay either toArborX::PointorArborX::Box. ArborX provides specializations for Kokkos views but a user may specialize it for their types.
O(N), where N is the number of primitives passed to the constructor (ArborX::AccessTraits<Primitives>::size(primitives)).
Memory allocation with Kokkos may throw.
query
: search for all primitives that meet some predicates.
bounds
: returns the box that contains all leaves.