| 202 | |
| 203 | template<> |
| 204 | AFAPI array fftC2R<1>(const array& in, const bool is_odd, |
| 205 | const double norm_factor) { |
| 206 | double norm = norm_factor; |
| 207 | |
| 208 | if (norm == 0) { |
| 209 | dim4 idims = in.dims(); |
| 210 | dim_t dim0 = getOrigDim(idims[0], is_odd); |
| 211 | norm = 1.0 / static_cast<double>(dim0); |
| 212 | } |
| 213 | |
| 214 | af_array res; |
| 215 | AF_THROW(af_fft_c2r(&res, in.get(), norm, is_odd)); |
| 216 | return array(res); |
| 217 | } |
| 218 | |
| 219 | template<> |
| 220 | AFAPI array fftC2R<2>(const array& in, const bool is_odd, |
no test coverage detected