<?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: Full matrix storage in MKL LAPACK in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861032#M7512</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
Thank you!&lt;BR /&gt;</description>
    <pubDate>Mon, 28 Sep 2009 10:12:10 GMT</pubDate>
    <dc:creator>topol555</dc:creator>
    <dc:date>2009-09-28T10:12:10Z</dc:date>
    <item>
      <title>Full matrix storage in MKL LAPACK</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861029#M7509</link>
      <description>Please, help me. I'm using &lt;B&gt;dgels&lt;/B&gt; function (declared in mkl_lapack.h) from MKL LAPACK package in my program on C++. I can't understand how should I store my full matrix in one-dimensional array - in column-major or row-major format.&lt;BR /&gt;&lt;BR /&gt;For example, if matrix A=&lt;BR /&gt;(1.0 2.0)&lt;BR /&gt;(3.0 4.0)&lt;BR /&gt;(5.0 6.0)&lt;BR /&gt;then the array should be&lt;BR /&gt;1.1) [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] (row-major format) or&lt;BR /&gt;1.2) [1.0, 3.0, 5.0, 2.0, 4.0, 6.0] (column-major format).&lt;BR /&gt;&lt;BR /&gt;And if Ax=b, where b is a vector (7.0, 8.0, 9.0), then b will be overwritten by the solution vector like&lt;BR /&gt;2.1) [x1, x2, 9.0] or&lt;BR /&gt;2.2) [x1, 8.0, x2].&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 26 Sep 2009 09:46:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861029#M7509</guid>
      <dc:creator>topol555</dc:creator>
      <dc:date>2009-09-26T09:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Full matrix storage in MKL LAPACK</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861030#M7510</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
In case you didn't find answers in MKL docs,&lt;BR /&gt;&lt;A href="http://www.netlib.org/clapack/readme"&gt;http://www.netlib.org/clapack/readme&lt;/A&gt;&lt;BR /&gt;describes the storage from the C point of view (column-major)&lt;BR /&gt;I think you would have to specify more about your usage to understand the second part of your question. However, in the cases where the result doesn't use all the entries of b, it is the leading entries which are over-written.&lt;BR /&gt;</description>
      <pubDate>Sat, 26 Sep 2009 16:56:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861030#M7510</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-26T16:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Full matrix storage in MKL LAPACK</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861031#M7511</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/444861"&gt;topol555&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Please, help me. I'm using &lt;STRONG&gt;dgels&lt;/STRONG&gt; function (declared in mkl_lapack.h) from MKL LAPACK package in my program on C++. I can't understand how should I store my full matrix in one-dimensional array - in column-major or row-major format.&lt;BR /&gt;&lt;BR /&gt;For example, if matrix A=&lt;BR /&gt;(1.0 2.0)&lt;BR /&gt;(3.0 4.0)&lt;BR /&gt;(5.0 6.0)&lt;BR /&gt;then the array should be&lt;BR /&gt;1.1) [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] (row-major format) or&lt;BR /&gt;1.2) [1.0, 3.0, 5.0, 2.0, 4.0, 6.0] (column-major format).&lt;BR /&gt;&lt;BR /&gt;And if Ax=b, where b is a vector (7.0, 8.0, 9.0), then b will be overwritten by the solution vector like&lt;BR /&gt;2.1) [x1, x2, 9.0] or&lt;BR /&gt;2.2) [x1, 8.0, x2].&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Please look at the following link:&lt;BR /&gt;ttp://software.intel.com/sites/products/documentation/hpc/mkl/lapack/mkl_lapack_examples/index.htm&lt;BR /&gt;&lt;BR /&gt;you can find there the C example of DGELS routine.&lt;BR /&gt;&lt;BR /&gt;/* Solve the equations A*X = B */&lt;BR /&gt;dgels( "No transpose", &amp;amp;m, &amp;amp;n, &amp;amp;nrhs, a, &amp;amp;lda, b, &amp;amp;ldb, work, &amp;amp;lwork, &amp;amp;info );&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Sep 2009 04:58:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861031#M7511</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-28T04:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Full matrix storage in MKL LAPACK</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861032#M7512</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
Thank you!&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Sep 2009 10:12:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Full-matrix-storage-in-MKL-LAPACK/m-p/861032#M7512</guid>
      <dc:creator>topol555</dc:creator>
      <dc:date>2009-09-28T10:12:10Z</dc:date>
    </item>
  </channel>
</rss>

