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

Function copyArray

src/backend/cpu/copy.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50template<typename T>
51Array<T> copyArray(const Array<T> &A) {
52 Array<T> out = createEmptyArray<T>(A.dims());
53 if (A.elements() > 0) { getQueue().enqueue(kernel::copy<T, T>, out, A); }
54 return out;
55}
56
57template<typename inType, typename outType>
58void copyArray(Array<outType> &out, Array<inType> const &in) {

Callers 6

createSubArrayFunction · 0.70
qrFunction · 0.70
transformFunction · 0.70
gemm<half>Function · 0.70
arithOpFunction · 0.70
solveFunction · 0.70

Calls 4

getQueueFunction · 0.50
dimsMethod · 0.45
elementsMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected