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

Function copy

src/api/cpp/index.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void copy(array &dst, const array &src, const index &idx0, const index &idx1,
25 const index &idx2, const index &idx3) {
26 unsigned nd = dst.numdims();
27
28 af_index_t indices[] = {idx0.get(), idx1.get(), idx2.get(), idx3.get()};
29
30 af_array lhs = dst.get();
31 const af_array rhs = src.get();
32 AF_THROW(af_assign_gen(&lhs, lhs, nd, indices, rhs));
33}
34
35index::index() : impl{} {
36 impl.idx.seq = af_span;

Callers 12

array_proxy_implMethod · 0.70
TESTFunction · 0.50
TESTFunction · 0.50
meanvar_test_genFunction · 0.50
threading.cppFile · 0.50
DimCheck2DFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
generateAllTypesFunction · 0.50
generateAllTypesRaggedFunction · 0.50
cppMatMulCheckFunction · 0.50
moment_copyFunction · 0.50

Calls 3

numdimsMethod · 0.80
af_assign_genFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected