Function

vDSP_vdivD(_:_:_:_:_:_:_:)

Multiplies two double-precision vectors.

Declaration

func vDSP_vdivD(_ __B: UnsafePointer<Double>, _ __IB: vDSP_Stride, _ __A: UnsafePointer<Double>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Double>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__B

Double-precision real input vector. Note that B comes before A!

__IB

Stride for B.

__A

Double-precision real input vector.

__IA

Stride for A.

__C

Double-precision real output vector.

__IC

Stride for C.

__N

The number of elements to process.

Discussion

This function calculates the first N elements of A divided by the corresponding element in B, writing the result to C:

A diagram showing the operation of the vDSP_vdiv function. There are three rows. The top row represents the first input, vector A. The second row represents the second input, vector B. The bottom row represents the output, vector C. The diagram has connecting lines from the input vectors to the output vector indicating the relationships between the inputs and output.

The operation is:

 for (n = 0; n < N; ++n)
    C[n] = A[n] / B[n];

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software