5#include <rexlib/core/operation/operation_declaration_macros.hpp>
6#include <rexlib/ops/ops_component.hpp>
7#include <rexlib/ops/parameters/axis_selection.hpp>
8#include <rexlib/ops/rules/shape_rules.hpp>
9#include <rexlib/ops/rules/type_rules.hpp>
25REXLIB_DECLARE_PARAMETRIC_OPERATION(
28 REXLIB_OPERANDS(
"result"),
29 REXLIB_OPERANDS(
"left",
"right"),
32 binary_homogeneous_rule<arithmetic_type_domain>
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_shape_rule
Cross product of two stacks of three component vectors along the axis the operation names.
Definition shape_rules.hpp:167
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array cross(const_array_ref x, const_array_ref y, std::ptrdiff_t axis, const execution_context &context, array *out=nullptr)
Take the cross product of two arrays along one axis.