5#include <rexlib/core/operation/operation_declaration_macros.hpp>
6#include <rexlib/ops/ops_component.hpp>
7#include <rexlib/ops/rules/shape_rules.hpp>
8#include <rexlib/ops/rules/type_rules.hpp>
24REXLIB_DECLARE_OPERATION(
27 REXLIB_OPERANDS(
"quotient",
"remainder"),
28 REXLIB_OPERANDS(
"dividend",
"divisor"),
31 domain_union<real_arithmetic_type_domain, character_type_domain>
operand_shape_rule< type_list<>, type_list< core_dimensions<>, core_dimensions<> >, type_list< core_dimensions<>, core_dimensions<> >, trailing_core, output_batch::broadcast_target > binary_pair_elementwise_shape_rule
Operation of two operands applied to every pair of elements, producing two results of each.
Definition shape_rules.hpp:110
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_homogeneous_pair_rule
Binary operation producing two outputs of the operand type.
Definition type_rules.hpp:176
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
std::pair< array, array > divmod(const_array_ref x, const_array_ref y, const execution_context &context, array *quotient=nullptr, array *remainder=nullptr)
Compute the element-wise quotient and remainder of two arrays.