---
title: "ClikaRT::ops::logical_and"
sidebar_label: "logical_and"
description: "Elementwise logical AND; non-Bool inputs read as element != 0 before the logic, and the output is always Bool (output as eq). the broadcast-shaped Bool mask."
---

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

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

## logical\_and() {#logical_and}

<div class="api-signature">

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

</div>

Elementwise logical AND; non-Bool inputs read as `element != 0` before the logic, and the output is always `Bool` (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 1777

</div>
