topic Is there an IPP function for this 3-rd interpolation function? in IntelĀ® Integrated Performance Primitives
https://community.intel.com/t5/Intel-Integrated-Performance/Is-there-an-IPP-function-for-this-3-rd-interpolation-function/m-p/802632#M3393
Your "x_interp_value = ..." statement should be handled nicely by the DotProduct function:<BR /><BR /><A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPM/ippm_ch4/functn_DotProduct.htm">http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPM/ippm_ch4/functn_DotProduct.htm</A><BR /><BR />since you are essentially just multiplying two vectors together. One vector is contained in pf[] and the other is your list of coefficients (coefx0-5). With such a small vector you may not see much benefit from using an IPP function, due to the call overhead; but if the vectors are longer or you are doing large numbers of them, there may be an advantage.Sat, 12 Feb 2011 00:27:32 GMTPaulF_IntelCorp2011-02-12T00:27:32ZIs there an IPP function for this 3-rd interpolation function?
https://community.intel.com/t5/Intel-Integrated-Performance/Is-there-an-IPP-function-for-this-3-rd-interpolation-function/m-p/802631#M3392
This is a standard 3rd order itnerpolation:<BR /><P>for (int iy=-2; iy<=3; iy++) {</P><P>y_coeff = interp_coef_y[iy+2];</P><P>x_interp_value = coefx0*pf[index_signal_start + 0] +</P><P>coefx1*pf[index_signal_start+1] +</P><P>coefx2*pf[index_signal_start+2] +</P><P>coefx3*pf[index_signal_start+3] +</P><P>coefx4*pf[index_signal_start+4] +</P><P>coefx5*pf[index_signal_start+5];</P><P>signal_value3 += y_coeff*x_interp_value;</P><P>index_signal_start += nx;</P><P>}<BR /><BR />Is there an IPP function for this?<BR /><BR />Thanks.</P>Fri, 11 Feb 2011 17:05:19 GMThttps://community.intel.com/t5/Intel-Integrated-Performance/Is-there-an-IPP-function-for-this-3-rd-interpolation-function/m-p/802631#M3392missing__zlw2011-02-11T17:05:19ZIs there an IPP function for this 3-rd interpolation function?
https://community.intel.com/t5/Intel-Integrated-Performance/Is-there-an-IPP-function-for-this-3-rd-interpolation-function/m-p/802632#M3393
Your "x_interp_value = ..." statement should be handled nicely by the DotProduct function:<BR /><BR /><A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPM/ippm_ch4/functn_DotProduct.htm">http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_lnx/hh_goto.htm#IPPM/ippm_ch4/functn_DotProduct.htm</A><BR /><BR />since you are essentially just multiplying two vectors together. One vector is contained in pf[] and the other is your list of coefficients (coefx0-5). With such a small vector you may not see much benefit from using an IPP function, due to the call overhead; but if the vectors are longer or you are doing large numbers of them, there may be an advantage.Sat, 12 Feb 2011 00:27:32 GMThttps://community.intel.com/t5/Intel-Integrated-Performance/Is-there-an-IPP-function-for-this-3-rd-interpolation-function/m-p/802632#M3393PaulF_IntelCorp2011-02-12T00:27:32Z