vvcopysignf(_:_:_:_:)
Copies an array, setting the sign of each element based on a second array of single-precision values.
Declaration
func vvcopysignf(_: UnsafeMutablePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Int32>)Discussion
Parameters:
- parameter 1
The output array, z.
- parameter 2
The magnitude input array, y.
- parameter 3
The sign input array, x.
- parameter 4
The number of elements in the arrays.
The following code shows an example of using vvcopysignf(_:_:_:_:).