Function

vDSP_conv

Performs either correlation or convolution on two real vectors; single precision.

Declaration

void vDSP_conv(const float *__A, vDSP_Stride __IA, const float *__F, vDSP_Stride __IF, float *__C, vDSP_Stride __IC, vDSP_Length __N, vDSP_Length __P);

Parameters

__A

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

__IA

The stride through A.

__F

Real single-precision filter vector.

__IF

The stride through F.

__C

Real 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.