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

Function transpose

src/backend/oneapi/transpose.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template<typename T>
24Array<T> transpose(const Array<T> &in, const bool conjugate) {
25 const dim4 &inDims = in.dims();
26 dim4 outDims = dim4(inDims[1], inDims[0], inDims[2], inDims[3]);
27 Array<T> out = createEmptyArray<T>(outDims);
28
29 const bool is32multiple =
30 inDims[0] % kernel::TILE_DIM == 0 && inDims[1] % kernel::TILE_DIM == 0;
31 kernel::transpose<T>(out, in, conjugate, is32multiple);
32
33 return out;
34}
35
36#define INSTANTIATE(T) \
37 template Array<T> transpose(const Array<T> &in, const bool conjugate);

Callers 1

nearest_neighbour_Function · 0.70

Calls 2

dim4Class · 0.50
dimsMethod · 0.45

Tested by

no test coverage detected