<?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 DGELS results do not seem correct. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947307#M14988</link>
    <description>&lt;P&gt;When I call DGELS using the following data: double dA[] = { 1,4,1,5,1,6,1,7,1,8,1,9,1,10,1,11,1,12,1,13,1,14 };&lt;BR /&gt;double dB[] = {3.29907758366425,4.46748916656078,19.4376447934279,1.33605625551027,5.63502536637876,5.81066320575566,10.7498837262887,18.834615880912,18.9891064366877,16.2408547103099,5.6606499534616};&lt;BR /&gt;char sMatrixType[] = "N";&lt;BR /&gt;intiArows = 11;&lt;BR /&gt;intiAcols = 2;&lt;BR /&gt;intiBcols = 1;&lt;BR /&gt;double dwork[512];&lt;BR /&gt;intiinfo = 0;&lt;BR /&gt;intiwork = 512;&lt;BR /&gt;&lt;BR /&gt;dgels(sMatrixType, &amp;amp;iArows, &amp;amp;iAcols, &amp;amp;iBcols, dA, &amp;amp;iArows, dB, &amp;amp;iArows, dwork, &amp;amp;iwork, &amp;amp;iinfo); For AX=B,DGELS returns1.5727, 0.7746. However, when I do a Least Squares calculation by hand, I get 2.0509, 0.8878. Should SGELS return a solution w/ error minimized? Please help. Best regards, EP.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2004 10:30:41 GMT</pubDate>
    <dc:creator>cy8z</dc:creator>
    <dc:date>2004-07-23T10:30:41Z</dc:date>
    <item>
      <title>DGELS results do not seem correct.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947307#M14988</link>
      <description>&lt;P&gt;When I call DGELS using the following data: double dA[] = { 1,4,1,5,1,6,1,7,1,8,1,9,1,10,1,11,1,12,1,13,1,14 };&lt;BR /&gt;double dB[] = {3.29907758366425,4.46748916656078,19.4376447934279,1.33605625551027,5.63502536637876,5.81066320575566,10.7498837262887,18.834615880912,18.9891064366877,16.2408547103099,5.6606499534616};&lt;BR /&gt;char sMatrixType[] = "N";&lt;BR /&gt;intiArows = 11;&lt;BR /&gt;intiAcols = 2;&lt;BR /&gt;intiBcols = 1;&lt;BR /&gt;double dwork[512];&lt;BR /&gt;intiinfo = 0;&lt;BR /&gt;intiwork = 512;&lt;BR /&gt;&lt;BR /&gt;dgels(sMatrixType, &amp;amp;iArows, &amp;amp;iAcols, &amp;amp;iBcols, dA, &amp;amp;iArows, dB, &amp;amp;iArows, dwork, &amp;amp;iwork, &amp;amp;iinfo); For AX=B,DGELS returns1.5727, 0.7746. However, when I do a Least Squares calculation by hand, I get 2.0509, 0.8878. Should SGELS return a solution w/ error minimized? Please help. Best regards, EP.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2004 10:30:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947307#M14988</guid>
      <dc:creator>cy8z</dc:creator>
      <dc:date>2004-07-23T10:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: DGELS results do not seem correct.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947308#M14989</link>
      <description>I think your hand calculation is wrong.</description>
      <pubDate>Wed, 25 Aug 2004 01:36:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947308#M14989</guid>
      <dc:creator>lonsunshine</dc:creator>
      <dc:date>2004-08-25T01:36:46Z</dc:date>
    </item>
    <item>
      <title>The solution given by DGELS</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947309#M14990</link>
      <description>&lt;P&gt;The solution given by DGELS is correct. Matlab gives:[bash]A=reshape([1,4,1,5,1,6,1,7,1,8,1,9,1,10,1,11,1,12,1,13,1,14],[11,2]);&lt;/P&gt;
&lt;P&gt;b=[3.29907758366425,4.46748916656078,19.4376447934279,1.33605625551027,5.63502536637876,...&lt;/P&gt;
&lt;P&gt;5.81066320575566,10.7498837262887,18.834615880912,18.9891064366877,16.2408547103099,5.6606499534616]';&lt;/P&gt;
&lt;P&gt;x=A\\b&lt;/P&gt;
&lt;P&gt;x =&lt;/P&gt;
&lt;P&gt;1.5728&lt;BR /&gt; 0.7747&lt;/P&gt;
&lt;P&gt;[/bash]&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 01:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGELS-results-do-not-seem-correct/m-p/947309#M14990</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-08-06T01:26:00Z</dc:date>
    </item>
  </channel>
</rss>

