---
title: "convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:result:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:result:)-5hiro"
---

# convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:result:)

Calculates the 2D convolution of a single-precision vector with an arbitrarily sized kernel.

## Declaration

```swift
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, withKernel kernel: U, kernelRowCount: Int, kernelColumnCount: Int, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
```

## See Also

### Arbitrary-Size Kernel

- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:)-1sswe.md)
- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:)-267yl.md)
- [convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:result:)](accelerate/vdsp/convolve(_:rowcount:columncount:withkernel:kernelrowcount:kernelcolumncount:result:)-4211m.md)
