<?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: MKL problems running vslsCorrExec1D, cross correlation. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972342#M16810</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Here is the somewhat longer, but more helpful response from the developer. &lt;NAMESPACE prefix="o" ns="urn:schemas-microsoft-com:office:office"&gt;&lt;P&gt;&lt;/P&gt;&lt;/NAMESPACE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Mathematically, the operations of convolution and correlation assume different enumerations for elements of the output array. For convolution, the output is enumerated as w&lt;SUB&gt;0&lt;/SUB&gt;, , w&lt;SUB&gt;(Nh-1)+(Nx-1)&lt;/SUB&gt;; and for correlation, the enumeration is w&lt;SUB&gt;-(Nh-1)&lt;/SUB&gt;, , w&lt;SUB&gt;Nx-1&lt;/SUB&gt;.&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;If the parameter iy0 is assigned to 0, for convolution this implies that the output array z1[] is fulfilled starting from the 0th element of the mathematical enumeration, i.e.:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt 35.4pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;z1[0]=w&lt;SUB&gt;0&lt;/SUB&gt;, , z1[Nz-1]=w&lt;SUB&gt;Nz-1&lt;/SUB&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;For correlation, the parameter iy0 is usually assigned to (Nh-1); this again implies that z1[] is fulfilled starting from the beginning of the mathematical sequence:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt 35.4pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;z1[0]=w&lt;SUB&gt;-(Nh-1)&lt;/SUB&gt;, , z1[Nz-1]=w&lt;SUB&gt;Nx-1&lt;/SUB&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;The user could just omit the calls to the SetStart() functions to let the software adjusting the iy0 parameter automatically. By default, iy0 would be assigned to 0 for convolution, and to (Nh-1) for correlation.&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Anyway, if iy0 is explicitly assigned by user and iy0&amp;gt;-(Nh-1), for the case of correlation this implies that z1[] must start from the middle of the mathematical output:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt 35.4pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT s="" ize="3"&gt;&lt;FONT face="Times New Roman"&gt;z1[0]=w&lt;SUB&gt;0&lt;/SUB&gt;, , z[Nx-1]=w&lt;SUB&gt;Nx-1&lt;/SUB&gt;, &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Unfortunately, mathematical results are not defined for z1[Nx], , z1[Nz-1] in this case; and the software signals about this problem  that it cannot calculate z1&lt;I&gt; for i&amp;gt;Nx-1.&lt;P&gt;&lt;/P&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;To fix this issue, the code snippet could be changed as shown in the attached file. Here, the value of iy0 is reassigned to (Nh-1) before calculating correlation.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Or, if the user intentionally assumed to fulfill the correlation output as z1[0]=w&lt;SUB&gt;0&lt;/SUB&gt;, ; then the value of Nz should be reduced to Nx or to some less value in order to ensure that mathematical results would be defined for all z1&lt;I&gt; up to i=Nz-1.&lt;P&gt;&lt;/P&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2005 20:35:29 GMT</pubDate>
    <dc:creator>Todd_R_Intel</dc:creator>
    <dc:date>2005-10-13T20:35:29Z</dc:date>
    <item>
      <title>MKL problems running vslsCorrExec1D, cross correlation.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972340#M16808</link>
      <description>&lt;DIV&gt;I am having problems running the vslsCorrExec1D routine in MKL 8.0.&lt;/DIV&gt;
