Swaps the elements of two single-precision vectors.


func vDSP_vswap(_ __A: UnsafeMutablePointer<Float>, _ __IA: vDSP_Stride, _ __B: UnsafeMutablePointer<Float>, _ __IB: vDSP_Stride, _ __N: vDSP_Length)



Single-precision real input-output vector.


Stride for A.


Single-precision real input-output vector.


Stride for B.


The number of elements to process.


This function exchanges the first N elements of A with corresponding elements of B:

mathematical formula

See Also

Vector-to-Vector Element Swapping Functions

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