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

Method forward

src/framework/audio/fft.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void RealFFTPlan::forward(
44 const TensorShape & input_shape,
45 const TensorStrideBytes & input_strides,
46 const TensorStrideBytes & output_strides,
47 size_t axis,
48 const float * data_in,
49 std::complex<float> * data_out,
50 float scale,
51 size_t threads) const {
52 if (axis >= input_shape.size()) {
53 throw std::runtime_error("RealFFTPlan forward axis out of range");
54 }
55 if (input_shape[axis] != impl_->fft_size) {
56 throw std::runtime_error("RealFFTPlan forward shape mismatch");
57 }
58 real_fft_forward(input_shape, input_strides, output_strides, axis, data_in, data_out, scale, threads);
59}
60
61void RealFFTPlan::inverse(
62 const TensorShape & output_shape,

Callers 1

Calls 2

real_fft_forwardFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected