Adds a single-precision complex vector to the product of a single-precision complex scalar value and a single-precision complex vector.




Single-precision complex input vector.


Stride for A.


Pointer to single-precision complex input scalar.


Single-precision complex input vector.


Stride for C.


Single-precision complex output vector.


Stride for D.


The number of elements to process.


This function calculates the products of the first N elements of A and the scalar value B, adds each product to the corresponding value in C, and writes the result to D:

A diagram showing the operation of the vDSP_vsma function. There are five rows. The top two rows represents the first two inputs, vector A and scalar 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 + C[n];

See Also

Ternary (Vector-Scalar-Vector) Multiply-Add Operations