Calculates the dot product of a fixed-point 8.24 format, stereo vector.
Mac Catalyst 13.0+
Input vector A0.
The stride within vector A0.
Input vector A1.
The stride within vector A1.
Input vector B.
The stride within vector B.
Pointer to an allocated variable of type int; on return, it contains the dot product of A0 and B.
Pointer to an allocated variable of type int; on return, it contains the dot product of A1 and B.
The number of elements.
The functions in this group calculate the dot product of two vectors, using the following operation:
The following example shows how you calculate the luminosity of a color using the Rec. 709 luma coefficients for the color-to-grayscale conversion. Array a defines the color, 0xDa70D6, and array b defines the coefficients:
Passing these values to vDSP_dotpr calculates the luminosity and writes the result to c: