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

Function computePaddedDims

src/api/c/fft.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using std::is_same;
26
27void computePaddedDims(dim4 &pdims, const dim4 &idims, const dim_t npad,
28 dim_t const *const pad) {
29 for (int i = 0; i < 4; i++) {
30 pdims[i] = (i < static_cast<int>(npad)) ? pad[i] : idims[i];
31 }
32}
33
34template<typename InType>
35af_array fft(const af_array in, const double norm_factor, const dim_t npad,

Callers 2

fftFunction · 0.85
fft_r2cFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected