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

# init(count:data:)

Creates a new vector of double-precision values.

```
init(count: Int32, data: UnsafeMutablePointer<Double>)
```

## Parameters

`count`

The number of items in the vector.

`data`

The array of double-precision, floating-point values.

---

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)