NOLINTNEXTLINE(performance-unnecessary-value-param)
| 116 | |
| 117 | // NOLINTNEXTLINE(performance-unnecessary-value-param) |
| 118 | array idft(const array& in, const double norm_factor, const dim4 outDims) { |
| 119 | array temp; |
| 120 | switch (in.dims().ndims()) { |
| 121 | case 1: temp = ifftNorm(in, norm_factor, outDims[0]); break; |
| 122 | case 2: |
| 123 | temp = ifft2Norm(in, norm_factor, outDims[0], outDims[1]); |
| 124 | break; |
| 125 | case 3: |
| 126 | temp = |
| 127 | ifft3Norm(in, norm_factor, outDims[0], outDims[1], outDims[2]); |
| 128 | break; |
| 129 | default: AF_THROW(AF_ERR_NOT_SUPPORTED); |
| 130 | } |
| 131 | return temp; |
| 132 | } |
| 133 | |
| 134 | // NOLINTNEXTLINE(performance-unnecessary-value-param) |
| 135 | array idft(const array& in, const dim4 outDims) { |