rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
trigonometric.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/ndarray/array.hpp>
6#include <rexlib/core/ndarray/const_array_ref.hpp>
7
8#include <utility>
9
10namespace rexlib
11{
12
13class execution_context;
14
23REXLIB_API
27 array *out = nullptr
28);
29
42 array *out = nullptr
43);
44
57 array *out = nullptr
58);
59
72 array *out = nullptr
73);
74
87 array *out = nullptr
88);
89
102 array *out = nullptr
103);
104
117 array *out = nullptr
118);
119
132 array *out = nullptr
133);
134
147 array *out = nullptr
148);
149
162 array *out = nullptr
163);
164
177 array *out = nullptr
178);
179
192 array *out = nullptr
193);
194
212 array *out = nullptr
213);
214
232 array *out = nullptr
233);
234
247 array *out = nullptr
248);
249
262 array *out = nullptr
263);
264
282std::pair<array, array> sincos(
285 array *sine = nullptr,
286 array *cosine = nullptr
287);
288
289} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Non-owning read-only reference to an array.
Definition const_array_ref.hpp:36
Pairs the hardware resources and the dispatch strategy used to run operations.
Definition execution_context.hpp:43
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array tan(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise tangent of an array.
array hypot(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Compute the element-wise hypotenuse of two arrays.
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.
array cosh(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise hyperbolic cosine of an array.
array atan2(const_array_ref y, const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise arc tangent of two arrays, by quadrant.
array acosh(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise inverse hyperbolic cosine of an array.
array tanh(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise hyperbolic tangent of an array.
array atanh(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise inverse hyperbolic tangent of an array.
array cos(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise cosine of an array.
array asin(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise arc sine of an array.
array sinh(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise hyperbolic sine of an array.
array degrees(const_array_ref x, const execution_context &context, array *out=nullptr)
Convert an array from radians to degrees.
array asinh(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise inverse hyperbolic sine of an array.
array sin(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise sine of an array.
array atan(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise arc tangent of an array.
array radians(const_array_ref x, const execution_context &context, array *out=nullptr)
Convert an array from degrees to radians.
array acos(const_array_ref x, const execution_context &context, array *out=nullptr)
Compute the element-wise arc cosine of an array.