Function

vDSP_vsdivi(_:_:_:_:_:_:)

Divides an integer vector by an integer scalar value.

Declaration

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

Parameters

__A

Integer real input vector.

__IA

Stride for A.

__B

Pointer to integer input scalar.

__C

Integer 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

Binary (Vector-Scalar) Division Operations