---
title: BNNSDataLayout5DFirstMajor
framework: accelerate
role: symbol
role_heading: Global Variable
path: accelerate/bnnsdatalayout5dfirstmajor
---

# BNNSDataLayout5DFirstMajor

A constant that represents a 5D first-major tensor.

## Declaration

```swift
var BNNSDataLayout5DFirstMajor: BNNSDataLayout { get }
```

## Discussion

Discussion The value (i, j, k, l, m) is at index: m * stride[0] + l * stride[1] + k * stride[2] + j * stride[3] + i * stride[4]. size[0] is the size of the first dimension (i). size[1] is the size of the second dimension (j). size[2] is the size of the third dimension (k). size[3] is the size of the fourth dimension (l). size[4] is the size of the fifth dimension (m).

## See Also

### 5D Data Layouts

- [BNNSDataLayout5DLastMajor](accelerate/bnnsdatalayout5dlastmajor.md)
