<?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 LAPACK Linear Equation Routines for non square matrix in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACK-Linear-Equation-Routines-for-non-square-matrix/m-p/1167109#M28308</link>
    <description>&lt;P&gt;Hi , I am trying to use LAPACKE function to compute&amp;nbsp;system of linear equations.&lt;/P&gt;&lt;P&gt;I use 2 functions :&lt;/P&gt;&lt;P&gt;LAPACKE_sgetrf ,&amp;nbsp;LAPACKE_sgetrs&lt;/P&gt;&lt;P&gt;Input matrix A is MxN. According to your documentation first I call&amp;nbsp;LAPACKE_sgetrf that support MxN matrix and then I should call&amp;nbsp;LAPACKE_sgetrs. But in&amp;nbsp;LAPACKE_sgetrs description there is only square matrix support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain if there solution for MxN matrix? If yes how to resolve?&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my Code:&lt;/P&gt;&lt;P&gt;Matrix _A is 110=rows 4=cols (x,y,z,w)&amp;nbsp;&lt;/P&gt;&lt;P&gt;B is -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lapack_int info = LAPACKE_sgetrf(LAPACK_ROW_MAJOR, A_.rows, A_.cols, (float*)A_.data, A_.cols, &amp;amp;ipiv[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; info = LAPACKE_sgetrs(LAPACK_ROW_MAJOR, 'N', A_.cols, 1, (float*)A_.data, A_.cols, &amp;amp;ipiv[0], (float*)&amp;amp;b[0], 1);&lt;/P&gt;&lt;P&gt;Values return from&amp;nbsp;LAPACKE_sgetrs are garbage.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Sep 2019 08:48:10 GMT</pubDate>
    <dc:creator>Dimitry_N_Intel</dc:creator>
    <dc:date>2019-09-22T08:48:10Z</dc:date>
    <item>
      <title>LAPACK Linear Equation Routines for non square matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACK-Linear-Equation-Routines-for-non-square-matrix/m-p/1167109#M28308</link>
      <description>&lt;P&gt;Hi , I am trying to use LAPACKE function to compute&amp;nbsp;system of linear equations.&lt;/P&gt;&lt;P&gt;I use 2 functions :&lt;/P&gt;&lt;P&gt;LAPACKE_sgetrf ,&amp;nbsp;LAPACKE_sgetrs&lt;/P&gt;&lt;P&gt;Input matrix A is MxN. According to your documentation first I call&amp;nbsp;LAPACKE_sgetrf that support MxN matrix and then I should call&amp;nbsp;LAPACKE_sgetrs. But in&amp;nbsp;LAPACKE_sgetrs description there is only square matrix support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain if there solution for MxN matrix? If yes how to resolve?&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my Code:&lt;/P&gt;&lt;P&gt;Matrix _A is 110=rows 4=cols (x,y,z,w)&amp;nbsp;&lt;/P&gt;&lt;P&gt;B is -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lapack_int info = LAPACKE_sgetrf(LAPACK_ROW_MAJOR, A_.rows, A_.cols, (float*)A_.data, A_.cols, &amp;amp;ipiv[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; info = LAPACKE_sgetrs(LAPACK_ROW_MAJOR, 'N', A_.cols, 1, (float*)A_.data, A_.cols, &amp;amp;ipiv[0], (float*)&amp;amp;b[0], 1);&lt;/P&gt;&lt;P&gt;Values return from&amp;nbsp;LAPACKE_sgetrs are garbage.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 08:48:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACK-Linear-Equation-Routines-for-non-square-matrix/m-p/1167109#M28308</guid>
      <dc:creator>Dimitry_N_Intel</dc:creator>
      <dc:date>2019-09-22T08:48:10Z</dc:date>
    </item>
  </channel>
</rss>

