<?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 Ewan, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151821#M27194</link>
    <description>&lt;P&gt;Hi Ewan,&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Construction of Akima spline requires at least 5 breakpoints as defined in “A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures” by Hiroshi Akima (Journal of the Association for Computing Machinery, Vol.17, No.4, October 1970 pp. 589-602), paragraph 2: The slope of the curve at each given point is determined locally by the coordinates of five points. For this reason, the library reports unsuccessful status code when number of breakpoints &amp;lt;= 4.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;We will update Intel MKL Data Fitting documentation in one of future releases to make this information clear for all types of splines.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Thanks,&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Alina&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 14:38:53 GMT</pubDate>
    <dc:creator>Alina_E_Intel</dc:creator>
    <dc:date>2019-08-29T14:38:53Z</dc:date>
    <item>
      <title>Data fitting cubic spline - failing with &lt;=4 breakpoints</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151820#M27193</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm aware that this question is close to that being asked in: &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/815604" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/815604&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm using an older version of MKL, version 11.0.5, and I am having problems with the use of the Akima cubic spline that I can't find any concrete answer for in the documentation.&lt;/P&gt;&lt;P&gt;I'm using a combination of boundary conditions on the spline, depending on the case, of either a fixed value to the 1st or 2nd derivative at the left and right edge (both left and right BC are always defined). I don't define any internal conditions, and I use a non-uniform partition for the x breakpoints.&lt;/P&gt;&lt;P&gt;The problem I am encountering is that if there is &amp;lt;= 4 breakpoints, the dfdConstruct1D method will fail with the error 'Error: the number of breakpoints is invalid (code -1004).'&amp;nbsp; At the moment, the code will enforce a linear interpolation of there are &amp;lt;= 2 breakpoints which I understood to be the minimum.&lt;/P&gt;&lt;P&gt;However, I can't seem to find anywhere in the documentation that the minimum number of breakpoints required for each cubic spline method is defined.&lt;/P&gt;&lt;P&gt;Can someone clarify what the minimum number of breakpoints required is for each of the methods, and how the BC's and/or IC's change this behaviour?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ewan&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 09:23:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151820#M27193</guid>
      <dc:creator>Towie__Ewan</dc:creator>
      <dc:date>2019-08-28T09:23:10Z</dc:date>
    </item>
    <item>
      <title>Hi Ewan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151821#M27194</link>
      <description>&lt;P&gt;Hi Ewan,&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Construction of Akima spline requires at least 5 breakpoints as defined in “A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures” by Hiroshi Akima (Journal of the Association for Computing Machinery, Vol.17, No.4, October 1970 pp. 589-602), paragraph 2: The slope of the curve at each given point is determined locally by the coordinates of five points. For this reason, the library reports unsuccessful status code when number of breakpoints &amp;lt;= 4.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;We will update Intel MKL Data Fitting documentation in one of future releases to make this information clear for all types of splines.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Thanks,&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Alina&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:38:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151821#M27194</guid>
      <dc:creator>Alina_E_Intel</dc:creator>
      <dc:date>2019-08-29T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Hi Alina,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151822#M27195</link>
      <description>&lt;P&gt;Hi Alina,&lt;/P&gt;&lt;P&gt;Is there any chance you could post the minimum number of breakpoints required for each type of spline here?&lt;/P&gt;&lt;P&gt;I am struggling to figure out which types can be used in different scenarios. For example, the natural cubic spline I have used in the past works with only 2 breakpoints, but in the MKL version the natural spline seems to require 3?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ewan&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 21:08:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151822#M27195</guid>
      <dc:creator>Towie__Ewan</dc:creator>
      <dc:date>2019-11-20T21:08:03Z</dc:date>
    </item>
    <item>
      <title>Hi Ewan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151823#M27196</link>
      <description>&lt;P style="margin-left:0in; margin-right:0in"&gt;Hi Ewan,&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Here you can find minimal numbers of breakpoints for the different types of cubic splines:&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Cubic Default&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3 breakpoints&lt;BR /&gt;Cubic Natural&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 breakpoints (in case of not-a-knot boundary conditions: 3 breakpoints)&lt;BR /&gt;Cubic Hermite&amp;nbsp;&amp;nbsp;&amp;nbsp;3 breakpoints&lt;BR /&gt;Cubic Bessel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 breakpoints&lt;BR /&gt;Cubic Akima&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 breakpoints&lt;BR /&gt;Cubic Hyman&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 breakpoints&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;As I mentioned before we will update Intel MKL Data Fitting documentation in the future releases.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Thank you for bringing this question, feel free to ask more.&lt;/P&gt;&lt;P style="margin-left:0in; margin-right:0in"&gt;Best regards,&lt;BR /&gt;Alina&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 12:59:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151823#M27196</guid>
      <dc:creator>Alina_E_Intel</dc:creator>
      <dc:date>2019-11-21T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Hi Alina,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151824#M27197</link>
      <description>&lt;P&gt;Hi Alina,&lt;/P&gt;&lt;P&gt;If you are updating the documentation, it might be a good idea to change the include line from 'mkl.h' to 'mkl_df.h' within the Data FItting manual section. There only seems to be one place in the manual where it mentions that this is the minimum required include to get access to the DF functionality, at the start of chapter 15. For each and every description of the DF routines the required include section only mentions 'mkl.h' which is a bit misleading.&lt;/P&gt;&lt;P&gt;In many cases, incuding 'mkl.h' can result in a lot of linking conflicts if you are using an alternative library for some other numerical calculations (e.g LAPACK, BLAS, etc.).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ewan&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 19:40:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151824#M27197</guid>
      <dc:creator>Towie__Ewan</dc:creator>
      <dc:date>2019-11-23T19:40:12Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt; In many cases, incuding</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151825#M27198</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;In many cases, including 'mkl.h' can result in a lot of linking conflicts if you are using an alternative library for some other numerical calculations (e.g LAPACK, BLAS, etc.).&lt;/P&gt;&lt;P&gt;Actually mkl.h includes all mkl's header files including mkl_df.h also. What kind of linking conflict do you see? Could you show more details and examples?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 04:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151825#M27198</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-11-25T04:27:00Z</dc:date>
    </item>
    <item>
      <title>Hi Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151826#M27199</link>
      <description>&lt;P&gt;Hi Gennady,&lt;/P&gt;&lt;P&gt;I think you've misunderstood my point.&lt;/P&gt;&lt;P&gt;To get access to the Data Fitting routines the minimum include is mkl_df.h. There is no need to include the entirety of the MKL library by including mkl.h.&lt;/P&gt;&lt;P&gt;In my particular case, if I include mkl.h it causes a lot of linking conflicts as I include other numerical libraries elsewhere in my code that are redefined in MKL.&lt;/P&gt;&lt;P&gt;It's a little misleading to suggest in the manual that you need to include mkl.h when actually mkl_df.h is more than sufficient to access the DF routines.&lt;/P&gt;&lt;P&gt;Ewan&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 11:48:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151826#M27199</guid>
      <dc:creator>Towie__Ewan</dc:creator>
      <dc:date>2019-11-25T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Quote:Elizarova, Alina (Intel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151827#M27200</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Elizarova, Alina (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Ewan,&lt;/P&gt;&lt;P&gt;Here you can find minimal numbers of breakpoints for the different types of cubic splines:&lt;/P&gt;&lt;P&gt;Cubic Default&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3 breakpoints&lt;BR /&gt;Cubic Natural&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2 breakpoints (in case of not-a-knot boundary conditions: 3 breakpoints)&lt;BR /&gt;Cubic Hermite&amp;nbsp;&amp;nbsp;&amp;nbsp;3 breakpoints&lt;BR /&gt;Cubic Bessel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 breakpoints&lt;BR /&gt;Cubic Akima&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5 breakpoints&lt;BR /&gt;Cubic Hyman&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4 breakpoints&lt;/P&gt;&lt;P&gt;As I mentioned before we will update Intel MKL Data Fitting documentation in the future releases.&lt;/P&gt;&lt;P&gt;Thank you for bringing this question, feel free to ask more.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Alina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I tried the provided example with MKL 'dfdhermitecubicspline.c' and I only changed the number of breakpoints from 7 to 3 but I get 'DF_ERROR_MEM_FAILURE' when calling&amp;nbsp;dfdConstruct1D. It works with more than 3 breakpoints. Does the hermite interpolation only work with &amp;gt; 3 breakpoints?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:04:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151827#M27200</guid>
      <dc:creator>Khoury__Pascal</dc:creator>
      <dc:date>2020-01-02T10:04:20Z</dc:date>
    </item>
    <item>
      <title>checked the problem with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151828#M27201</link>
      <description>&lt;P&gt;checked the problem with MKL 2020 and when the #breakppoins == 3&lt;/P&gt;&lt;P&gt;dfdhermitecubicspline.exe&lt;BR /&gt;&lt;STRONG&gt;Number of break points : 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i &amp;nbsp;x(i) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y(i) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;y'(i)&lt;BR /&gt;&amp;nbsp;0 +0.000000 &amp;nbsp; +0.000000 &amp;nbsp; +1.884956&lt;BR /&gt;&amp;nbsp;1 +1.500000 &amp;nbsp; +0.309017 &amp;nbsp; -1.792699&lt;BR /&gt;&amp;nbsp;2 +3.000000 &amp;nbsp; -0.587785 &amp;nbsp; +1.524961&lt;/P&gt;&lt;P&gt;Coefficients are calculated for a polynomial of the form:&lt;/P&gt;&lt;P&gt;Pi(x) = Ai + Bi*(x - x(i)) + Ci*(x - x(i))^2 + Di*(x - x(i))^3&lt;BR /&gt;&amp;nbsp; &amp;nbsp; where x(i) &amp;lt;= x &amp;lt; x(i+1)&lt;/P&gt;&lt;P&gt;Spline coefficients for Y:&lt;BR /&gt;&amp;nbsp;i &amp;nbsp; &amp;nbsp;Ai &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ci &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Di &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;P(x(i)) &amp;nbsp; &amp;nbsp; &amp;nbsp; P(x(i+1)) &amp;nbsp; &amp;nbsp; P'(x(i)) &amp;nbsp; &amp;nbsp; &amp;nbsp;P'(x(i+1))&lt;BR /&gt;&amp;nbsp;0 &amp;nbsp; +0.000000 &amp;nbsp; &amp;nbsp; +1.884956 &amp;nbsp; &amp;nbsp; -0.906119 &amp;nbsp; &amp;nbsp; -0.142118 &amp;nbsp; &amp;nbsp; +0.000000 &amp;nbsp; &amp;nbsp; +0.309017 &amp;nbsp; &amp;nbsp; +1.884956 &amp;nbsp; &amp;nbsp; -1.792699&lt;BR /&gt;&amp;nbsp;1 &amp;nbsp; +0.309017 &amp;nbsp; &amp;nbsp; -1.792699 &amp;nbsp; &amp;nbsp; +0.177889 &amp;nbsp; &amp;nbsp; +0.412444 &amp;nbsp; &amp;nbsp; +0.309017 &amp;nbsp; &amp;nbsp; -0.587785 &amp;nbsp; &amp;nbsp; -1.792699 &amp;nbsp; &amp;nbsp; +1.524961&lt;/P&gt;&lt;P&gt;&amp;nbsp; i &amp;nbsp; &amp;nbsp;Sites &amp;nbsp; &amp;nbsp; &amp;nbsp; Spline value&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Computed &amp;nbsp; &amp;nbsp;Expected&lt;BR /&gt;&amp;nbsp; 0 &amp;nbsp; +1.391320 &amp;nbsp; +0.485773 &amp;nbsp; +0.485773&lt;BR /&gt;&amp;nbsp; 1 &amp;nbsp; +2.915025 &amp;nbsp; -0.702936 &amp;nbsp; -0.702936&lt;BR /&gt;&amp;nbsp; 2 &amp;nbsp; +1.377971 &amp;nbsp; +0.505020 &amp;nbsp; +0.505020&lt;BR /&gt;&amp;nbsp; 3 &amp;nbsp; +1.235440 &amp;nbsp; +0.677742 &amp;nbsp; +0.677742&lt;BR /&gt;&amp;nbsp; 4 &amp;nbsp; +0.228633 &amp;nbsp; +0.381899 &amp;nbsp; +0.381899&lt;BR /&gt;&amp;nbsp; 5 &amp;nbsp; +0.571236 &amp;nbsp; +0.754588 &amp;nbsp; +0.754588&lt;BR /&gt;&amp;nbsp; 6 &amp;nbsp; +2.980018 &amp;nbsp; -0.617449 &amp;nbsp; -0.617449&lt;BR /&gt;&amp;nbsp; 7 &amp;nbsp; +2.721153 &amp;nbsp; -0.863813 &amp;nbsp; -0.863813&lt;BR /&gt;&amp;nbsp; 8 &amp;nbsp; +0.987973 &amp;nbsp; +0.840779 &amp;nbsp; +0.840779&lt;BR /&gt;&amp;nbsp; 9 &amp;nbsp; +1.046622 &amp;nbsp; +0.817321 &amp;nbsp; +0.817321&lt;BR /&gt;&amp;nbsp;10 &amp;nbsp; +0.535681 &amp;nbsp; +0.727875 &amp;nbsp; +0.727875&lt;BR /&gt;&amp;nbsp;11 &amp;nbsp; +2.266246 &amp;nbsp; -0.774634 &amp;nbsp; -0.774634&lt;BR /&gt;&amp;nbsp;12 &amp;nbsp; +0.839760 &amp;nbsp; +0.859756 &amp;nbsp; +0.859756&lt;BR /&gt;&amp;nbsp;13 &amp;nbsp; +1.134457 &amp;nbsp; +0.764735 &amp;nbsp; +0.764735&lt;BR /&gt;&amp;nbsp;14 &amp;nbsp; +1.326985 &amp;nbsp; +0.573649 &amp;nbsp; +0.573649&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Computed Hermite cubic spline coefficients, &amp;nbsp;spline values are correct&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 07:47:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Data-fitting-cubic-spline-failing-with-lt-4-breakpoints/m-p/1151828#M27201</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-01-27T07:47:30Z</dc:date>
    </item>
  </channel>
</rss>

