ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
flann::cuda::KnnResultSet< DistanceType, useHeap > Struct Template Reference

#include <result_set.h>

Public Member Functions

__device__ __host__ KnnResultSet (int knn, bool sortResults, DistanceType eps)
 
__device__ DistanceType worstDist ()
 
__device__ void insert (int index, DistanceType dist)
 
__device__ void findLargestDistIndex ()
 
__device__ void setResultLocation (DistanceType *dists, int *index, int thread, int stride)
 
__host__ __device__ void finish ()
 

Public Attributes

int foundNeighbors
 
DistanceType largestHeapDist
 
int maxDistIndex
 
const int k
 
const bool sorted
 
const DistanceType epsError
 
float * resultDist
 
int * resultIndex
 

Detailed Description

template<typename DistanceType, bool useHeap>
struct flann::cuda::KnnResultSet< DistanceType, useHeap >

Definition at line 122 of file result_set.h.

Constructor & Destructor Documentation

◆ KnnResultSet()

template<typename DistanceType , bool useHeap>
__device__ __host__ flann::cuda::KnnResultSet< DistanceType, useHeap >::KnnResultSet ( int  knn,
bool  sortResults,
DistanceType  eps 
)
inline

Definition at line 133 of file result_set.h.

Member Function Documentation

◆ findLargestDistIndex()

◆ finish()

◆ insert()

◆ setResultLocation()

template<typename DistanceType , bool useHeap>
__device__ void flann::cuda::KnnResultSet< DistanceType, useHeap >::setResultLocation ( DistanceType *  dists,
int *  index,
int  thread,
int  stride 
)
inline

◆ worstDist()

template<typename DistanceType , bool useHeap>
__device__ DistanceType flann::cuda::KnnResultSet< DistanceType, useHeap >::worstDist ( )
inline

Member Data Documentation

◆ epsError

template<typename DistanceType , bool useHeap>
const DistanceType flann::cuda::KnnResultSet< DistanceType, useHeap >::epsError

Definition at line 129 of file result_set.h.

◆ foundNeighbors

template<typename DistanceType , bool useHeap>
int flann::cuda::KnnResultSet< DistanceType, useHeap >::foundNeighbors

◆ k

◆ largestHeapDist

template<typename DistanceType , bool useHeap>
DistanceType flann::cuda::KnnResultSet< DistanceType, useHeap >::largestHeapDist

◆ maxDistIndex

template<typename DistanceType , bool useHeap>
int flann::cuda::KnnResultSet< DistanceType, useHeap >::maxDistIndex

◆ resultDist

◆ resultIndex

◆ sorted

template<typename DistanceType , bool useHeap>
const bool flann::cuda::KnnResultSet< DistanceType, useHeap >::sorted

The documentation for this struct was generated from the following file: