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

Function iota

src/backend/cpu/iota.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template<typename T>
25Array<T> iota(const dim4 &dims, const dim4 &tile_dims) {
26 dim4 outdims = dims * tile_dims;
27
28 Array<T> out = createEmptyArray<T>(outdims);
29
30 getQueue().enqueue(kernel::iota<T>, out, dims);
31
32 return out;
33}
34
35#define INSTANTIATE(T) \
36 template Array<T> iota<T>(const af::dim4 &dims, const af::dim4 &tile_dims);

Callers 1

topkFunction · 0.70

Calls 2

getQueueFunction · 0.50
enqueueMethod · 0.45

Tested by

no test coverage detected