CUDPP 2.0
CUDA Data-Parallel Primitives Library
Public Member Functions | Public Attributes
CudaHT::CuckooHashing::Functions< N > Struct Template Reference

Container for all of the hash functions. More...

#include <hash_functions.h>

List of all members.

Public Member Functions

void Generate (const unsigned num_keys, const unsigned *d_keys, const unsigned table_size)
 Generate new hash function constants.

Public Attributes

uint2 constants [N]
 The constants required for all of the hash functions, including the stash. Each function requires 2.

Detailed Description

template<unsigned N>
struct CudaHT::CuckooHashing::Functions< N >

Container for all of the hash functions.


Member Function Documentation

template<unsigned N>
void CudaHT::CuckooHashing::Functions< N >::Generate ( const unsigned  num_keys,
const unsigned *  d_keys,
const unsigned  table_size 
) [inline]

Generate new hash function constants.

The parameters are only used for debugging and examining the key distribution.

Parameters:
[in]num_keysDebug: Number of keys in the input.
[in]d_keysDebug: Device array of the input keys.
[in]table_sizeDebug: Size of the hash table.

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines