![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Functions | |
| template<class GreaterThan , class RandomAccessIterator > | |
| __host__ __device__ void | sift_down (RandomAccessIterator array, size_t begin, size_t length, GreaterThan c=GreaterThan()) |
| template<class GreaterThan , class RandomAccessIterator > | |
| __host__ __device__ void | make_heap (RandomAccessIterator begin, size_t length, GreaterThan c=GreaterThan()) |
| template<class GreaterThan , class RandomAccessIterator > | |
| __host__ __device__ bool | is_heap (RandomAccessIterator begin, size_t length, GreaterThan c=GreaterThan()) |
| template<class GreaterThan , class RandomAccessIterator , class RandomAccessIterator2 > | |
| __host__ __device__ void | sift_down (RandomAccessIterator key, RandomAccessIterator2 value, size_t begin, size_t length, GreaterThan c=GreaterThan()) |
| template<class GreaterThan , class RandomAccessIterator , class RandomAccessIterator2 > | |
| __host__ __device__ void | make_heap (RandomAccessIterator key, RandomAccessIterator2 value, size_t length, GreaterThan c=GreaterThan()) |
| __host__ __device__ bool flann::cuda::heap::is_heap | ( | RandomAccessIterator | begin, |
| size_t | length, | ||
| GreaterThan | c = GreaterThan() |
||
| ) |
| __host__ __device__ void flann::cuda::heap::make_heap | ( | RandomAccessIterator | begin, |
| size_t | length, | ||
| GreaterThan | c = GreaterThan() |
||
| ) |
creates a max-heap in the array beginning at begin of length "length" if c is a less-than comparator, it will create a min-heap
Definition at line 73 of file heap.h.
References length(), and sift_down().
Referenced by flann::KNNResultSet2< DistanceType >::addPoint(), flann::KNNRadiusResultSet< DistanceType >::addPoint(), flann::cuda::KnnResultSet< DistanceType, useHeap >::finish(), flann::cuda::RadiusKnnResultSet< DistanceType, useHeap >::finish(), flann::cuda::KnnRadiusResultSet< DistanceType, useHeap >::finish(), flann::cuda::RadiusResultSet< DistanceType >::finish(), flann::cuda::KnnResultSet< DistanceType, useHeap >::insert(), flann::cuda::RadiusKnnResultSet< DistanceType, useHeap >::insert(), and flann::cuda::KnnRadiusResultSet< DistanceType, useHeap >::insert().
| __host__ __device__ void flann::cuda::heap::make_heap | ( | RandomAccessIterator | key, |
| RandomAccessIterator2 | value, | ||
| size_t | length, | ||
| GreaterThan | c = GreaterThan() |
||
| ) |
creates a max-heap in the array beginning at begin of length "length" if c is a less-than comparator, it will create a min-heap
Definition at line 125 of file heap.h.
References length(), and sift_down().
| __host__ __device__ void flann::cuda::heap::sift_down | ( | RandomAccessIterator | array, |
| size_t | begin, | ||
| size_t | length, | ||
| GreaterThan | c = GreaterThan() |
||
| ) |
moves an element down the heap until all children are smaller than the element if c is a less-than comparator, it do this until all children are larger
Definition at line 50 of file heap.h.
References length(), and flann::cuda::swap().
Referenced by flann::cuda::KnnResultSet< DistanceType, useHeap >::finish(), flann::cuda::RadiusKnnResultSet< DistanceType, useHeap >::finish(), flann::cuda::KnnRadiusResultSet< DistanceType, useHeap >::finish(), flann::cuda::RadiusResultSet< DistanceType >::finish(), flann::cuda::KnnResultSet< DistanceType, useHeap >::insert(), flann::cuda::RadiusKnnResultSet< DistanceType, useHeap >::insert(), flann::cuda::KnnRadiusResultSet< DistanceType, useHeap >::insert(), and make_heap().
| __host__ __device__ void flann::cuda::heap::sift_down | ( | RandomAccessIterator | key, |
| RandomAccessIterator2 | value, | ||
| size_t | begin, | ||
| size_t | length, | ||
| GreaterThan | c = GreaterThan() |
||
| ) |
moves an element down the heap until all children are smaller than the element if c is a less-than comparator, it do this until all children are larger
Definition at line 101 of file heap.h.
References length(), and flann::cuda::swap().