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

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

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

# eq

[common]\
fun [eq](eq.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`eq(input: Tensor, other: Tensor)`: the `eq` operator. Elementwise equality `a == other`, the output contract the whole comparison family shares: the result is a `Bool` tensor at the broadcast shape (operands promote to their dominant dtype before the compare). A scalar `other` compares against every element. The other comparisons state &quot;output as `eq`&quot; instead of restating this.

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

`eq(input: Tensor, other: Double)`: the number form of `eq`, `other` as a scalar.