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

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

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

# eqInPlace

[common]\
fun [eqInPlace](eqInPlace.md)(self: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`eqInPlace(self: Tensor, other: Tensor)`: the `eq_` operator. In-place `eq`: writes the comparison result through `x` (`x` keeps its own dtype; true/false land as one/zero). Writes through `self` and returns it, so calls chain.

[common]\
fun [eqInPlace](eqInPlace.md)(self: [Tensor](../Tensor/index.md), other: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Tensor](../Tensor/index.md)

`eqInPlace(self: Tensor, other: Double)`: the number form of `eq_`, `other` as a scalar.