---
title: "ClikaRT::ops::bitwise_right_shift"
sidebar_label: "bitwise_right_shift"
description: "Elementwise a >> other. Integer dtypes only (Bool refuses); otherwise dtype law as bitwise_and."
---

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

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

## bitwise\_right\_shift() {#bitwise_right_shift}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`bitwise_right_shift`**([`Tensor`](../Tensor.md) `input`, [`ScalarOrTensor`](../ScalarOrTensor.md) `other`)

</div>

Elementwise `a >> other`. Integer dtypes only (Bool refuses); otherwise dtype law as [`bitwise_and`](./bitwise_and.md#bitwise_and). ARITHMETIC (sign-propagating) for signed dtypes, logical for unsigned; the shift is a TOTAL function; a count outside `[0, bit_width)`, negative included, yields the fully shifted-out value (sign fill 0/-1 for signed, 0 for unsigned), identically on every backend.

**Returns:** the broadcast-shaped shifted values at the shared dtype.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when the operand dtypes differ, for a floating-point or Bool operand, or broadcast-incompatible shapes.

<div class="api-declared">

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

</div>
