---
title: "ClikaRT::ops::atan2"
sidebar_label: "atan2"
description: "Elementwise four-quadrant arc tangent of a/b (the angle of the point (b, a)), in radians. Broadcasts and promotes as add. the broadcast-shaped angles at the promoted float dtype."
---

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

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

## atan2() {#atan2}

<div class="api-signature">

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

</div>

Elementwise four-quadrant arc tangent of `a/b` (the angle of the point `(b, a)`), in radians. Broadcasts and promotes as [`add`](./add.md#add).

**Returns:** the broadcast-shaped angles 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 1416

</div>
