5#include <rexlib/core/operation/shape_rule/extent_pivot_source.hpp>
6#include <rexlib/core/operation/shape_rule/named_core.hpp>
7#include <rexlib/core/operation/shape_rule/trailing_core.hpp>
9#include <rexlib/core/meta/type_list.hpp>
10#include <rexlib/core/platform/constexpr.hpp>
11#include <rexlib/core/span.hpp>
23template <
typename Extents>
32template <
typename Head,
typename...
Tail>
36 using type =
typename std::conditional<
54template <
typename Rule>
58 typename Rule::pivot_list_type
61 static REXLIB_CONST_CONSTEXPR std::size_t operation_extent_count =
64 using operation_extent_array_type =
65 std::array<std::size_t, operation_extent_count>;
75 template <
typename Parameters>
88 template <
typename Parameters>
100 template <
typename Parameters>
108#include "shape_rule_accessors.inl"
Container for multidimensional numeric data.
Definition array.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
@ inputs
Bound by the input axes that name the variable.
Definition shape_rule_accessors.hpp:24
Read the values a shape rule depends on from the parameters of an operation instance.
Definition shape_rule_accessors.hpp:56
static operation_extent_array_type get_operation_extents(const Parameters ¶meters) noexcept
Read every extent the operation supplies, whether its instance supplies it or its declaration fixes i...
static span< const std::size_t > get_named_axes(const Parameters ¶meters) noexcept
Read the axes the core axes lie along.
static bool get_keep_dimensions(const Parameters ¶meters) noexcept
Read whether an output without core axes keeps the named ones.
Utility class to prepend a type to the front of a type_list.
Definition type_list.hpp:63
Utility class to obtain the size of a type_list.
Definition type_list.hpp:28
Helper class to pass a heterogeneous sequence of types to a function.
Definition type_list.hpp:20