Generate an array with [0, n-1]
values modified to specified dimensions and tiling.
array a = iota(dim4(5, 3))
array b = iota(dim4(5, 3), dim4(1, 2))
◆ af_iota()
C Interface to generate an array with [0, n-1]
values modified to specified dimensions and tiling.
- Parameters
-
[out] | out | iota array |
[in] | ndims | number of dimensions |
[in] | dims | size |
[in] | t_ndims | number of dimensions of tiled array |
[in] | tdims | number of tiled repetitions in each dimension |
[in] | type | type |
- Returns
- AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ iota()
C++ Interface to generate an array with [0, n-1]
values modified to specified dimensions and tiling.
- Parameters
-
[in] | dims | size |
[in] | tile_dims | number of tiled repetitions in each dimension |
[in] | ty | type |
- Returns
- iota array