<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIVector/init(values:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIVector(im)initWithValues:count:"
  },
  "title" : "init(values:count:)"
}
-->

# init(values:count:)

Initialize a Core Image vector object with the specified the values.

```
init(values: UnsafePointer<CGFloat>, count: Int)
```

## Parameters

`values`

A pointer `CGFloat` values for vector.

`count`

The number of `CGFloats` specified by the `values` parameter.

## Return Value


An initialized [`CIVector`](/documentation/CoreImage/CIVector) object of length `count`.

---

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)