<?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 zgesvd difference from MATLAB in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zgesvd-difference-from-MATLAB/m-p/892444#M10533</link>
    <description>I using zgesvd on a 16x16 complex matrix.&lt;BR /&gt;&lt;BR /&gt;#define N = 16&lt;BR /&gt;MKL_Complex16 vt[N*N];&lt;BR /&gt;char jobu = 'A';&lt;BR /&gt;char jobvt = 'A';&lt;BR /&gt;int m = N;&lt;BR /&gt;int n = N;&lt;BR /&gt;int ldR = N;&lt;BR /&gt;double s&lt;N&gt;;&lt;BR /&gt; MKL_Complex16 u[N*N];&lt;BR /&gt;int ldu = N;&lt;BR /&gt; MKL_Complex16 vt[N*N];&lt;BR /&gt;int ldvt = N;&lt;BR /&gt;int lwork = 2048;&lt;BR /&gt;MKL_Complex16 *work;&lt;BR /&gt;work = new MKL_Complex16[2048];&lt;BR /&gt;MKL_Complex16 R[N*N];&lt;BR /&gt;double rwork[100];&lt;BR /&gt;int iwork[100];&lt;BR /&gt;int info;&lt;BR /&gt;&lt;BR /&gt;zgesvd(&amp;amp;jobu, &amp;amp;jobvt, &amp;amp;m, &amp;amp;n, R, &amp;amp;ldR, s, u, &amp;amp;ldu, vt, &amp;amp;ldvt, work, &amp;amp;lwork, rwork, &amp;amp;info);&lt;BR /&gt;&lt;BR /&gt;When I compare the result to Matlab the 2 columns of vt are the same as the Matlab output and 2 rows of u are the same as the Matlab output. Also, I only get the first 2 eigenvalues correct from Intel MKL. &lt;BR /&gt;&lt;BR /&gt;Am I calling zgesvd correctly?&lt;BR /&gt;&lt;BR /&gt;I am using C++ in Visual Studio 2005.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pavel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/N&gt;</description>
    <pubDate>Tue, 13 Nov 2007 18:10:45 GMT</pubDate>
    <dc:creator>haintz</dc:creator>
    <dc:date>2007-11-13T18:10:45Z</dc:date>
    <item>
      <title>zgesvd difference from MATLAB</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zgesvd-difference-from-MATLAB/m-p/892444#M10533</link>
      <description>I using zgesvd on a 16x16 complex matrix.&lt;BR /&gt;&lt;BR /&gt;#define N = 16&lt;BR /&gt;MKL_Complex16 vt[N*N];&lt;BR /&gt;char jobu = 'A';&lt;BR /&gt;char jobvt = 'A';&lt;BR /&gt;int m = N;&lt;BR /&gt;int n = N;&lt;BR /&gt;int ldR = N;&lt;BR /&gt;double s&lt;N&gt;;&lt;BR /&gt; MKL_Complex16 u[N*N];&lt;BR /&gt;int ldu = N;&lt;BR /&gt; MKL_Complex16 vt[N*N];&lt;BR /&gt;int ldvt = N;&lt;BR /&gt;int lwork = 2048;&lt;BR /&gt;MKL_Complex16 *work;&lt;BR /&gt;work = new MKL_Complex16[2048];&lt;BR /&gt;MKL_Complex16 R[N*N];&lt;BR /&gt;double rwork[100];&lt;BR /&gt;int iwork[100];&lt;BR /&gt;int info;&lt;BR /&gt;&lt;BR /&gt;zgesvd(&amp;amp;jobu, &amp;amp;jobvt, &amp;amp;m, &amp;amp;n, R, &amp;amp;ldR, s, u, &amp;amp;ldu, vt, &amp;amp;ldvt, work, &amp;amp;lwork, rwork, &amp;amp;info);&lt;BR /&gt;&lt;BR /&gt;When I compare the result to Matlab the 2 columns of vt are the same as the Matlab output and 2 rows of u are the same as the Matlab output. Also, I only get the first 2 eigenvalues correct from Intel MKL. &lt;BR /&gt;&lt;BR /&gt;Am I calling zgesvd correctly?&lt;BR /&gt;&lt;BR /&gt;I am using C++ in Visual Studio 2005.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pavel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/N&gt;</description>
      <pubDate>Tue, 13 Nov 2007 18:10:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/zgesvd-difference-from-MATLAB/m-p/892444#M10533</guid>
      <dc:creator>haintz</dc:creator>
      <dc:date>2007-11-13T18:10:45Z</dc:date>
    </item>
  </channel>
</rss>

