rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
abs_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
21REXLIB_DECLARE_OPERATION(
22 abs,
24 REXLIB_OPERANDS("result"),
25 REXLIB_OPERANDS("value"),
28);
29
30} // namespace ops
31} // namespace rexlib
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
array abs(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise absolute value of an array.
Component tag for the generic operation catalog.
Definition ops_component.hpp:20