rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
List of all members
rexlib::ops::fold_in_key_operation Class Reference

Derive keys from keys and values. More...

#include <rexlib/ops/random/fold_in_key_operation.hpp>

Inheritance diagram for rexlib::ops::fold_in_key_operation:
rexlib::trivial_operation< fold_in_key_operation, fold_in_key_operation_traits > rexlib::basic_operation< Derived, Traits > rexlib::operation

Additional Inherited Members

- Public Types inherited from rexlib::basic_operation< Derived, Traits >
using traits_type = Traits
 
using shape_rule_type = typename Traits::shape_rule_type
 
using type_rule_type = typename Traits::type_rule_type
 
- Public Member Functions inherited from rexlib::trivial_operation< fold_in_key_operation, fold_in_key_operation_traits >
const operation_signature & get_signature () const noexcept override
 Get the signature deciding the shape and data type of the operands of this operation.
 
- Public Member Functions inherited from rexlib::basic_operation< Derived, Traits >
const operation_descriptor & get_descriptor () const noexcept override
 Get the description of this operation.
 
operation_id get_id () const noexcept override
 Get the identifier of Derived.
 
- Public Member Functions inherited from rexlib::operation
 operation (const operation &other)=delete
 
 operation (operation &&other)=delete
 
operation & operator= (const operation &other)=delete
 
operation & operator= (operation &&other)=delete
 
- Static Public Member Functions inherited from rexlib::basic_operation< Derived, Traits >
static const operation_descriptor & get_static_descriptor () noexcept
 Get the description shared by every instance.
 
- Static Public Attributes inherited from rexlib::basic_operation< Derived, Traits >
static REXLIB_CONST_CONSTEXPR std::size_t output_operand_count
 
static REXLIB_CONST_CONSTEXPR std::size_t input_operand_count
 

Detailed Description

Derive keys from keys and values.

The key and the data are uint64 arrays that broadcast against each other. Each element of the result is the key derived from an element of the key and the matching element of the data.

The derived key is the first half of the Philox4x32-10 block keyed by the key. Words 0 and 1 of the counter are the low and the high half of the data, word 2 is 0 and word 3 is 1. The first half of the block joins its words 0 and 1, with word 0 as the low half. Distinct values give independent keys, and a derived key never shares a block with a draw of its parent key.


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