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 Types | Static Public Attributes | List of all members
rexlib::named_core< AxesAccessor, KeepAccessor > Struct Template Reference

Placement of the core axes where the operation instance names them. More...

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

Public Types

using axes_accessor_type = AxesAccessor
 
using keep_accessor_type = KeepAccessor
 

Static Public Attributes

static REXLIB_CONST_CONSTEXPR core_placement placement
 

Detailed Description

template<typename AxesAccessor, typename KeepAccessor = void>
struct rexlib::named_core< AxesAccessor, KeepAccessor >

Placement of the core axes where the operation instance names them.

The axes are named in the frame of the broadcast inputs carrying them, whose rank is the highest rank among those inputs. An input with no core axes is all batch: its axes broadcast against the axes of the frame that are not named, and it may not have more of them. An output with no core axes either drops the named axes or keeps them with an extent of one.

Template Parameters
AxesAccessorType reading the named axes from the parameters of the operation instance, through a static get(const Parameters&) template returning span<const std::size_t>.
KeepAccessorType reading whether an output keeps the named axes, likewise returning bool. void when no output keeps them.
See also
operand_shape_rule

Member Data Documentation

◆ placement

REXLIB_CONST_CONSTEXPR core_placement rexlib::named_core< AxesAccessor, KeepAccessor >::placement
static
Initial value:
=
@ named
The axes the operation instance names.

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