<?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 solving underdetermined system and LAPACKE_dormqr error in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-underdetermined-system-and-LAPACKE-dormqr-error/m-p/780359#M1437</link>
    <description>If you have an undetermined system, with A an m X n matrix, rank(A) = m &amp;lt; n, and you want the minimum norm solution, you can use the LQ factorization. See the MKL Reference Manual under &lt;I&gt;LAPACK Routines: Least Squares and Eigenvalue Problems&lt;/I&gt;. To obtain such a solution in Matlab, you would type in &lt;BR /&gt;&lt;BR /&gt; pinv(A)*b&lt;BR /&gt;&lt;BR /&gt;There is an example, dgelqfx.f, and associated input data dgelqfx.d, in the MKL examples/lapack directory. With this code, but your data above, I get the minimum norm solution as&lt;BR /&gt;&lt;BR /&gt;-0.0540&lt;BR /&gt;-0.0954&lt;BR /&gt;0.2668&lt;BR /&gt;0.1395&lt;BR /&gt;-0.1821&lt;BR /&gt;&lt;BR /&gt;which agrees with the result from the Matlab calculation pinv(A)*b.&lt;BR /&gt;&lt;BR /&gt;If you want help with a problem with calling MKL, at a minimum you have to show the routine invocation and the declarations of the routine arguments. It would be better to post a complete example, if feasible.&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Mar 2012 22:41:48 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2012-03-30T22:41:48Z</dc:date>
    <item>
      <title>solving underdetermined system and LAPACKE_dormqr error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-underdetermined-system-and-LAPACKE-dormqr-error/m-p/780358#M1436</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Trying to do the same as in Matlab (snippet below) but using MKL produces at the point of doing the Q'*b with LAPACKE_dormqr "MKL ERROR: Parameter 10 (ldb) was incorrect on entry to cblas_dtrsm". Is it a valid case trying to solve underdetermined systems with MKL? I know this doesn't make a lot of sense i.e. infinite solutions but Matlab is quite robust in that respect.&lt;BR /&gt;&lt;BR /&gt;I managed to get the append column QR update bit working green unit tests yippiiiii :) and this underdetermined system was a border case test which results in the MKL error above.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Best regards,&lt;BR /&gt;Giovanni&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; A =[9.572000e-01 1.419000e-01 7.922000e-01 3.570000e-02 6.555000e-01; &lt;BR /&gt;4.854000e-01 4.218000e-01 9.595000e-01 8.491000e-01 1.712000e-01; &lt;BR /&gt;8.003000e-01 9.157000e-01 6.557000e-01 9.340000e-01 7.060000e-01]&lt;BR /&gt;&lt;BR /&gt;A =&lt;BR /&gt;&lt;BR /&gt; 0.9572 0.1419 0.7922 0.0357 0.6555&lt;BR /&gt; 0.4854 0.4218 0.9595 0.8491 0.1712&lt;BR /&gt; 0.8003 0.9157 0.6557 0.9340 0.7060&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; b = [0.0318; 0.2769; 0.0462]&lt;BR /&gt;&lt;BR /&gt;b =&lt;BR /&gt;&lt;BR /&gt; 0.0318&lt;BR /&gt; 0.2769&lt;BR /&gt; 0.0462&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; A\\b&lt;BR /&gt;&lt;BR /&gt;ans =&lt;BR /&gt;&lt;BR /&gt; 0&lt;BR /&gt; 0&lt;BR /&gt; 0.2745&lt;BR /&gt; 0.0739&lt;BR /&gt; -0.2872&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Mar 2012 17:46:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-underdetermined-system-and-LAPACKE-dormqr-error/m-p/780358#M1436</guid>
      <dc:creator>Azua_Garcia__Giovann</dc:creator>
      <dc:date>2012-03-30T17:46:11Z</dc:date>
    </item>
    <item>
      <title>solving underdetermined system and LAPACKE_dormqr error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-underdetermined-system-and-LAPACKE-dormqr-error/m-p/780359#M1437</link>
      <description>If you have an undetermined system, with A an m X n matrix, rank(A) = m &amp;lt; n, and you want the minimum norm solution, you can use the LQ factorization. See the MKL Reference Manual under &lt;I&gt;LAPACK Routines: Least Squares and Eigenvalue Problems&lt;/I&gt;. To obtain such a solution in Matlab, you would type in &lt;BR /&gt;&lt;BR /&gt; pinv(A)*b&lt;BR /&gt;&lt;BR /&gt;There is an example, dgelqfx.f, and associated input data dgelqfx.d, in the MKL examples/lapack directory. With this code, but your data above, I get the minimum norm solution as&lt;BR /&gt;&lt;BR /&gt;-0.0540&lt;BR /&gt;-0.0954&lt;BR /&gt;0.2668&lt;BR /&gt;0.1395&lt;BR /&gt;-0.1821&lt;BR /&gt;&lt;BR /&gt;which agrees with the result from the Matlab calculation pinv(A)*b.&lt;BR /&gt;&lt;BR /&gt;If you want help with a problem with calling MKL, at a minimum you have to show the routine invocation and the declarations of the routine arguments. It would be better to post a complete example, if feasible.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Mar 2012 22:41:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-underdetermined-system-and-LAPACKE-dormqr-error/m-p/780359#M1437</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-03-30T22:41:48Z</dc:date>
    </item>
  </channel>
</rss>

