Function

vDSP_vswap(_:_:_:_:_:)

Swaps the elements of two single-precision vectors.

Declaration

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

Parameters

__A

Single-precision real input-output vector.

__IA

Stride for A.

__B

Single-precision real input-output vector.

__IB

Stride for B.

__N

The number of elements to process.

Discussion

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