<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP/convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:)-1sswe",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4vDSPO8convolve_8rowCount06columnE010withKernel09kernelRowE00i6ColumnE0SaySdGx_S2iq_S2itAA0A6BufferRzAaKR_Sd7ElementRtzSdALRt_r0_lFZ"
  },
  "title" : "convolve(_:rowCount:columnCount:withKernel:kernelRowCount:kernelColumnCount:)"
}
-->

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

Returns the 2D convolution of a double-precision vector with an arbitrarily sized kernel.

```
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, withKernel kernel: U, kernelRowCount: Int, kernelColumnCount: Int) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double
```

---

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)