---
title: "convolve(_:withKernel:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/convolve(_:withkernel:)-4p0rt"
---

# convolve(_:withKernel:)

Returns the 1D convolution of a single-precision vector.

## Declaration

```swift
static func convolve<T, U>(_ vector: T, withKernel kernel: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float
```

## Parameters

- `vector`: The input signal vector.
- `kernel`: The filter vector.

## Return Value

Return Value The convolution result.

## See Also

### Real Vectors

- [convolve(_:withKernel:)](accelerate/vdsp/convolve(_:withkernel:)-1nv65.md)
- [convolve(_:withKernel:result:)](accelerate/vdsp/convolve(_:withkernel:result:)-8j76l.md)
- [convolve(_:withKernel:result:)](accelerate/vdsp/convolve(_:withkernel:result:)-2z66w.md)
- [correlate(_:withKernel:)](accelerate/vdsp/correlate(_:withkernel:)-7f6o0.md)
- [correlate(_:withKernel:)](accelerate/vdsp/correlate(_:withkernel:)-9sol8.md)
- [correlate(_:withKernel:result:)](accelerate/vdsp/correlate(_:withkernel:result:)-1lb82.md)
- [correlate(_:withKernel:result:)](accelerate/vdsp/correlate(_:withkernel:result:)-377zj.md)
