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