---
title: "ClikaRT::ops::logaddexp"
sidebar_label: "logaddexp"
description: "Elementwise $ \\log(e^a + e^b) $, computed overflow-safely (the log-domain accumulation primitive). 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>

## logaddexp() {#logaddexp}

<div class="api-signature">

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

</div>

Elementwise $\log(e^a + e^b)$, computed overflow-safely (the log-domain accumulation primitive). 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 1491

</div>
