<?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 Re:Quadratic spline curve construction fails in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1603981#M36181</link>
    <description>&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. Default quadratic splines support only DF_BC_Q_VAL as a boundary condition. That's why it reports an error. It needs to set boundary condition explicitly.&amp;nbsp;Following example will work:&lt;/P&gt;&lt;P&gt;errorCode = dfdeditppspline1d(task, DF_PP_QUADRATIC, DF_PP_DEFAULT, DF_BC_Q_VAL, (/1.0D0/), scoeff = scoeff)&lt;/P&gt;&lt;P&gt;2. Only following boundary conditions are supported for Subbotin: free end and combinations of 1st and 2nd derivatives (left, right). DF_NO_BC&amp;nbsp;is not supported&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Only DF_IC_Q_KNOT internal condition is supported for Subbotin. So, it should be set explicitly in the code. Following example will work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;real(8), parameter :: internal_values(4) = [0D0, (0.0D0 + 8.295D-3) / 2D0, (8.295D-3 + 1.659D-2) / 2D0, 1.659D-2]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;errorCode = dfdeditppspline1d(task, DF_PP_QUADRATIC, DF_PP_SUBBOTIN, IOR(DF_BC_1ST_LEFT_DER, DF_BC_1ST_RIGHT_DER), (/1.0D0,-1.0D0/), DF_IC_Q_KNOT, internal_values, scoeff = scoeff)  &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;--Gennady&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Jun 2024 07:00:04 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2024-06-05T07:00:04Z</dc:date>
    <item>
      <title>Quadratic spline curve construction fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1562940#M35730</link>
      <description>&lt;P&gt;When I try to create a quadratic spline curve, the spline type&amp;nbsp;&lt;SPAN&gt;DF_PP_DEFAULT should be accepted according to the reference&amp;nbsp;help, but is not. It gives error code -1011 (DF_ERROR_BAD_SPLINE_TYPE).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It accepts spline type DF_PP_SUBBOTIN but then&amp;nbsp;the boundary condition type DF_NO_BC&amp;nbsp;should be accepted according to the reference&amp;nbsp;help, but gives error code -1014 (DF_ERROR_BAD_BC_TYPE).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It kind of accepts boundary condition DF_BC_FREE_END but then gives error code -1012 (DF_ERROR_BAD_IC_TYPE). Why is this happening please?&lt;/P&gt;&lt;P&gt;The errors only get raised after the&amp;nbsp;dfdconstruct1d is called and not earlier when calling&amp;nbsp;dfdeditppspline1d where the settings are set. Its odd but not an issue.&lt;/P&gt;&lt;P&gt;Here is test code for the -1012 error:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program Console2
   use MKL_DF
   implicit none
   real(8), allocatable :: scoeff(:)
   real(8), parameter :: x(3) = [0.0D0, 8.295D-3, 1.659D-2]
   real(8), parameter :: y(3) = [6.0D-006, 0.0D0, 6.0D-006]
   integer errorCode, nx
   type(DF_TASK) :: task
   real(8), parameter :: boundary_values(2) = [0D0, 0D0]

   allocate(scoeff(DF_PP_QUADRATIC*(size(x)-1)))
   errorCode = 0
   nx = size(x)
   errorCode = dfdnewtask1d(task, nx, x, DF_NO_HINT, 1, y, DF_NO_HINT)
   if (errorCode /= 0) stop
   errorCode = dfdeditppspline1d(task, DF_PP_QUADRATIC, DF_PP_SUBBOTIN, DF_BC_FREE_END, boundary_values, scoeff = scoeff)
   if (errorCode /= 0) stop
   errorCode = dfdconstruct1d(task, DF_PP_SPLINE, DF_METHOD_STD)
   print *, errorCode
   pause

end program Console2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Using oneAPI MKL 2024.0 on windows&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 18:06:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1562940#M35730</guid>
      <dc:creator>Andrew_Smith</dc:creator>
      <dc:date>2024-01-15T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Quadratic spline curve construction fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1563538#M35735</link>
      <description>&lt;P&gt;It looks like a problem, thanks Andrew.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will investigate this case.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 10:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1563538#M35735</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2024-01-17T10:31:18Z</dc:date>
    </item>
    <item>
      <title>Re:Quadratic spline curve construction fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1603981#M36181</link>
      <description>&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. Default quadratic splines support only DF_BC_Q_VAL as a boundary condition. That's why it reports an error. It needs to set boundary condition explicitly.&amp;nbsp;Following example will work:&lt;/P&gt;&lt;P&gt;errorCode = dfdeditppspline1d(task, DF_PP_QUADRATIC, DF_PP_DEFAULT, DF_BC_Q_VAL, (/1.0D0/), scoeff = scoeff)&lt;/P&gt;&lt;P&gt;2. Only following boundary conditions are supported for Subbotin: free end and combinations of 1st and 2nd derivatives (left, right). DF_NO_BC&amp;nbsp;is not supported&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Only DF_IC_Q_KNOT internal condition is supported for Subbotin. So, it should be set explicitly in the code. Following example will work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;real(8), parameter :: internal_values(4) = [0D0, (0.0D0 + 8.295D-3) / 2D0, (8.295D-3 + 1.659D-2) / 2D0, 1.659D-2]&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;errorCode = dfdeditppspline1d(task, DF_PP_QUADRATIC, DF_PP_SUBBOTIN, IOR(DF_BC_1ST_LEFT_DER, DF_BC_1ST_RIGHT_DER), (/1.0D0,-1.0D0/), DF_IC_Q_KNOT, internal_values, scoeff = scoeff)  &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;--Gennady&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2024 07:00:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Quadratic-spline-curve-construction-fails/m-p/1603981#M36181</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2024-06-05T07:00:04Z</dc:date>
    </item>
  </channel>
</rss>

