vvfmod(_:_:_:_:)
Calculates the modulus after dividing each element in an array by the corresponding element in a second array of double-precision values.
Declaration
func vvfmod(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Int32>)Discussion
Parameters:
- parameter 1
The output array, z.
- parameter 2
The numerators input array, y.
- parameter 3
The denominators input array, x.
- parameter 4
The number of elements in the arrays.
This function calculates z=y-k*x, for an integer k such that if x is nonzero, the result has the same sign as y and magnitude less than that of x.
The following code shows an example of using vvfmod(_:_:_:_:):