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

Function fftC2R<1>

src/api/cpp/fft.cpp:204–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202
203template<>
204AFAPI 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
219template<>
220AFAPI array fftC2R<2>(const array& in, const bool is_odd,

Callers 1

fft.cppFile · 0.85

Calls 5

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

Tested by

no test coverage detected