<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/DenseMatrix_Float/init(rowCount:columnCount:columnStride:attributes:data:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So17DenseMatrix_Floata8rowCount06columnE00F6Stride10attributes4dataABs5Int32V_A2ISo18SparseAttributes_taSpySfGtcfc"
  },
  "title" : "init(rowCount:columnCount:columnStride:attributes:data:)"
}
-->

# init(rowCount:columnCount:columnStride:attributes:data:)

Creates a new matrix of single-precision values.

```
init(rowCount: Int32, columnCount: Int32, columnStride: Int32, attributes: SparseAttributes_t, data: UnsafeMutablePointer<Float>)
```

## Parameters

`rowCount`

The number of rows in the matrix.

`columnCount`

The number of columns in the matrix.

`columnStride`

The column stride of the matrix.

`attributes`

The attributes of the matrix, such as whether it’s symmetrical or triangular.

`data`

The array of single-precision, floating-point values in column-major order.

---

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)