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

Function computeStrides

src/backend/oneapi/fft.cpp:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::vector<std::int64_t> computeStrides(const int rank, const dim4 istrides,
93 const dim_t offset) {
94 if (rank == 2) return {offset, istrides[1], istrides[0]};
95 if (rank == 3) return {offset, istrides[2], istrides[1], istrides[0]};
96 if (rank == 4)
97 return {offset, istrides[3], istrides[2], istrides[1], istrides[0]};
98 return {offset, istrides[0]};
99}
100
101template<::oneapi::mkl::dft::precision precision,
102 ::oneapi::mkl::dft::domain domain>

Callers 3

fft_inplaceFunction · 0.85
fft_r2cFunction · 0.85
fft_c2rFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected