---
title: "ClikaRT::ops::pow"
sidebar_label: "pow"
description: "Raises input to exponent elementwise: $ a^{exponent} $. Broadcasts and promotes as add; a scalar exponent keeps its weak kind (an integer exponent with an integer base stays integral)."
---

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

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

## pow() {#pow}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`pow`**([`Tensor`](../Tensor.md) `input`, [`ScalarOrTensor`](../ScalarOrTensor.md) `exponent`)

</div>

Raises `input` to `exponent` elementwise: $a^{exponent}$. Broadcasts and promotes as [`add`](./add.md#add); a scalar `exponent` keeps its weak kind (an integer exponent with an integer base stays integral).

**Returns:** the broadcast-shaped powers at the promoted 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 1586

</div>
