Function

vDSP_vpoly

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

Declaration

void vDSP_vpoly(const float *__A, vDSP_Stride __IA, const float *__B, vDSP_Stride __IB, float *__C, vDSP_Stride __IC, vDSP_Length __N, vDSP_Length __P);

Parameters

__A

Single-precision real input vector: coefficients.

__IA

Stride for A.

__B

Single-precision real input vector: variable values.

__IB

Stride for B.

__C

Single-precision real output vector.

__IC

Stride for C.

__N

The number of elements to process.

__P

Degree of polynomial.

Discussion

Evaluates a polynomial using vector B as independent variables and vector A as coefficients. A polynomial of degree p requires p+1 coefficients, so vector A should contain P+1 values.

mathematical formula

See Also

Vector-to-Vector Polynomial Evaluation

vDSP_vpolyD

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