---
title: "ClikaRT::ops::rad2deg"
sidebar_label: "rad2deg"
description: "Converts radians to degrees elementwise: $ x \\cdot 180 / \\pi $. input's shape at its (float-promoted) dtype. ClikaRT::Error (INVALID_ARGUMENT) for an unsupported dtype."
---

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

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

## rad2deg() {#rad2deg}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`rad2deg`**([`Tensor`](../Tensor.md) `input`)

</div>

Converts radians to degrees elementwise: $x \cdot 180 / \pi$.

**Returns:** `input`'s shape at its (float-promoted) dtype.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) for an unsupported dtype.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 1577

</div>
