vSswap(_:_:_:)
Interchanges the elements of two vectors.
Declaration
func vSswap(_ n: Int32, _ x: UnsafeMutablePointer<vFloat>, _ y: UnsafeMutablePointer<vFloat>)Parameters
- n:
Number of elements in vectors
xandy; must be a multiple of 4. - x:
Vector with
nelements of typefloat. - y:
Vector with
nelements of typefloat.
Discussion
Each element of vector x is replaced by the corresponding element of y, and vice versa.