arange

Returns a 1-dimensional slice whose elements are equal to its indices.

  1. auto arange(size_t size)
    arange
    (
    size_t size
    )
  2. auto arange(E start, E end, E step)

Parameters

size size_t

length

Return Value

Type: auto

1-dimensional slice composed of indices

Meta