| 330 | |
| 331 | template <typename T> |
| 332 | SimpleTensor<T> dft_1d(const SimpleTensor<T> &src, FFTDirection direction) |
| 333 | { |
| 334 | auto dst = dft_1d_core(src, direction); |
| 335 | if (direction == FFTDirection::Inverse) |
| 336 | { |
| 337 | const T scaling_factor = T(dst.shape()[0]); |
| 338 | scale(dst, scaling_factor); |
| 339 | } |
| 340 | return dst; |
| 341 | } |
| 342 | |
| 343 | template <typename T> |
| 344 | SimpleTensor<T> rdft_2d(const SimpleTensor<T> &src) |
no test coverage detected