---
title: "ClikaRT::ops::eq_"
sidebar_label: "eq_"
description: "In-place eq: writes the comparison result through x (x keeps its own dtype; true/false land as one/zero). ClikaRT::Error as the value form."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## eq\_() {#eq_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`eq_`**([`Tensor`](../Tensor.md)`&` `self`, [`ScalarOrTensor`](../ScalarOrTensor.md) `other`)

</div>

In-place [`eq`](./eq.md#eq): writes the comparison result through `x` (`x` keeps its own dtype; true/false land as one/zero).

**Throws**

- `ClikaRT::Error`: as the value form.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 1724

</div>
