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

Function fftC2R<3>

src/api/cpp/fft.cpp:237–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236template<>
237AFAPI array fftC2R<3>(const array& in, const bool is_odd,
238 const double norm_factor) {
239 double norm = norm_factor;
240
241 if (norm == 0) {
242 dim4 idims = in.dims();
243 dim_t dim0 = getOrigDim(idims[0], is_odd);
244 dim_t dim1 = idims[1];
245 dim_t dim2 = idims[2];
246 norm = 1.0 / static_cast<double>(dim0 * dim1 * dim2);
247 }
248
249 af_array res;
250 AF_THROW(af_fft3_c2r(&res, in.get(), norm, is_odd));
251 return array(res);
252}
253
254#define FFT_REAL(rank) \
255 template<> \

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected