rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
ifft_operation.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include "fourier_normalization.hpp"
6
7#include <rexlib/core/operation/operation_declaration_macros.hpp>
8#include <rexlib/core/platform/dynamic_shared_object.h>
9#include <rexlib/ops/ops_component.hpp>
10#include <rexlib/ops/parameters/axis_list.hpp>
11#include <rexlib/ops/parameters/axis_selection.hpp>
12#include <rexlib/ops/rules/shape_rules.hpp>
13#include <rexlib/ops/rules/type_rules.hpp>
14
15namespace rexlib
16{
17namespace ops
18{
19
20REXLIB_DECLARE_PARAMETRIC_OPERATION_TRAITS(
21 ifft,
22 ops_component,
23 REXLIB_OPERANDS("signal"),
24 REXLIB_OPERANDS("spectrum"),
26 axis_selection,
27 unary_homogeneous_rule<complex_type_domain>
28);
29
37REXLIB_BEGIN_TEMPLATE_BASE
39 : public parametric_operation<ifft_operation, ifft_operation_traits>
40{
41public:
55 fourier_normalization normalization = fourier_normalization::backward
56 );
57
64
66 fourier_normalization m_normalization;
67};
69
70} // namespace ops
71} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Transform an array back from the frequency domain.
Definition ifft_operation.hpp:40
fourier_normalization get_normalization() const noexcept
Get the scaling convention.
ifft_operation(axis_list axes, fourier_normalization normalization=fourier_normalization::backward)
Construct an inverse transform.
CRTP base for operations whose signature depends on parameters.
Definition parametric_operation.hpp:43
operand_shape_rule< type_list<>, type_list< core_dimensions< axis_run<> > >, type_list< core_dimensions< axis_run< positive_extent_domain > > >, named_core< axes_of > > fourier_transform_shape_rule
Transform along the axes the operation names, each of which must hold a sample.
Definition shape_rules.hpp:178
std::vector< std::size_t > axis_list
The axes an operation acts along.
Definition axis_list.hpp:19
fourier_normalization
Which of a transform pair carries the scaling.
Definition fourier_normalization.hpp:34
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array ifft(const_array_ref x, span< const std::ptrdiff_t > axes, ops::fourier_normalization normalization, const execution_context &context, array *out=nullptr)
Transform an array back from the frequency domain.