Create an array with [0, n-1]
values along the seq_dim
dimension and tiled across other dimensions.
More...
Functions | |
AFAPI array | range (const dim4 &dims, const int seq_dim=-1, const dtype ty=f32) |
C++ Interface for creating an array with [0, n-1] values along the seq_dim dimension and tiled across other dimensions of shape dim4 . | |
AFAPI array | range (const dim_t d0, const dim_t d1=1, const dim_t d2=1, const dim_t d3=1, const int seq_dim=-1, const dtype ty=f32) |
C++ Interface for creating an array with [0, n-1] values along the seq_dim dimension and tiled across other dimensions described by dimension parameters. | |
AFAPI af_err | af_range (af_array *out, const unsigned ndims, const dim_t *const dims, const int seq_dim, const af_dtype type) |
C Interface for creating an array with [0, n-1] values along the seq_dim dimension and tiled across other dimensions specified by an array of ndims dimensions. | |
Create an array with [0, n-1]
values along the seq_dim
dimension and tiled across other dimensions.
Examples:
AFAPI af_err af_range | ( | af_array * | out, |
const unsigned | ndims, | ||
const dim_t *const | dims, | ||
const int | seq_dim, | ||
const af_dtype | type | ||
) |
C Interface for creating an array with [0, n-1]
values along the seq_dim
dimension and tiled across other dimensions specified by an array of ndims
dimensions.
[out] | out | the generated array |
[in] | ndims | the size of dimension array dims |
[in] | dims | the array containing the dimension sizes |
[in] | seq_dim | the dimension along which [0, dim[seq_dim] - 1] is created |
[in] | type | the type of the generated array |
C++ Interface for creating an array with [0, n-1]
values along the seq_dim
dimension and tiled across other dimensions of shape dim4
.
[in] | dims | the dim4 object describing the shape of the generated array |
[in] | seq_dim | the dimesion along which [0, dim[seq_dim] - 1] is created |
[in] | ty | the type of the generated array |
AFAPI array range | ( | const dim_t | d0, |
const dim_t | d1 = 1 , |
||
const dim_t | d2 = 1 , |
||
const dim_t | d3 = 1 , |
||
const int | seq_dim = -1 , |
||
const dtype | ty = f32 |
||
) |
C++ Interface for creating an array with [0, n-1]
values along the seq_dim
dimension and tiled across other dimensions described by dimension parameters.
[in] | d0 | the size of first dimension |
[in] | d1 | the size of second dimension |
[in] | d2 | the size of third dimension |
[in] | d3 | the size of fourth dimension |
[in] | seq_dim | the dimesion along which [0, dim[seq_dim] - 1] is created |
[in] | ty | the type of the generated array |