vvcopysign(_:_:_:_:)
Copies an array, setting the sign of each element based on a second array of double-precision values.
Declaration
func vvcopysign(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Double>, _: 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 vvcopysign(_:_:_:_:).