<?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 error in  LAPACKE_dgesvd Example row major in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-LAPACKE-dgesvd-Example-row-major/m-p/1157011#M27648</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
	I wanted to share an error i found in the example for LAPACKE_dgesvd example for row major. &lt;A href="https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dgesvd_row.c.htm" target="_blank"&gt;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dgesvd_row.c.htm&lt;/A&gt;&lt;BR /&gt;
	in the function:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;print_matrix( "Left singular vectors (stored columnwise)", m, n, u, ldu );&lt;/PRE&gt;

&lt;P&gt;&lt;FONT style="font-family: monospace;" face="monospace"&gt;it will print the left singular matrix as mxn while its a mxm. The matrix contain correct data but the print_matrix function gets it column from column of the original matrix. so it should be &lt;/FONT&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;print_matrix( "Left singular vectors (stored columnwise)", m, m, u, ldu );

also note the comment where it says "Example Program Results." should also be changed for the left singular vectors:
&amp;nbsp;Left singular vectors (stored columnwise)
&amp;nbsp; -0.59&amp;nbsp;&amp;nbsp; 0.26&amp;nbsp;&amp;nbsp; 0.36&amp;nbsp;&amp;nbsp; 0.31&amp;nbsp;&amp;nbsp; 0.23&amp;nbsp;&amp;nbsp; 0.55
&amp;nbsp; -0.40&amp;nbsp;&amp;nbsp; 0.24&amp;nbsp; -0.22&amp;nbsp; -0.75&amp;nbsp; -0.36&amp;nbsp;&amp;nbsp; 0.18
&amp;nbsp; -0.03&amp;nbsp; -0.60&amp;nbsp; -0.45&amp;nbsp;&amp;nbsp; 0.23&amp;nbsp; -0.31&amp;nbsp;&amp;nbsp; 0.54
&amp;nbsp; -0.43&amp;nbsp;&amp;nbsp; 0.24&amp;nbsp; -0.69&amp;nbsp;&amp;nbsp; 0.33&amp;nbsp;&amp;nbsp; 0.16&amp;nbsp; -0.39
&amp;nbsp; -0.47&amp;nbsp; -0.35&amp;nbsp;&amp;nbsp; 0.39&amp;nbsp;&amp;nbsp; 0.16&amp;nbsp; -0.52&amp;nbsp; -0.46
&amp;nbsp;&amp;nbsp; 0.29&amp;nbsp;&amp;nbsp; 0.58&amp;nbsp; -0.02&amp;nbsp;&amp;nbsp; 0.38&amp;nbsp; -0.65&amp;nbsp;&amp;nbsp; 0.11

&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Jul 2018 19:49:15 GMT</pubDate>
    <dc:creator>Petrus_Ishak</dc:creator>
    <dc:date>2018-07-16T19:49:15Z</dc:date>
    <item>
      <title>error in  LAPACKE_dgesvd Example row major</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-LAPACKE-dgesvd-Example-row-major/m-p/1157011#M27648</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
	I wanted to share an error i found in the example for LAPACKE_dgesvd example for row major. &lt;A href="https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dgesvd_row.c.htm" target="_blank"&gt;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_dgesvd_row.c.htm&lt;/A&gt;&lt;BR /&gt;
	in the function:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;print_matrix( "Left singular vectors (stored columnwise)", m, n, u, ldu );&lt;/PRE&gt;

&lt;P&gt;&lt;FONT style="font-family: monospace;" face="monospace"&gt;it will print the left singular matrix as mxn while its a mxm. The matrix contain correct data but the print_matrix function gets it column from column of the original matrix. so it should be &lt;/FONT&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;print_matrix( "Left singular vectors (stored columnwise)", m, m, u, ldu );

also note the comment where it says "Example Program Results." should also be changed for the left singular vectors:
&amp;nbsp;Left singular vectors (stored columnwise)
&amp;nbsp; -0.59&amp;nbsp;&amp;nbsp; 0.26&amp;nbsp;&amp;nbsp; 0.36&amp;nbsp;&amp;nbsp; 0.31&amp;nbsp;&amp;nbsp; 0.23&amp;nbsp;&amp;nbsp; 0.55
&amp;nbsp; -0.40&amp;nbsp;&amp;nbsp; 0.24&amp;nbsp; -0.22&amp;nbsp; -0.75&amp;nbsp; -0.36&amp;nbsp;&amp;nbsp; 0.18
&amp;nbsp; -0.03&amp;nbsp; -0.60&amp;nbsp; -0.45&amp;nbsp;&amp;nbsp; 0.23&amp;nbsp; -0.31&amp;nbsp;&amp;nbsp; 0.54
&amp;nbsp; -0.43&amp;nbsp;&amp;nbsp; 0.24&amp;nbsp; -0.69&amp;nbsp;&amp;nbsp; 0.33&amp;nbsp;&amp;nbsp; 0.16&amp;nbsp; -0.39
&amp;nbsp; -0.47&amp;nbsp; -0.35&amp;nbsp;&amp;nbsp; 0.39&amp;nbsp;&amp;nbsp; 0.16&amp;nbsp; -0.52&amp;nbsp; -0.46
&amp;nbsp;&amp;nbsp; 0.29&amp;nbsp;&amp;nbsp; 0.58&amp;nbsp; -0.02&amp;nbsp;&amp;nbsp; 0.38&amp;nbsp; -0.65&amp;nbsp;&amp;nbsp; 0.11

&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2018 19:49:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-LAPACKE-dgesvd-Example-row-major/m-p/1157011#M27648</guid>
      <dc:creator>Petrus_Ishak</dc:creator>
      <dc:date>2018-07-16T19:49:15Z</dc:date>
    </item>
    <item>
      <title>Thanks Ishak for this report.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-LAPACKE-dgesvd-Example-row-major/m-p/1157012#M27649</link>
      <description>&lt;P&gt;Thanks Ishak for this report. We will check and fix if the case will be reproduced on our side.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 02:33:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/error-in-LAPACKE-dgesvd-Example-row-major/m-p/1157012#M27649</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-07-17T02:33:40Z</dc:date>
    </item>
  </channel>
</rss>

