Function

vDSP_vintb(_:_:_:_:_:_:_:_:)

Calculates the linear interpolation between the supplied single-precision vectors using the specified stride.

Declaration

func vDSP_vintb(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Float>, _ __IB: vDSP_Stride, _ __C: UnsafePointer<Float>, _ __D: UnsafeMutablePointer<Float>, _ __ID: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Single-precision real input vector.

__IA

Stride for A.

__B

Single-precision real input vector.

__IB

Stride for B.

__C

Single-precision real input scalar: interpolation constant.

__D

Single-precision real output vector.

__ID

Stride for D.

__N

The number of elements to process.

Discussion

This function interpolates between the first N elements of A and B by taking the difference between corresponding elements, multiplying it by the constant C, and adding this to the corresponding element of A; results are left in corresponding elements of D:

mathematical formula

See Also

Vector-to-Vector Linear Interpolation

static func linearInterpolate<T, U>(T, U, using: Double) -> [Double]

Returns the linear interpolation between the supplied double-precision vectors.

static func linearInterpolate<T, U>(T, U, using: Float) -> [Float]

Returns the linear interpolation between the supplied single-precision vectors.

static func linearInterpolate<T, U, V>(T, U, using: Double, result: inout V)

Calculates the linear interpolation between the supplied double-precision vectors.

static func linearInterpolate<T, U, V>(T, U, using: Float, result: inout V)

Calculates the linear interpolation between the supplied single-precision vectors.

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