Contents

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 x and y; must be a multiple of 4.

  • x:

    Vector with n elements of type float.

  • y:

    Vector with n elements of type float.

Discussion

Each element of vector x is replaced by the corresponding element of y, and vice versa.

See Also

Vector-Scalar Linear Algebra Functions (from vectorOps.h)