MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ transform_complex()

std::vector< double > MayaFlux::Yantra::FftContext::transform_complex ( std::span< const double > interleaved,
const SegmentGeometry & geometry,
std::span< const double > window = {} )
inlinenodiscard

Transform windows of a complex signal.

Parameters
interleavedRe, im pairs the windows index into.
geometryWindow length, stride, first offset and count, in complex elements.
windowCoefficients applied to each window, points of them. Empty is rectangular.

Definition at line 109 of file FftContext.hpp.

110 {})
111 {
112 if (geometry.count == 0) {
113 return {};
114 }
115 stage(interleaved, geometry, window);
116 execute(Datum<std::vector<Kakshya::DataVariant>> {}, ExecutionContext {});
117
118 const auto result = primary_values();
119 return { result.begin(), result.end() };
120 }
void stage(std::span< const double > interleaved, const SegmentGeometry &geometry, std::span< const double > window={})
Stage input, window and geometry for the next dispatch without running it.
output_type execute(const input_type &input, const ExecutionContext &ctx) override
Injects multipass configuration into the context before dispatch when set_multipass() has been called...
std::span< const double > primary_values() const noexcept
The primary output of the last dispatch decoded to doubles.