---
title: "ClikaRT::ops::max"
sidebar_label: "max"
description: "a 2-element array {values, indices}."
---

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

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

## max() {#max}

<div class="api-signature">

`std::array<`[`Tensor`](../Tensor.md) `2>` **`max`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `input`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `dim`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`bool` `keepdim` `=` `false`<br />
)

</div>

**Returns:** a 2-element array \{values, indices\}.

<div class="api-declared">

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

</div>