&lt;DIV&gt;I am able to run the corresponding convolution vslsConvExec1D, but when I'm converting all "conv" to "corr" the function vslsCorrExec1D return status=-2911. Any suggestions? &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;A snippet of code follows below:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt; // Test Crosscorrelation&lt;/DIV&gt;
&lt;DIV&gt; int const Nx = 4;&lt;BR /&gt; int const Nh = 4;&lt;BR /&gt; int const Nz = (2*Nx-1);&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt; int iy0 = 0;&lt;/DIV&gt;
&lt;DIV&gt; float a1[Nx];&lt;BR /&gt; float h1[Nh];&lt;BR /&gt; float z1[Nz];&lt;/DIV&gt;
&lt;DIV&gt; for(int i=0;i&lt;NX&gt; a1&lt;I&gt; = i;&lt;BR /&gt; h1&lt;I&gt; = i;&lt;BR /&gt; }&lt;/I&gt;&lt;/I&gt;&lt;/NX&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt; // Convolution&lt;BR /&gt; // This is working&lt;BR /&gt; VSLConvTaskPtr task;&lt;BR /&gt; status = vslsConvNewTask1D(&amp;amp;task,VSL_CONV_MODE_AUTO,Nh,Nx,Nz);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; status = vslConvSetStart(task,&amp;amp;iy0);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; status = vslsConvExec1D(task,h1,1,a1,1,z1,1);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; status = vslConvDeleteTask(&amp;amp;task);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;/DIV&gt;
&lt;DIV&gt; for(int i=0;i&lt;NZ&gt; std::cerr &amp;lt;&amp;lt; z1&lt;I&gt; &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; }&lt;/I&gt;&lt;/NZ&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt; // Cross Correlation&lt;BR /&gt; // Not working&lt;BR /&gt; VSLCorrTaskPtr task2;&lt;BR /&gt; status = vslsCorrNewTask1D(&amp;amp;task2,VSL_CORR_MODE_AUTO,Nh,Nx,Nz);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; status = vslCorrSetStart(task2,&amp;amp;iy0);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; status = vslsCorrExec1D(task2,h1,1,a1,1,z1,1);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; status = vslCorrDeleteTask(&amp;amp;task2);&lt;BR /&gt; std::cerr &amp;lt;&amp;lt; "status= " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;/DIV&gt;
&lt;DIV&gt; for(int i=0;i&lt;NZ&gt; std::cerr &amp;lt;&amp;lt; z1&lt;I&gt; &amp;lt;&amp;lt; std::endl;&lt;BR /&gt; }&lt;BR /&gt;&lt;/I&gt;&lt;/NZ&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2005 21:37:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972340#M16808</guid>
      <dc:creator>eiot1</dc:creator>
      <dc:date>2005-10-04T21:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: MKL problems running vslsCorrExec1D, cross correlation.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972341#M16809</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Short answer: The problem is in the way you are using the iy0 parameter. To fix this issue, the value of iy0 should be reassigned to (Nh-1) before calculating correlation.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Todd&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by trosenqu on &lt;SPAN class="date_text"&gt;10-13-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;06:26 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2005 20:25:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972341#M16809</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2005-10-13T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: MKL problems running vslsCorrExec1D, cross correlation.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972342#M16810</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Here is the somewhat longer, but more helpful response from the developer. &lt;NAMESPACE prefix="o" ns="urn:schemas-microsoft-com:office:office"&gt;&lt;P&gt;&lt;/P&gt;&lt;/NAMESPACE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Mathematically, the operations of convolution and correlation assume different enumerations for elements of the output array. For convolution, the output is enumerated as w&lt;SUB&gt;0&lt;/SUB&gt;, , w&lt;SUB&gt;(Nh-1)+(Nx-1)&lt;/SUB&gt;; and for correlation, the enumeration is w&lt;SUB&gt;-(Nh-1)&lt;/SUB&gt;, , w&lt;SUB&gt;Nx-1&lt;/SUB&gt;.&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;If the parameter iy0 is assigned to 0, for convolution this implies that the output array z1[] is fulfilled starting from the 0th element of the mathematical enumeration, i.e.:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt 35.4pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;z1[0]=w&lt;SUB&gt;0&lt;/SUB&gt;, , z1[Nz-1]=w&lt;SUB&gt;Nz-1&lt;/SUB&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;For correlation, the parameter iy0 is usually assigned to (Nh-1); this again implies that z1[] is fulfilled starting from the beginning of the mathematical sequence:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt 35.4pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;z1[0]=w&lt;SUB&gt;-(Nh-1)&lt;/SUB&gt;, , z1[Nz-1]=w&lt;SUB&gt;Nx-1&lt;/SUB&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;The user could just omit the calls to the SetStart() functions to let the software adjusting the iy0 parameter automatically. By default, iy0 would be assigned to 0 for convolution, and to (Nh-1) for correlation.&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Anyway, if iy0 is explicitly assigned by user and iy0&amp;gt;-(Nh-1), for the case of correlation this implies that z1[] must start from the middle of the mathematical output:&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt 35.4pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT s="" ize="3"&gt;&lt;FONT face="Times New Roman"&gt;z1[0]=w&lt;SUB&gt;0&lt;/SUB&gt;, , z[Nx-1]=w&lt;SUB&gt;Nx-1&lt;/SUB&gt;, &lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Unfortunately, mathematical results are not defined for z1[Nx], , z1[Nz-1] in this case; and the software signals about this problem  that it cannot calculate z1&lt;I&gt; for i&amp;gt;Nx-1.&lt;P&gt;&lt;/P&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;To fix this issue, the code snippet could be changed as shown in the attached file. Here, the value of iy0 is reassigned to (Nh-1) before calculating correlation.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-ansi-language: EN-US"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;Or, if the user intentionally assumed to fulfill the correlation output as z1[0]=w&lt;SUB&gt;0&lt;/SUB&gt;, ; then the value of Nz should be reduced to Nx or to some less value in order to ensure that mathematical results would be defined for all z1&lt;I&gt; up to i=Nz-1.&lt;P&gt;&lt;/P&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2005 20:35:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972342#M16810</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2005-10-13T20:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: MKL problems running vslsCorrExec1D, cross correlation.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972343#M16811</link>
      <description>Thanks!! This works perfectly!!
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Oct 2005 14:30:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-problems-running-vslsCorrExec1D-cross-correlation/m-p/972343#M16811</guid>
      <dc:creator>eiot1</dc:creator>
      <dc:date>2005-10-17T14:30:24Z</dc:date>
    </item>
  </channel>
</rss>

