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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Tensor](index.md)/[toIntArray](toIntArray.md)

# toIntArray

[common]\
fun [toIntArray](toIntArray.md)(): [IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)

[toFloatArray](toFloatArray.md) for an Int32 tensor: every element, flat, row-major.