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

Type erased form of an operand_shape_rule. More...

#include <rexlib/core/operation/shape_rule/shape_rule_descriptor.hpp>

Public Member Functions

 shape_rule_descriptor (span< const extent_pivot_descriptor > pivots, span< const core_dimensions_descriptor > output_cores, span< const core_dimensions_descriptor > input_cores, core_placement placement, output_batch batch) noexcept
 Construct a shape rule descriptor.
 
span< const extent_pivot_descriptor > get_pivots () const noexcept
 Get the extent variables.
 
span< const core_dimensions_descriptor > get_output_cores () const noexcept
 Get the core axes of every output.
 
span< const core_dimensions_descriptor > get_input_cores () const noexcept
 Get the core axes of every input.
 
core_placement get_placement () const noexcept
 Get where the core axes lie.
 
output_batch get_output_batch () const noexcept
 Get which batch axes an output supplied in advance may have.
 

Detailed Description

Type erased form of an operand_shape_rule.

Interpreting a rule at runtime does not need any of its types, so a rule is lowered to tables of plain descriptors and a single interpreter serves every operation.

See also
operand_shape_rule

Constructor & Destructor Documentation

◆ shape_rule_descriptor()

rexlib::shape_rule_descriptor::shape_rule_descriptor ( span< const extent_pivot_descriptor >  pivots,
span< const core_dimensions_descriptor >  output_cores,
span< const core_dimensions_descriptor >  input_cores,
core_placement  placement,
output_batch  batch 
)
noexcept

Construct a shape rule descriptor.

Nothing is owned: every table must outlive the descriptor.

Parameters
pivotsThe extent variables.
output_coresThe core axes of every output, in signature order.
input_coresThe core axes of every input, in signature order.
placementWhere the core axes lie.
batchWhich batch axes an output supplied in advance may have.

Member Function Documentation

◆ get_input_cores()

span< const core_dimensions_descriptor > rexlib::shape_rule_descriptor::get_input_cores ( ) const
noexcept

Get the core axes of every input.

Returns
span<const core_dimensions_descriptor> One entry per input.

◆ get_output_batch()

output_batch rexlib::shape_rule_descriptor::get_output_batch ( ) const
noexcept

Get which batch axes an output supplied in advance may have.

Returns
output_batch The output batch.

◆ get_output_cores()

span< const core_dimensions_descriptor > rexlib::shape_rule_descriptor::get_output_cores ( ) const
noexcept

Get the core axes of every output.

Returns
span<const core_dimensions_descriptor> One entry per output.

◆ get_pivots()

span< const extent_pivot_descriptor > rexlib::shape_rule_descriptor::get_pivots ( ) const
noexcept

Get the extent variables.

Returns
span<const extent_pivot_descriptor> The extent variables.

◆ get_placement()

core_placement rexlib::shape_rule_descriptor::get_placement ( ) const
noexcept

Get where the core axes lie.

Returns
core_placement The placement.

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