|
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::unary_homogeneous_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_same_as< 0 > >, type_list< slot_same_as< 0 > > > |
| | Unary operation whose operands share one element type.
|
| |
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::binary_homogeneous_rule = 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 operation whose operands share one element type.
|
| |
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::ternary_homogeneous_rule = 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 >, slot_same_as< 0 > > > |
| | Ternary operation whose operands share one element type.
|
| |
| template<typename Domain = arithmetic_type_domain> |
| using | rexlib::ops::unary_real_of_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_real_of< 0 > >, type_list< slot_same_as< 0 > > > |
| | Unary operation producing the real counterpart of its input.
|
| |
| template<typename Domain = inexact_type_domain> |
| using | rexlib::ops::unary_complex_of_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_complex_of< 0 > >, type_list< slot_same_as< 0 > > > |
| | Unary operation producing the complex counterpart of its input.
|
| |
| template<typename Domain = arithmetic_type_domain> |
| using | rexlib::ops::unary_inexact_of_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_inexact_of< 0 > >, type_list< slot_same_as< 0 > > > |
| | Unary operation producing the inexact counterpart of its input.
|
| |
| template<numerical_type Type, typename Domain = any_type_domain> |
| using | rexlib::ops::unary_fixed_output_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_fixed< Type > >, type_list< slot_same_as< 0 > > > |
| | Unary operation whose output has a fixed element type.
|
| |
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::unary_predicate_rule = unary_fixed_output_rule< numerical_type::boolean, Domain > |
| | Unary operation producing a boolean output.
|
| |
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::binary_predicate_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_fixed< numerical_type::boolean > >, type_list< slot_same_as< 0 >, slot_same_as< 0 > > > |
| | Binary comparison producing a boolean output.
|
| |
| template<typename Domain = inexact_type_domain> |
| using | rexlib::ops::unary_homogeneous_pair_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_same_as< 0 >, slot_same_as< 0 > >, type_list< slot_same_as< 0 > > > |
| | Unary operation producing two outputs of the operand type.
|
| |
| template<typename Domain = real_arithmetic_type_domain> |
| using | rexlib::ops::binary_homogeneous_pair_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_same_as< 0 >, slot_same_as< 0 > >, type_list< slot_same_as< 0 >, slot_same_as< 0 > > > |
| | Binary operation producing two outputs of the operand type.
|
| |
| template<typename Domain = arithmetic_type_domain> |
| using | rexlib::ops::masked_unary_homogeneous_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_same_as< 0 > >, type_list< slot_same_as< 0 >, slot_fixed< numerical_type::boolean > > > |
| | Unary operation taking a boolean mask alongside its operand.
|
| |
| template<typename Domain = arithmetic_type_domain> |
| using | rexlib::ops::masked_binary_homogeneous_rule = 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 >, slot_fixed< numerical_type::boolean > > > |
| | Binary operation taking a boolean mask alongside its operands.
|
| |
| template<typename Domain = floating_point_type_domain, numerical_type Key = numerical_type::uint64> |
| using | rexlib::ops::keyed_unary_homogeneous_rule = operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_same_as< 0 > >, type_list< slot_same_as< 0 >, slot_fixed< Key > > > |
| | Unary operation taking a key of a fixed element type alongside its operand.
|
| |
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::selection_rule = operand_type_rule< type_list< pivot_from_input< 1, Domain > >, type_list< slot_same_as< 0 > >, type_list< slot_fixed< numerical_type::boolean >, slot_same_as< 0 >, slot_same_as< 0 > > > |
| | Selection between two operands driven by a boolean condition.
|
| |
| template<typename FirstDomain = floating_point_type_domain, typename SecondDomain = signed_integer_type_domain> |
| using | rexlib::ops::binary_heterogeneous_rule = operand_type_rule< type_list< pivot_from_input< 0, FirstDomain >, pivot_from_input< 1, SecondDomain > >, type_list< slot_same_as< 0 > >, type_list< slot_same_as< 0 >, slot_same_as< 1 > > > |
| | Binary operation whose operands have unrelated element types.
|
| |
| template<typename Domain = any_type_domain> |
| using | rexlib::ops::nullary_free_rule = operand_type_rule< type_list< pivot_from_output< 0, Domain > >, type_list< slot_same_as< 0 > >, type_list<> > |
| | Nullary operation whose output element type is free.
|
| |
| template<typename OutputDomain = any_type_domain, typename InputDomain = any_type_domain> |
| using | rexlib::ops::converting_rule = operand_type_rule< type_list< pivot_from_output< 0, OutputDomain, 1 >, pivot_from_input< 0, InputDomain > >, type_list< slot_same_as< 0 > >, type_list< slot_same_as< 1 > > > |
| | Unary operation whose output element type is independent.
|
| |
The typing rules the operation catalog is built from. An operation names one of these in its declaration and that is the whole of its typing: the type rule interpreter and every backend type dispatcher read the same rule.
Every rule is parameterised by the domain of its element type, which is how an operation states what it accepts. A rule says nothing about shapes, so the same rule serves an elementwise operation and a reduction.