Function

vDSP_zvmmaa(_:_:_:_:_:_:_:_:_:_:_:_:_:)

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

Declaration

Parameters

__A

Single-precision complex input vector.

__IA

Stride for first input vector.

__B

Single-precision complex second input vector.

__IB

Stride for second input vector.

__C

Single-precision complex third input vector.

__IC

Stride for third input vector.

__D

SIngle-precision complex fourth input vector.

__ID

Stride for fourth input vector.

__E

Single-precision complex fifth input vector.

__IE

Stride for fifth input vector.

__F

Single-precision complex output vector.

__IF

Stride for output vector.

__N

Number of elements to process in each vector.

Discussion

This function calculates the products of the first N complex elements of A and B, the products of the first N compex elements of C and D, adds the corresponding products, adds the first N complex elements of E, and writes the result to F:

A diagram showing the operation of the vDSP_zvmmaa function. There are five rows and the top four rows are composed of two columns. The top two rows of the left column represent the input vectors A and B. The top two rows of the right column represent the input vectors C and D. The third row in both columns represent the intermediate result of the respective inputs. The left column of the forth row represents the intermediate result of adding the two products, and the right column of the forth row represnets input vector E. The bottom row represents the output vector, F. The diagram has connecting lines from the inputs to the output vector indicating the relationships between the inputs and output.

The operation is:

for (n = 0; n < N; ++n)
    F[n] = A[n] * B[n] + C[n] * D[n] + E[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