---
title: "init(count:data:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/densevector_float/init(count:data:)"
---

# init(count:data:)

Creates a new vector of single-precision values.

## Declaration

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

## Parameters

- `count`: The number of items in the vector.
- `data`: The array of single-precision, floating-point values.
