---
title: "ClikaRT::ops::index"
sidebar_label: "index"
description: "Advanced indexing over the standard entry vocabulary (int / bool / integer-or-boolean Tensor / IndexSlice / ellipsis / new_axis): index(t, {1, slice_all, idx}) ≡ t[1, :, idx]."
---

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

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

## index() {#index}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`index`**([`Tensor`](../Tensor.md) `input`, [`ClikaRT::Span`](../Span.md)`<const` [`IndexEntry`](./IndexEntry.md)`>` `indices`)

</div>

Advanced indexing over the standard entry vocabulary (int / bool / integer-or-boolean [Tensor](../Tensor.md) / [`IndexSlice`](./IndexSlice.md) / [`ellipsis`](./index.md#ellipsis) / [`new_axis`](./index.md#new_axis)): [`index`](./index-fn.md#index)`(t, {1, `[`slice_all`](./index.md#slice_all)`, idx})` ≡ `t[1, :, idx]`.

<div class="api-declared">

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

</div>
