---
title: "ClikaRT::ops::renorm_"
sidebar_label: "renorm_"
description: "In-place renorm: rewrites self with each slice's norm capped at maxnorm and returns it under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling."
---

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

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

## renorm\_() {#renorm_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`renorm_`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md)`&` `self`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Scalar`](../Scalar.md) `p`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `dim`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Scalar`](../Scalar.md) `maxnorm`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`std::optional<double>` `eps` `=` `std::nullopt`<br />
)

</div>

In-place [`renorm`](./renorm.md#renorm): rewrites `self` with each slice's norm capped at `maxnorm` and returns it 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.

**Throws**

- `ClikaRT::Error`: as [`renorm`](./renorm.md#renorm).

<div class="api-declared">

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

</div>
