NOLINTNEXTLINE(performance-unnecessary-value-param)
| 51 | |
| 52 | // NOLINTNEXTLINE(performance-unnecessary-value-param) |
| 53 | array dft(const array& in, const double norm_factor, const dim4 outDims) { |
| 54 | array temp; |
| 55 | switch (in.dims().ndims()) { |
| 56 | case 1: temp = fftNorm(in, norm_factor, outDims[0]); break; |
| 57 | case 2: temp = fft2Norm(in, norm_factor, outDims[0], outDims[1]); break; |
| 58 | case 3: |
| 59 | temp = |
| 60 | fft3Norm(in, norm_factor, outDims[0], outDims[1], outDims[2]); |
| 61 | break; |
| 62 | default: AF_THROW(AF_ERR_NOT_SUPPORTED); |
| 63 | } |
| 64 | return temp; |
| 65 | } |
| 66 | |
| 67 | // NOLINTNEXTLINE(performance-unnecessary-value-param) |
| 68 | array dft(const array& in, const dim4 outDims) { return dft(in, 1.0, outDims); } |