ArborX / Spatial indexes / ArborX::BruteForce
ArborX::BruteForce<MemorySpace>::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.
Parameters¶
space: the execution space.primitives: geometrical objects one wishes to index.
Type requirements¶
MemorySpacemust be accessible fromExecutionSpace. (Kokkos::SpaceAccessibility<ExecutionSpace, MemorySpace>::accessiblemust betrue.)A specialization of ArborX::AccessTraits must match
Primitivesas the first template argument andArborX::PrimitivesTagas second argument.The return type of
ArborX::AccessTraits<Primitives,ArborX::PrimitivesTag>::get()must decay either toArborX::PointorArborX::Box.
ArborX provides specializations for Kokkos views but a user may specialize it for their types.
Complexity¶
O(N), where N is the number of primitives passed to the constructor (ArborX::AccessTraits<Primitives,ArborX::PrimitivesTag>::size(primitives)).
Exceptions¶
Memory allocation with Kokkos may throw.