MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / dft

Function dft

src/api/cpp/fft.cpp:53–65  ·  view source on GitHub ↗

NOLINTNEXTLINE(performance-unnecessary-value-param)

Source from the content-addressed store, hash-verified

51
52// NOLINTNEXTLINE(performance-unnecessary-value-param)
53array dft(const array& in, const double norm_factor, const dim4 outDims) {
54 array temp;
55 switch (in.dims().ndims()) {
56 case 1: temp = fftNorm(in, norm_factor, outDims[0]); break;
57 case 2: temp = fft2Norm(in, norm_factor, outDims[0], outDims[1]); break;
58 case 3:
59 temp =
60 fft3Norm(in, norm_factor, outDims[0], outDims[1], outDims[2]);
61 break;
62 default: AF_THROW(AF_ERR_NOT_SUPPORTED);
63 }
64 return temp;
65}
66
67// NOLINTNEXTLINE(performance-unnecessary-value-param)
68array dft(const array& in, const dim4 outDims) { return dft(in, 1.0, outDims); }

Callers 1

fft.cppFile · 0.85

Calls 6

fftNormFunction · 0.85
fft2NormFunction · 0.85
fft3NormFunction · 0.85
dim4Class · 0.50
ndimsMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected