---
title: BNNSDataLayout2DFirstMajor
framework: accelerate
role: symbol
role_heading: Global Variable
path: accelerate/bnnsdatalayout2dfirstmajor
---

# BNNSDataLayout2DFirstMajor

A constant that represents a 2D first-major matrix.

## Declaration

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

## Discussion

Discussion The value (i, j) is at index j * stride[0] + i * stride[1]. size[0] is the size of the first dimension (i). size[1] is the size of the second dimension (j). This is the BLAS/LAPACK row-major equivalent.

## See Also

### 2D Data Layouts

- [BNNSDataLayoutColumnMajorMatrix](accelerate/bnnsdatalayoutcolumnmajormatrix.md)
- [BNNSDataLayoutRowMajorMatrix](accelerate/bnnsdatalayoutrowmajormatrix.md)
- [BNNSDataLayout2DLastMajor](accelerate/bnnsdatalayout2dlastmajor.md)
