---
title: "arange"
sidebar_label: "arange"
description: "Kotlin binding reference: arange."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[arange](arange.md)

# arange

[common]\
fun [arange](arange.md)(start: [Tensor](../Tensor/index.md), end: [Tensor](../Tensor/index.md), step: [Tensor](../Tensor/index.md)? = null, dtype: [DType](../DType/index.md) = DType.INT64, device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`arange(start: Tensor, end: Tensor, step: Tensor? = null, dtype: DType = DType.INT64, device: Placement? = null)`: the `arange` operator. Evenly stepped 1-D range over the half-open interval `[start, end)`. `out[i] = start + i * step`, for `ceil((end - start) / step)` elements; `end` itself is never included. Each bound is an int/float literal OR a 0-D Tensor (a tensor bound traces symbolically, never syncing to the host).

[common]\
fun [arange](arange.md)(start: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), end: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), step: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0, dtype: [DType](../DType/index.md) = DType.INT64, device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`arange(start: Double, end: Double, step: Double = 1.0, dtype: DType = DType.INT64, device: Placement? = null)`: the number form of `arange`, `start`, `end`, `step` as scalars.