---
title: "ClikaRT::ops::xlogy"
sidebar_label: "xlogy"
description: "Elementwise $ a \\cdot \\log(other) $ with the $ 0 \\cdot \\log(0) = 0 $ convention. 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>

## xlogy() {#xlogy}

<div class="api-signature">

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

</div>

Elementwise $a \cdot \log(other)$ with the $0 \cdot \log(0) = 0$ convention. 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 1620

</div>
