---
title: "ClikaRT::ops::logaddexp2"
sidebar_label: "logaddexp2"
description: "Elementwise $ \\log_2(2^a + 2^b) $, logaddexp in base 2. Broadcasts and promotes as add. the broadcast-shaped result at the promoted float dtype."
---

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

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

## logaddexp2() {#logaddexp2}

<div class="api-signature">

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

</div>

Elementwise $\log_2(2^a + 2^b)$, [`logaddexp`](./logaddexp.md#logaddexp) in base 2. Broadcasts and promotes as [`add`](./add.md#add).

**Returns:** the broadcast-shaped result at the promoted float dtype.

**Throws**

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

<div class="api-declared">

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

</div>
