---
title: "ClikaRT::ops::zero_"
sidebar_label: "zero_"
description: "In-place zero fill: overwrites every element of self with zero (the error conditions of zeros()). 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>

## zero\_() {#zero_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`zero_`**([`Tensor`](../Tensor.md)`&` `self`, [`StreamOrDevice`](../StreamOrDevice.md) `device` `=` `{}`)

</div>

In-place zero fill: overwrites every element of `self` with zero (the error conditions of [`zeros()`](./zeros.md#zeros)). 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 2467

</div>
