rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Typedefs
Common operand shape rules

Typedefs

using rexlib::ops::nullary_elementwise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list<>, trailing_core, output_batch::broadcast_target >
 Operation without operands to read that writes into the outputs it is handed, whatever their shape.
 
using rexlib::ops::unary_elementwise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions<> >, trailing_core, output_batch::broadcast_target >
 Operation of one operand applied to every element.
 
using rexlib::ops::binary_elementwise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions<>, core_dimensions<> >, trailing_core, output_batch::broadcast_target >
 Operation of two operands applied to every pair of elements their shapes broadcast to.
 
using rexlib::ops::ternary_elementwise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions<>, core_dimensions<>, core_dimensions<> >, trailing_core, output_batch::broadcast_target >
 Operation of three operands applied to every triple of elements their shapes broadcast to.
 
using rexlib::ops::unary_pair_elementwise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<>, core_dimensions<> >, type_list< core_dimensions<> >, trailing_core, output_batch::broadcast_target >
 Operation of one operand applied to every element, producing two results of each.
 
using rexlib::ops::binary_pair_elementwise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<>, core_dimensions<> >, type_list< core_dimensions<>, core_dimensions<> >, trailing_core, output_batch::broadcast_target >
 Operation of two operands applied to every pair of elements, producing two results of each.
 
using rexlib::ops::reduction_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions< axis_run<> > >, named_core< axes_of, keep_dimensions_of > >
 Reduction along the axes the operation names.
 
using rexlib::ops::extremum_reduction_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions< axis_run< positive_extent_domain > > >, named_core< axes_of, keep_dimensions_of > >
 Reduction selecting one element along the axes the operation names.
 
using rexlib::ops::vector_dot_shape_rule = operand_shape_rule< type_list< extent_from_inputs<> >, type_list< core_dimensions<> >, type_list< core_dimensions< axis_same_as< 0 > >, core_dimensions< axis_same_as< 0 > > >, named_core< axes_of, keep_dimensions_of > >
 Dot product of two stacks of vectors along the axis the operation names.
 
using rexlib::ops::cross_product_shape_rule = operand_shape_rule< type_list< extent_fixed< 3 > >, type_list< core_dimensions< axis_same_as< 0 > > >, type_list< core_dimensions< axis_same_as< 0 > >, core_dimensions< axis_same_as< 0 > > >, named_core< axes_of > >
 Cross product of two stacks of three component vectors along the axis the operation names.
 
using rexlib::ops::fourier_transform_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions< axis_run<> > >, type_list< core_dimensions< axis_run< positive_extent_domain > > >, named_core< axes_of > >
 Transform along the axes the operation names, each of which must hold a sample.
 
using rexlib::ops::axiswise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions< axis_run<> > >, type_list< core_dimensions< axis_run<> > >, named_core< axes_of > >
 Operation along the axes the operation names that keeps their extents.
 
using rexlib::ops::keyed_axiswise_shape_rule = operand_shape_rule< type_list<>, type_list< core_dimensions< axis_run<> > >, type_list< core_dimensions< axis_run<> >, core_dimensions<> >, named_core< axes_of > >
 Operation along the axes the operation names that keeps their extents, reading a second input without core axes.
 
using rexlib::ops::real_fourier_transform_shape_rule = operand_shape_rule< type_list< extent_from_inputs< positive_extent_domain > >, type_list< core_dimensions< axis_run<>, axis_half_spectrum_of< 0 > > >, type_list< core_dimensions< axis_run< positive_extent_domain >, axis_same_as< 0 > > >, named_core< axes_of > >
 Transform of a real signal along the axes the operation names.
 
using rexlib::ops::inverse_real_fourier_transform_shape_rule = operand_shape_rule< type_list< extent_from_operation< extent_of, positive_extent_domain > >, type_list< core_dimensions< axis_run<>, axis_same_as< 0 > > >, type_list< core_dimensions< axis_run< positive_extent_domain >, axis_half_spectrum_of< 0 > > >, named_core< axes_of > >
 Inverse of real_fourier_transform_shape_rule.
 
using rexlib::ops::matrix_multiply_shape_rule = operand_shape_rule< type_list< extent_from_inputs<>, extent_from_inputs<>, extent_from_inputs<> >, type_list< core_dimensions< axis_same_as< 0 >, axis_same_as< 2 > > >, type_list< core_dimensions< axis_same_as< 0 >, axis_same_as< 1 > >, core_dimensions< axis_same_as< 1 >, axis_same_as< 2 > > > >
 Product of two stacks of matrices.
 
using rexlib::ops::matrix_vector_shape_rule = operand_shape_rule< type_list< extent_from_inputs<>, extent_from_inputs<> >, type_list< core_dimensions< axis_same_as< 0 > > >, type_list< core_dimensions< axis_same_as< 0 >, axis_same_as< 1 > >, core_dimensions< axis_same_as< 1 > > > >
 Product of a stack of matrices and a stack of vectors.
 
using rexlib::ops::vector_matrix_shape_rule = operand_shape_rule< type_list< extent_from_inputs<>, extent_from_inputs<> >, type_list< core_dimensions< axis_same_as< 1 > > >, type_list< core_dimensions< axis_same_as< 0 > >, core_dimensions< axis_same_as< 0 >, axis_same_as< 1 > > > >
 Product of a stack of vectors and a stack of matrices.
 
using rexlib::ops::sequence_shape_rule = operand_shape_rule< type_list< extent_from_operation< count_of > >, type_list< core_dimensions< axis_same_as< 0 > > >, type_list<> >
 Sequence of as many values as the operation names.
 
using rexlib::ops::elementwise_sequence_shape_rule = operand_shape_rule< type_list< extent_from_operation< count_of > >, type_list< core_dimensions< axis_same_as< 0 > > >, type_list< core_dimensions<> > >
 Sequence of as many values as the operation names for every element of the input.
 

Detailed Description

The shape rules the operation catalog is built from. An operation names one of these in its declaration, and that rule is the shape half of its signature. A rule says nothing about data types, so the same rule serves operations typed in different ways.

The rules are written without template arguments, so that a declaration macro can take one as a single argument.

Typedef Documentation

◆ elementwise_sequence_shape_rule

Sequence of as many values as the operation names for every element of the input.

The input has no core axes. The output holds its shape followed by one axis of the length the operation names.

◆ extremum_reduction_shape_rule

Reduction selecting one element along the axes the operation names.

As reduction_shape_rule, except that every reduced axis must hold an element to select.

◆ inverse_real_fourier_transform_shape_rule

Inverse of real_fourier_transform_shape_rule.

The last axis named is restored to the extent the operation fixes, and must hold the n / 2 + 1 coefficients of it.

◆ keyed_axiswise_shape_rule

Operation along the axes the operation names that keeps their extents, reading a second input without core axes.

The second input has no core axes, so it broadcasts against the axes of the first that are not named: one value for every batch element, or a single value for all of them.

◆ real_fourier_transform_shape_rule

Transform of a real signal along the axes the operation names.

The last axis named holds the n / 2 + 1 coefficients that are not redundant, and every other keeps its extent.

◆ reduction_shape_rule

Reduction along the axes the operation names.

The result drops the reduced axes, or keeps them with an extent of one. Reducing an empty axis is admitted.

◆ vector_dot_shape_rule

Dot product of two stacks of vectors along the axis the operation names.

The vectors must have the same length, which does not broadcast.