rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
less_operation.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
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>
9
10namespace rexlib
11{
12namespace ops
13{
14
23REXLIB_DECLARE_OPERATION(
24 less,
25 ops_component,
26 REXLIB_OPERANDS("result"),
27 REXLIB_OPERANDS("left", "right"),
30 domain_difference<any_type_domain, complex_type_domain>
31 >
32);
33
34} // namespace ops
35} // namespace rexlib
operand_shape_rule< type_list<>, type_list< core_dimensions<> >, type_list< core_dimensions<>, core_dimensions<> >, trailing_core, output_batch::broadcast_target > binary_elementwise_shape_rule
Operation of two operands applied to every pair of elements their shapes broadcast to.
Definition shape_rules.hpp:74
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_predicate_rule
Binary comparison producing a boolean output.
Definition type_rules.hpp:146
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array less(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Test element-wise whether one array is less than another.