MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / inverse

Method inverse

src/framework/audio/fft.cpp:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void RealFFTPlan::inverse(
62 const TensorShape & output_shape,
63 const TensorStrideBytes & input_strides,
64 const TensorStrideBytes & output_strides,
65 size_t axis,
66 const std::complex<float> * data_in,
67 float * data_out,
68 float scale,
69 size_t threads) const {
70 if (axis >= output_shape.size()) {
71 throw std::runtime_error("RealFFTPlan inverse axis out of range");
72 }
73 if (output_shape[axis] != impl_->fft_size) {
74 throw std::runtime_error("RealFFTPlan inverse shape mismatch");
75 }
76 real_fft_inverse(output_shape, input_strides, output_strides, axis, data_in, data_out, scale, threads);
77}
78
79std::shared_ptr<RealFFTPlan> get_real_fft_plan(size_t fft_size) {
80 return std::make_shared<RealFFTPlan>(fft_size);

Callers 2

combine_chunk_intoMethod · 0.80

Calls 2

real_fft_inverseFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected