|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Declarative shape rule for the operands of an operation. More...
#include <rexlib/core/operation/shape_rule/operand_shape_rule.hpp>
Public Types | |
| using | pivot_list_type = Pivots |
| using | output_core_list_type = Outputs |
| using | input_core_list_type = Inputs |
| using | placement_type = Placement |
Static Public Attributes | |
| static REXLIB_CONST_CONSTEXPR output_batch | batch = Batch |
| static REXLIB_CONST_CONSTEXPR std::size_t | pivot_count |
| static REXLIB_CONST_CONSTEXPR std::size_t | output_count |
| static REXLIB_CONST_CONSTEXPR std::size_t | input_count |
| static REXLIB_CONST_CONSTEXPR bool | requires_parameters |
| Whether the rule reads values of the operation instance. | |
Declarative shape rule for the operands of an operation.
Every axis of an operand is either a batch axis or a core axis. The batch axes of all operands broadcast together, while the core axes are declared per operand by a core_dimensions, whose slots relate them through a small set of extent variables. Core axes never broadcast: every axis naming an extent variable must agree with it.
The rule is lowered to tables, so a single interpreter serves every operation. Values that depend on the operation instance, such as the axes it names, are read through the accessors the rule declares.
| Pivots | type_list of extent_pivot declarations. |
| Outputs | type_list of core_dimensions, one per output operand, in signature order. |
| Inputs | type_list of core_dimensions, one per input operand, in signature order. |
| Placement | Where the core axes lie: trailing_core or named_core. |
| Batch | Which batch axes an output supplied in advance may have. |
|
static |
|
static |
|
static |
|
static |
Whether the rule reads values of the operation instance.