Create an sequence [0, dims.elements() - 1] and modify to specified dimensions dims and then tile it according to tile_dims.
More...
Create an sequence [0, dims.elements() - 1] and modify to specified dimensions dims and then tile it according to tile_dims.
§ af_iota()
- Parameters
-
| [out] | out | is the generated array |
| [in] | ndims | is size of dimension array dims |
| [in] | dims | is the array containing sizes of the dimension |
| [in] | t_ndims | is size of tile array tdims |
| [in] | tdims | is array containing the number of repetitions of the unit dimensions |
| [in] | type | is the type of array to generate |
§ iota()
- Parameters
-
| [in] | dims | is dim4 for unit dimensions of the sequence to be generated |
| [in] | tile_dims | is dim4 for the number of repetitions of the unit dimensions |
| [in] | ty | is the type of array to generate |
- Returns
- an array of integral range specified dimension and type
- Examples:
- graphics/fractal.cpp, and graphics/surface.cpp.