Function

vDSP_zconv(_:_:_:_:_:_:_:_:)

Performs either correlation or convolution on two complex single-precision vectors.

Declaration

func vDSP_zconv(_ __A: UnsafePointer<DSPSplitComplex>, _ __IA: vDSP_Stride, _ __F: UnsafePointer<DSPSplitComplex>, _ __IF: vDSP_Stride, _ __C: UnsafePointer<DSPSplitComplex>, _ __IC: vDSP_Stride, _ __N: vDSP_Length, _ __P: vDSP_Length)

Parameters

__A

Complex single-precision input signal vector. The length of this vector must be at least N + P - 1.

__IA

The stride through A.

__F

Complex single-precision filter vector.

__IF

The stride through F.

__C

Complex single-precision output signal vector.

__IC

The stride through C.

__N

The length of C.

__P

The length of F.

Discussion

If __IF is positive, vDSP_conv performs correlation. If __IF is negative, it performs convolution and F must point to the last vector element. The function can run in place, but C cannot be in place with F:

mathematical formula