Defines the polynomial.
IppStatus ippsPolyGFSetCoeffs_8u(const Ipp8u* pCoeff, int degree, IppsPoly_GF8u* pPoly);
pCoeffs |
Pointer to the array of values to be used as coefficients of the polynomial. |
degree |
The degree of the polynomial. The number of elements of the array pCoeffs to be used as polynomial coefficients is (degree+1). |
pPoly |
Pointer to the ippsPoly_GF8u context to be updated with the specified value of degree and the set of coefficients. |
This function is declared in the ippdi.h file. The function copies (degree+1) values from the array pointed by pCoeffs to the coefficients of the polynomial pPoly and assigns the degree value to the degree of the polynomial.
In Intel IPP, the lower index of an array corresponds to the lower power of the independent variable. For example, to define the polynomial p(x) = 2x5 + 17x2 + 5x + 3, use the array {3, 5, 17, 0, 0, 2}.
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsContextMatchErr |
Indicates an error condition if the context pointed by pPoly is not valid. |
ippStsBadArgErr |
Indicates an error condition if the value of the parameter degree is less than 0 or greater than the highest possible value specified in the context. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.