MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / fftC2R<2>

Function fftC2R<2>

src/api/cpp/fft.cpp:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219template<>
220AFAPI 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
236template<>
237AFAPI array fftC2R<3>(const array& in, const bool is_odd,

Callers

nothing calls this directly

Calls 5

getOrigDimFunction · 0.85
af_fft2_c2rFunction · 0.85
arrayClass · 0.50
dimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected