Function

vDSP_vrsum(_:_:_:_:_:_:)

Performs running sum integration over a single-precision vector.

Declaration

func vDSP_vrsum(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __S: UnsafePointer<Float>, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Single-precision real input vector.

__IA

Address stride for A.

__S

Points to single-precision real input scalar: weighting factor.

__C

Single-precision real output vector.

__IC

Stride for C

__N

The number of elements to process.

Discussion

Performs the following operation:

mathematical formula

Integrates vector A using a running sum from vector C. Vector A is weighted by scalar *S and added to the previous output point. The first element from vector A is not used in the sum.

See Also

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