Function

vDSP_vpolyD(_:_:_:_:_:_:_:_:)

Evaluates a double-precision polynomial using specified coefficients, independent variables, and strides.

Declaration

func vDSP_vpolyD(_ __A: UnsafePointer<Double>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Double>, _ __IB: vDSP_Stride, _ __C: UnsafeMutablePointer<Double>, _ __IC: vDSP_Stride, _ __N: vDSP_Length, _ __P: vDSP_Length)

Discussion

This function is the same as vDSP_vpoly(_:_:_:_:_:_:_:_:), except for the types of vectors A, B, and C.

See Also

Vector-to-Vector Polynomial Evaluation

static func evaluatePolynomial<U>(usingCoefficients: [Double], withVariables: U) -> [Double]

Returns a double-precision evaluated polynomial using specified coefficients and independent variables.

static func evaluatePolynomial<U>(usingCoefficients: [Float], withVariables: U) -> [Float]

Returns a single-precision evaluated polynomial using specified coefficients and independent variables.

static func evaluatePolynomial<U, V>(usingCoefficients: [Double], withVariables: U, result: inout V)

Evaluates a double-precision polynomial using specified coefficients and independent variables.

static func evaluatePolynomial<U, V>(usingCoefficients: [Float], withVariables: U, result: inout V)

Evaluates a single-precision polynomial using specified coefficients and independent variables.

func vDSP_vpoly(UnsafePointer<Float>, vDSP_Stride, UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length, vDSP_Length)

Evaluates a single-precision polynomial using specified coefficients, independent variables, and strides.