Gathers a single-precision vector using the specified 0-based indices.


func vDSP_vindex(_ __A: UnsafePointer<Float>, _ __B: UnsafePointer<Float>, _ __IB: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)



Single-precision real input vector.


Single-precision real input vector: indices.


Address stride for B.


Single-precision real output vector.


Address stride for C.


The number of elements to process.


Performs the following operation:

mathematical formula

Uses vector B as zero-based subscripts to copy selected elements of vector A to vector C. Fractional parts of vector B are ignored.

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