copapy.arange#

copapy.arange(start, stop=None, step=1)#

Create a tensor with evenly spaced values.

Parameters:
  • start (int | float) – Start value (or stop if stop is None).

  • stop (int | float | None) – Stop value (exclusive).

  • step (int | float) – Step between values.

Return type:

tensor[int] | tensor[float]

Returns:

A 1D tensor.