---
title: "ClikaRT::ops::hypot"
sidebar_label: "hypot"
description: "Elementwise hypotenuse $ \\sqrt{a^2 + b^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>

## hypot() {#hypot}

<div class="api-signature">

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

</div>

Elementwise hypotenuse $\sqrt{a^2 + b^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 1483

</div>
