---
title: "ClikaRT::ops::xlog1py"
sidebar_label: "xlog1py"
description: "Elementwise $ a \\cdot \\log(1 + other) $ with the $ 0 \\cdot \\log(0) = 0 $ convention (entropy-style sums stay finite where input is zero). Broadcasts and promotes as add."
---

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

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

## xlog1py() {#xlog1py}

<div class="api-signature">

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

</div>

Elementwise $a \cdot \log(1 + other)$ with the $0 \cdot \log(0) = 0$ convention (entropy-style sums stay finite where `input` is zero). 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 1614

</div>
