5#include "fourier_normalization.hpp"
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>
20REXLIB_DECLARE_PARAMETRIC_OPERATION_TRAITS(
23 REXLIB_OPERANDS(
"spectrum"),
24 REXLIB_OPERANDS(
"signal"),
27 unary_complex_of_rule<floating_point_type_domain>
40REXLIB_BEGIN_TEMPLATE_BASE
Container for multidimensional numeric data.
Definition array.hpp:31
Transform a real array to the frequency domain.
Definition rfft_operation.hpp:43
fourier_normalization get_normalization() const noexcept
Get the scaling convention.
rfft_operation(axis_list axes, fourier_normalization normalization=fourier_normalization::backward)
Construct a forward transform of a real signal.
CRTP base for operations whose signature depends on parameters.
Definition parametric_operation.hpp:43
operand_shape_rule< type_list< extent_from_inputs< positive_extent_domain > >, type_list< core_dimensions< axis_run<>, axis_half_spectrum_of< 0 > > >, type_list< core_dimensions< axis_run< positive_extent_domain >, axis_same_as< 0 > > >, named_core< axes_of > > real_fourier_transform_shape_rule
Transform of a real signal along the axes the operation names.
Definition shape_rules.hpp:219
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 rfft(const_array_ref x, span< const std::ptrdiff_t > axes, ops::fourier_normalization normalization, const execution_context &context, array *out=nullptr)
Transform a real array to the frequency domain.