Function arrayfire::range_t [] [src]

pub fn range_t(dims: Dim4, seq_dim: i32, dtype: DType) -> Array

Create a range of values of given type(DType)

Creates an array with [0, n] values along the seq_dim which is tiled across other dimensions.

Parameters

  • dims is the size of Array
  • seq_dim is the dimension along which range values are populated, all values along other dimensions are just repeated
  • dtype indicates whats the type of the Array to be created

Return Values

Array