Creates an array with [0, n] values along the seq_dim which is tiled across other dimensions.  
More...
|  | 
| AFAPI array | range (const dim4 &dims, const int seq_dim=-1, const dtype ty=f32) | 
|  | 
| 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) | 
|  | 
| AFAPI af_err | af_range (af_array *out, const unsigned ndims, const dim_t *const dims, const int seq_dim, const af_dtype type) | 
|  | 
Creates an array with [0, n] values along the seq_dim which is tiled across other dimensions. 
- 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] | seq_dim | is dimension along which [0, dim[seq_dim] - 1] is generated |  | [in] | type | is the type of array to generate |  
 
 
 
      
        
          | AFAPI array af::range | ( | const dim4 & | dims, | 
        
          |  |  | const int | seq_dim = -1, | 
        
          |  |  | const dtype | ty = f32 | 
        
          |  | ) |  |  | 
      
 
- Parameters
- 
  
    | [in] | dims | is dim4 for size of all dimensions |  | [in] | seq_dim | is dimesion along which [0, dim[seq_dim] - 1] is generated |  | [in] | ty | is the type of array to generate |  
 
- Returns
- an array of integral range specified dimension and type 
- Examples: 
- binary_thresholding.cpp, histogram.cpp, and neural_network.cpp.
 
 
- Parameters
- 
  
    | [in] | d0 | is size of first dimension |  | [in] | d1 | is size of second dimension |  | [in] | d2 | is size of third dimension |  | [in] | d3 | is size of fourth dimension |  | [in] | seq_dim | is dimesion along which [0, dim[seq_dim] - 1] is generated |  | [in] | ty | is the type of array to generate |  
 
- Returns
- an array of integral range specified dimension and type