rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
selection.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
8namespace rexlib
9{
10
11class execution_context;
12
26REXLIB_API
32 array *out = nullptr
33);
34
52 const_array_ref lower,
55 array *out = nullptr
56);
57
78 array *out = nullptr
79);
80
101 array *out = nullptr
102);
103
104} // 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 where(const_array_ref condition, const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Select element-wise between two arrays according to a condition.
array clip(const_array_ref x, const_array_ref lower, const_array_ref upper, const execution_context &context, array *out=nullptr)
Confine the elements of an array to an interval.
array maximum(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Take the element-wise maximum of two arrays.
array minimum(const_array_ref x, const_array_ref y, const execution_context &context, array *out=nullptr)
Take the element-wise minimum of two arrays.