| 218 | |
| 219 | template<> |
| 220 | AFAPI array fftC2R<2>(const array& in, const bool is_odd, |
| 221 | const double norm_factor) { |
| 222 | double norm = norm_factor; |
| 223 | |
| 224 | if (norm == 0) { |
| 225 | dim4 idims = in.dims(); |
| 226 | dim_t dim0 = getOrigDim(idims[0], is_odd); |
| 227 | dim_t dim1 = idims[1]; |
| 228 | norm = 1.0 / static_cast<double>(dim0 * dim1); |
| 229 | } |
| 230 | |
| 231 | af_array res; |
| 232 | AF_THROW(af_fft2_c2r(&res, in.get(), norm, is_odd)); |
| 233 | return array(res); |
| 234 | } |
| 235 | |
| 236 | template<> |
| 237 | AFAPI array fftC2R<3>(const array& in, const bool is_odd, |
nothing calls this directly
no test coverage detected