<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Markus, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958623#M15684</link>
    <description>&lt;P&gt;Hi Markus,&lt;/P&gt;
&lt;P&gt;Can you please help me to better understand why you can't use standard Integrate1D() routine without callback mechanism in your specific spline usage scenario?&lt;/P&gt;
&lt;P&gt;Let x(i), i=1,...,n&amp;nbsp;be&amp;nbsp; (log-scaled) breakpoints, and y(i) - function values.&amp;nbsp;You&amp;nbsp;compute the intergral over interval [t1,t2) where point t1 belongs to the cell [x(j), x(j(+1) ) and t2 - to [x(l),x(l+1) ). The intergal is decomposed into sum of elementary integrals over segments [t1,x(j+1) ), [x(j+1),x(j+2)),...[x(l), t2)). You need to apply exponentiation to such each elementary integral; summation of the&amp;nbsp;transformed&amp;nbsp;elementary integrals is&amp;nbsp;the result you need.&amp;nbsp;Does this correctly describe your computations?&lt;/P&gt;
&lt;P&gt;If this is correct,&amp;nbsp;the standard&amp;nbsp;integration routine Integrate1D (which does not support callbacks) may be&amp;nbsp;used to compute&amp;nbsp;array of the elementary integrals over segments [x(i),x(i+1)), which then should be transformed and combined into the final result&amp;nbsp;as described above. Before the integration you also&amp;nbsp;need to compute indices of the cells that contain points t1 and t2 using SearchCells1D() API. No callback mechanism is necessary in this case. Exponentiation and summation of elementary integrals is done on the side of your application, using, for example, another API of Intel(R) MKL or compiler functions.&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2013 12:32:28 GMT</pubDate>
    <dc:creator>Andrey_N_Intel</dc:creator>
    <dc:date>2013-07-26T12:32:28Z</dc:date>
    <item>
      <title>MKL Data fitting, log-linear interpolation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958620#M15681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;a log-linear Interpolation can be calculated by the MKL data fitting if one applies the toolbox to the log-scaled values and applied the exponential function to the result of dfdInterpolate1D.&lt;/P&gt;
&lt;P&gt;What about the Integration? One has to apply the exponential function on each integration segment. My first idea was to use the call back mechanism of dfdIntegrateEx1D.&lt;/P&gt;
&lt;P&gt;If I understand correctly&amp;nbsp;I has to implement the integration by my-self. It is not a big deal, but at least performance improvements for the integration parts seems to reduce to managed code performance (I apply a .net wrapper for the MKL functionality and the call back method is managed code as well).&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Markus Wendt&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 08:14:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958620#M15681</guid>
      <dc:creator>Marcus_W_1</dc:creator>
      <dc:date>2013-07-24T08:14:40Z</dc:date>
    </item>
    <item>
      <title>I can see your point: a non</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958621#M15682</link>
      <description>&lt;P&gt;I can see your point: a non-linear interpolation applies a function to the input, performs the interpolation, and applies the inverse of the initial function to the final result. This is a lucky case since the input data can be transformed efficiently i.e., in a vectorized manner. However, an integration cannot simply transform the input, and back-transform the result of the integration. Hence a callback function is performed for each interval of the integration. This is already a kind of an elemental process as opposed to the vectorizable process presented above. In addition, the callback function is also managed code in your case. As a first step, would it be possible for you to provide this callback as a native function? As an alternative you could also wrap your non-linear integration scheme entirely into a native function.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 14:51:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958621#M15682</guid>
      <dc:creator>Hans_P_Intel</dc:creator>
      <dc:date>2013-07-24T14:51:49Z</dc:date>
    </item>
    <item>
      <title>Hi Markus,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958622#M15683</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;
