Function

vDSP_zvma(_:_:_:_:_:_:_:_:_:)

Adds a single-precision complex vector to the product of two single-precision complex vectors.

Declaration

Parameters

__A

Single-precision complex input vector.

__IA

Stride for the A.

__B

Single-precision complex input vector.

__IB

Stride for B.

__C

Single-precision complex input vector.

__IC

Stride for C.

__D

Single-precision complex output vector.

__ID

Stride for D.

__N

Number of elements to process in each of the input and output vectors.

Discussion

This function multiplies the first N complex elements of A by the corresponding complex elements of B, adds each product to the corresponding value in C, and writes the result to D:

A diagram showing the operation of the vDSP_zvma function. There are five rows. The top two rows represents the first two inputs, vector A and vector B. The third row represents the intermediate result of the first two inputs. The forth row represents the third input, vector C. The bottom row represents the output, vector D. The diagram has connecting lines from the input vectors to the output vector indicating the relationships between the inputs and output.

The operation is:

 for (n = 0; n < N; ++n)
    D[n] = A[n] * B[n] + C[n];

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software