cuDDL
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cuddl::detail::sparse_index_key Struct Reference

Public Member Functions

template<typename Row >
__host__ __device__ uint16_t operator() (Row row) const noexcept
 

Public Attributes

uint16_t mask
 

Detailed Description

Definition at line 846 of file reference_database.cuh.

Member Function Documentation

◆ operator()()

template<typename Row >
__host__ __device__ uint16_t cuddl::detail::sparse_index_key::operator() ( Row  row) const
inlinenoexcept

Definition at line 849 of file reference_database.cuh.

849 {
850 auto const score = static_cast<uint16_t>(row);
851 return score == 0U || mask == 0xffffU ? score : static_cast<uint16_t>((score & mask) + 1U);
852 }
__host__ __device__ uint16_t score(uint64_t hash) noexcept
Computes the 16-bit DDL rarity score for hash.
Definition register.cuh:43
auto const row
Definition top_k.cuh:202
Here is the call graph for this function:

Member Data Documentation

◆ mask

uint16_t cuddl::detail::sparse_index_key::mask

Definition at line 847 of file reference_database.cuh.


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