Function

vDSP_vsimps(_:_:_:_:_:_:)

Performs Simpson integration over a single-precision vector.

Declaration

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

Parameters

__A

Single-precision real input vector.

__IA

Address stride for A.

__B

Pointer to single-precision real input scalar.

__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 Simpson integration, storing results in vector C. Scalar *B specifies the integration step size. This function can only be done out of place.