5#include <rexlib/core/operation/operation_declaration_macros.hpp>
6#include <rexlib/ops/ops_component.hpp>
7#include <rexlib/ops/parameters/reduction_axes.hpp>
8#include <rexlib/ops/rules/shape_rules.hpp>
9#include <rexlib/ops/rules/type_rules.hpp>
19REXLIB_DECLARE_PARAMETRIC_OPERATION(
22 REXLIB_OPERANDS(
"index"),
23 REXLIB_OPERANDS(
"value"),
27 numerical_type::int64,
28 domain_difference<any_type_domain, complex_type_domain>
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 > > extremum_reduction_shape_rule
Reduction selecting one element along the axes the operation names.
Definition shape_rules.hpp:137
operand_type_rule< type_list< pivot_from_input< 0, Domain > >, type_list< slot_fixed< Type > >, type_list< slot_same_as< 0 > > > unary_fixed_output_rule
Unary operation whose output has a fixed element type.
Definition type_rules.hpp:123
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array argmax(const_array_ref x, span< const std::ptrdiff_t > axes, bool keep_dimensions, const execution_context &context, array *out=nullptr)
Locate the largest elements of an array along the given axes.