rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
fold_in_key_operation.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/numerical/numerical_type.hpp>
6#include <rexlib/core/numerical/numerical_type_domain_tags.hpp>
7#include <rexlib/core/operation/operation_declaration_macros.hpp>
8#include <rexlib/ops/ops_component.hpp>
9#include <rexlib/ops/rules/shape_rules.hpp>
10#include <rexlib/ops/rules/type_rules.hpp>
11
12namespace rexlib
13{
14namespace ops
15{
16
31REXLIB_DECLARE_OPERATION(
33 ops_component,
34 REXLIB_OPERANDS("result"),
35 REXLIB_OPERANDS("key", "data"),
37 binary_homogeneous_rule<single_type_domain<numerical_type::uint64>>
38);
39
40} // namespace ops
41} // namespace rexlib
operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions<>, core_dimensions<> >, trailing_core, output_batch::broadcast_target > binary_elementwise_shape_rule
Operation of two operands applied to every pair of elements their shapes broadcast to.
Definition shape_rules.hpp:74
operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_same_as< 0 > >, type_list< slot_same_as< 0 >, slot_same_as< 0 > > > binary_homogeneous_rule
Binary operation whose operands share one element type.
Definition type_rules.hpp:52
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array fold_in_key(const_array_ref key, const_array_ref data, const execution_context &context, array *out=nullptr)
Derive keys from keys and values.