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

Function transpose

src/backend/cpu/transpose.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template<typename T>
27Array<T> transpose(const Array<T> &in, const bool conjugate) {
28 const dim4 &inDims = in.dims();
29 const dim4 outDims = dim4(inDims[1], inDims[0], inDims[2], inDims[3]);
30 // create an array with first two dimensions swapped
31 Array<T> out = createEmptyArray<T>(outDims);
32
33 getQueue().enqueue(kernel::transpose<T>, out, in, conjugate);
34
35 return out;
36}
37
38template<typename T>
39void transpose_inplace(Array<T> &in, const bool conjugate) {

Callers

nothing calls this directly

Calls 4

dim4Class · 0.70
getQueueFunction · 0.50
dimsMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected