---
title: "ClikaRT::ops::bitwise_not"
sidebar_label: "bitwise_not"
description: "Elementwise bitwise NOT (~x; logical NOT for Bool). Integer and Bool dtypes; the output keeps input's dtype. input's shape and dtype, complemented."
---

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

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

## bitwise\_not() {#bitwise_not}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`bitwise_not`**([`Tensor`](../Tensor.md) `input`)

</div>

Elementwise bitwise NOT (`~x`; logical NOT for Bool). Integer and Bool dtypes; the output keeps `input`'s dtype.

**Returns:** `input`'s shape and dtype, complemented.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) for a floating-point operand.

<div class="api-declared">

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

</div>
