Function

vDSP_vsdivD(_:_:_:_:_:_:)

Divides a double-precision vector by a double-precision scalar value.

Declaration

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

Parameters

__A

Double-precision real input vector.

__IA

Stride for A.

__B

Pointer to double-precision real input scalar.

__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 scalar value B, writing the result to C:

The operation is:

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

See Also