gpuIota (Function)
Signature: gpuIota(n: int) -> GpuBuffer<int>
Description: Builds the index buffer [0, n). Gather, stencil, and matrix addressing start here.
Parameters
- n (int): The element count
Returns: GpuBuffer
Example
gpuIota(4) |> fromGpu() // [0, 1, 2, 3]
gpuIota 4 |> fromGpu () // [0, 1, 2, 3]