&lt;P&gt;Use of the callback mechanism&amp;nbsp;with IntegrateEx1D in the scenario you described&amp;nbsp;is one possible option.&amp;nbsp;Assuming that&amp;nbsp;you need to apply exponent function to&amp;nbsp;each&amp;nbsp;integration segment I wonder if the&amp;nbsp;standard Integrate1D() routine would work for you as described below?&lt;/P&gt;
&lt;P&gt;API of df[d|s]Integrate1D function allows you to compute nlim integrals over intervals whose boundaries are provided in arrays llim and rlim. If you specify boundaries of each segment&amp;nbsp;you would get array of nlim "elementary" integrals. You then can apply transformation to this array using Intel(R) MKL &amp;nbsp;v[d|s]Exp() function or compiler exp() function.&amp;nbsp;Finally,&amp;nbsp;you accumulate transformed&amp;nbsp;integrals&amp;nbsp;using straightforward loop or mechanism of sample sums available in Intel MKL 11.1 Summary &amp;nbsp;Statistics.&lt;/P&gt;
&lt;P&gt;To speed-up computation of the elementary integrals you can&amp;nbsp;also specify hints (parameters llimhint and rlimhint)&amp;nbsp;which describe structure of&amp;nbsp;the integration limits. In this specific usage model they, at least, are&amp;nbsp;expected to be sorted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, let us know if&amp;nbsp;this helps or your usage model&amp;nbsp;assumes different order of computations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrey&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2013 06:32:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958622#M15683</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2013-07-25T06:32:39Z</dc:date>
    </item>
    <item>
      <title>Hi Markus,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958623#M15684</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;
&lt;P&gt;Can you please help me to better understand why you can't use standard Integrate1D() routine without callback mechanism in your specific spline usage scenario?&lt;/P&gt;
&lt;P&gt;Let x(i), i=1,...,n&amp;nbsp;be&amp;nbsp; (log-scaled) breakpoints, and y(i) - function values.&amp;nbsp;You&amp;nbsp;compute the intergral over interval [t1,t2) where point t1 belongs to the cell [x(j), x(j(+1) ) and t2 - to [x(l),x(l+1) ). The intergal is decomposed into sum of elementary integrals over segments [t1,x(j+1) ), [x(j+1),x(j+2)),...[x(l), t2)). You need to apply exponentiation to such each elementary integral; summation of the&amp;nbsp;transformed&amp;nbsp;elementary integrals is&amp;nbsp;the result you need.&amp;nbsp;Does this correctly describe your computations?&lt;/P&gt;
&lt;P&gt;If this is correct,&amp;nbsp;the standard&amp;nbsp;integration routine Integrate1D (which does not support callbacks) may be&amp;nbsp;used to compute&amp;nbsp;array of the elementary integrals over segments [x(i),x(i+1)), which then should be transformed and combined into the final result&amp;nbsp;as described above. Before the integration you also&amp;nbsp;need to compute indices of the cells that contain points t1 and t2 using SearchCells1D() API. No callback mechanism is necessary in this case. Exponentiation and summation of elementary integrals is done on the side of your application, using, for example, another API of Intel(R) MKL or compiler functions.&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 12:32:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958623#M15684</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2013-07-26T12:32:28Z</dc:date>
    </item>
    <item>
      <title>Hi Makrus,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958624#M15685</link>
      <description>&lt;P&gt;Hi Makrus,&lt;/P&gt;
&lt;P&gt;thank you much for the clarification. Please, keep in mind the following considerations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Performance aspects of either approach would be defined, in particular, by the problem size. If size of partition {x} is big enough your application&amp;nbsp;might benefit from internal parallelization of the Integrate1D function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Hints about structure of integration limits provided to the routine (for example, integration limits are sorted, what should be the case&amp;nbsp;in&amp;nbsp;this specific scenario) would&amp;nbsp;help&amp;nbsp;the library to arrange the computation of the integrals in more effective way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Log/Exp transformation can be done in vectorized&amp;nbsp;way.&lt;/P&gt;
&lt;P&gt;Please, let&amp;nbsp;us know if you run into any questions on use of Data Fitting functions. Feel free to share with us your performance&amp;nbsp;experience for either approach, if possible.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 08:50:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-Data-fitting-log-linear-interpolation/m-p/958624#M15685</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2013-07-31T08:50:00Z</dc:date>
    </item>
  </channel>
</rss>

