<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/NDArray/RangeExpression",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Core AI",
      "CoreAI"
    ],
    "preciseIdentifier" : "s:13CoreAIRuntime7NDArrayV15RangeExpressionP"
  },
  "title" : "NDArray.RangeExpression"
}
-->

# NDArray.RangeExpression

```
protocol RangeExpression : Sendable
```

## Topics

### Selecting an entire dimension

[`static var all: _AllRange`](/documentation/CoreAI/NDArray/RangeExpression/all)

A range expression that selects the entire dimension.

### Resolving a range

[`func relative(to: Range<Int>) -> Range<Int>`](/documentation/CoreAI/NDArray/RangeExpression/relative(to:))

Returns Range for the dimension.

## Relationships

### Inherits From

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)