---
title: "ClikaRT::ops::threshold_"
sidebar_label: "threshold_"
description: "In-place threshold: writes the result through self; same formula, arguments, and error conditions as threshold(). A view input writes through its base storage."
---

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

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

## threshold\_() {#threshold_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`threshold_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`double` `threshold`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`double` `value`<br />
)

</div>

In-place [`threshold`](./threshold.md#threshold): writes the result through `self`; same formula, arguments, and error conditions as [`threshold()`](./threshold.md#threshold). A view input writes through its base storage. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

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

</div>
