---
title: Vector clear and fill functions
framework: accelerate
role: collectionGroup
role_heading: API Collection
path: accelerate/vector-clear-and-fill-functions
---

# Vector clear and fill functions

Populate vectors with zeros or a scalar value.

## Topics

### Clearing Vectors

- [clear(_:)](accelerate/vdsp/clear(_:)-1t76j.md)
- [clear(_:)](accelerate/vdsp/clear(_:)-5f0gr.md)

### Filling Vectors with a Single Scalar Value

- [fill(_:with:)](accelerate/vdsp/fill(_:with:)-91ud3.md)
- [fill(_:with:)](accelerate/vdsp/fill(_:with:)-7gfq3.md)

## See Also

### Vector generation, filling, and clearing

- [Vector generation](accelerate/vector-generation.md)
