---
title: "ClikaRT::ops::add_"
sidebar_label: "add_"
description: "In-place add: writes $ act(x + \\alpha \\cdot other) $ through x; semantics as ops::add (which also documents broadcasting/promotion). ClikaRT::Error as the value form."
---

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

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

## add\_() {#add_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`add_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ScalarOrTensor`](../ScalarOrTensor.md) `other`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`double` `alpha` `=` `1.0`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Activation`](./index.md#Activation) `activation` `=` [`Activation::Identity`](./index.md#Activation)<br />
)

</div>

In-place [`add`](./add.md#add): writes $act(x + \alpha \cdot other)$ through `x`; semantics as [`ops::add`](./add.md#add) (which also documents broadcasting/promotion).

**Throws**

- `ClikaRT::Error`: as the value form.

<div class="api-declared">

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

</div>
