<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSDataLayoutRowMajorMatrix",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSDataLayout@BNNSDataLayoutRowMajorMatrix"
  },
  "title" : "BNNSDataLayoutRowMajorMatrix"
}
-->

# BNNSDataLayoutRowMajorMatrix

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

```
var BNNSDataLayoutRowMajorMatrix: BNNSDataLayout { get }
```

## Discussion

The value `(row, col)` is at index `col * stride[0] + row * stride[1]`.

- `size[0]` is the number of columns.
- `size[1]` is the number of rows.

---

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)