| 41 | } |
| 42 | |
| 43 | void 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 | |
| 61 | void RealFFTPlan::inverse( |
| 62 | const TensorShape & output_shape, |
no test coverage detected