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

Function iota

src/backend/opencl/iota.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

topkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected