---
title: "ClikaRT::ops::logical_xor"
sidebar_label: "logical_xor"
description: "Elementwise logical XOR (non-Bool inputs read as != 0); output as eq. the broadcast-shaped Bool mask. ClikaRT::Error (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible."
---

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

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

## logical\_xor() {#logical_xor}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`logical_xor`**([`Tensor`](../Tensor.md) `input`, [`Tensor`](../Tensor.md) `other`)

</div>

Elementwise logical XOR (non-Bool inputs read as `!= 0`); output as [`eq`](./eq.md#eq).

**Returns:** the broadcast-shaped `Bool` mask.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when the operand shapes are not broadcast-compatible.

<div class="api-declared">

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

</div>
