-
Notifications
You must be signed in to change notification settings - Fork 39
ArborX::BruteForce::BruteForce
Damien L-G edited this page Mar 12, 2021
·
3 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.
-
MemorySpace
must be accessible fromExecutionSpace
. (Kokkos::SpaceAccessibility<ExecutionSpace, MemorySpace>::accessible
must betrue
.) - A specialization of
ArborX::AccessTraits
must matchPrimitives
as the first template argument andArborX::PrimitivesTag
as second argument. - The return type of
ArborX::AccessTraits<Primitives,ArborX::PrimitivesTag>::get()
must decay either toArborX::Point
orArborX::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,ArborX::PrimitivesTag>::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.