Generate an array with [0, n-1]
values modified to specified dimensions and tiling.
More...
Functions | |
AFAPI array | iota (const dim4 &dims, const dim4 &tile_dims=dim4(1), const dtype ty=f32) |
C++ Interface to generate an array with [0, n-1] values modified to specified dimensions and tiling. More... | |
AFAPI af_err | af_iota (af_array *out, const unsigned ndims, const dim_t *const dims, const unsigned t_ndims, const dim_t *const tdims, const af_dtype type) |
C Interface to generate an array with [0, n-1] values modified to specified dimensions and tiling. More... | |
Generate an array with [0, n-1]
values modified to specified dimensions and tiling.
AFAPI af_err af_iota | ( | af_array * | out, |
const unsigned | ndims, | ||
const dim_t *const | dims, | ||
const unsigned | t_ndims, | ||
const dim_t *const | tdims, | ||
const af_dtype | type | ||
) |
C Interface to generate an array with [0, n-1]
values modified to specified dimensions and tiling.
[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 |
C++ Interface to generate an array with [0, n-1]
values modified to specified dimensions and tiling.
[in] | dims | size |
[in] | tile_dims | number of tiled repetitions in each dimension |
[in] | ty | type |