---
title: "ClikaRT::ops::flipud"
sidebar_label: "flipud"
description: "flip on dim 0: reverse the leading dim's order. Copies. ClikaRT::Error when the input's dtype is not served for this operation (the machine-readable reason rides code_name())."
---

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

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

## flipud() {#flipud}

<div class="api-signature">

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

</div>

[`flip`](./flip.md#flip) on dim 0: reverse the leading dim's order. Copies.

**Throws**

- `ClikaRT::Error`: when the input's dtype is not served for this operation (the machine-readable reason rides `code_name()`).

**Returns:** a new tensor, `input`'s shape and dtype.

<div class="api-declared">

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

</div>
