---
title: "subscript(scalarAt:)"
framework: coreai
role: symbol
role_heading: Instance Subscript
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "coreai/ndarray/mutableview/subscript(scalarat:)"
---

# subscript(scalarAt:)

Access the element at a multi-dimensional index.

## Declaration

```swift
subscript<let rank : Int>(scalarAt index: InlineArray<rank, Int>) -> Element { get set }
```

## Parameters

- `index`: The multi-dimensional index of the element to access. It must have the same count as rank of this view.

## Overview

Overview note: rank must be equal to the rank of this view.

## See Also

### Accessing elements

- [contiguousElements](coreai/ndarray/mutableview/contiguouselements.md)
