rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
sincos_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
22REXLIB_DECLARE_OPERATION(
23 sincos,
24 ops_component,
25 REXLIB_OPERANDS("sine", "cosine"),
26 REXLIB_OPERANDS("angle"),
28 unary_homogeneous_pair_rule<>
29);
30
31} // namespace ops
32} // namespace rexlib
operand_shape_rule< type_list<>, type_list< core_dimensions<>, core_dimensions<> >, type_list< core_dimensions<> >, trailing_core, output_batch::broadcast_target > unary_pair_elementwise_shape_rule
Operation of one operand applied to every element, producing two results of each.
Definition shape_rules.hpp:98
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
std::pair< array, array > sincos(const_array_ref x, const execution_context &context, array *sine=nullptr, array *cosine=nullptr)
Compute the element-wise sine and cosine of an array at once.