| 22 | namespace opencl { |
| 23 | template<typename T> |
| 24 | Array<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); |