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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Tensors](index.md)/[of](of.md)

# of

[common]\
fun [of](of.md)(data: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html), shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Float32 entry: [data](of.md) copied in row-major order over [shape](of.md).

[common]\
fun [of](of.md)(data: [IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html), shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Int32 entry.

[common]\
fun [of](of.md)(data: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Int64 entry.

[common]\
fun [of](of.md)(data: [DoubleArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html), shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), where: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

Float64 entry.