<?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 Problem in using dgeev in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-using-dgeev/m-p/766376#M278</link>
    <description>I found the solution. It was because of wrong integer size.</description>
    <pubDate>Thu, 26 Apr 2012 06:59:27 GMT</pubDate>
    <dc:creator>Ahmad_Falahatpisheh</dc:creator>
    <dc:date>2012-04-26T06:59:27Z</dc:date>
    <item>
      <title>Problem in using dgeev</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-using-dgeev/m-p/766375#M277</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;I am trying to calculate only the eigenvalues of a general 33 matrix. I don't need the eigenvectors. Please find below my code.&lt;BR /&gt;&lt;BR /&gt;[cpp]#define LAPACK_N        3
#define LAPACK_LDA    LAPACK_N
#define LAPACK_LDVL  1
#define LAPACK_LDVR  1

// Locals.
int n = LAPACK_N;
int lda = LAPACK_LDA, ldvl = LAPACK_LDVL, ldvr = LAPACK_LDVR;
int info, lwork;
double wkopt;
double* work;
double a[ LAPACK_LDA*LAPACK_N ] = {
                                    10.01,    3.98,    3.30,
                                    0.86,    1.53,    8.26,
                                    4.60,    7.04,    3.89
                                    };
// Local arrays.
double wr[LAPACK_N], wi[LAPACK_N];
double vl[LAPACK_LDVL*LAPACK_N], vr[LAPACK_LDVR*LAPACK_N];

// Query and allocate the optimal workspace.
lwork = -1;
dgeev( "N", "N", &amp;amp;n, a, &amp;amp;lda, wr, wi, vl, &amp;amp;ldvl, vr, &amp;amp;ldvr, &amp;amp;wkopt, &amp;amp;lwork, &amp;amp;info );
lwork = (int) wkopt;
work = (double*) malloc( lwork*sizeof(double) );
                    
// Solve eigenproblem.
dgeev( "N", "N", &amp;amp;n, a, &amp;amp;lda, wr, wi, vl, &amp;amp;ldvl, vr, &amp;amp;ldvr, work, &amp;amp;lwork, &amp;amp;info );[/cpp] &lt;BR /&gt;&lt;BR /&gt;When the compiler reaches the first dgetev function on line 23, I get the following error:&lt;BR /&gt;&lt;I&gt;Unhandled exception at 0x000000013f14a35f in mycode.exe: 0xC0000005: Access violation reading location 0x0000000800169eb0&lt;/I&gt;. Where the address of a is 0x0000000000169eb0. I am using Intel MKL 10.3 in Visual Studio 2008 in Windows 7 64bit.&lt;BR /&gt;&lt;BR /&gt;I would be thankful if someone could help me.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Apr 2012 22:06:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-using-dgeev/m-p/766375#M277</guid>
      <dc:creator>Ahmad_Falahatpisheh</dc:creator>
      <dc:date>2012-04-25T22:06:43Z</dc:date>
    </item>
    <item>
      <title>Problem in using dgeev</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-using-dgeev/m-p/766376#M278</link>
      <description>I found the solution. It was because of wrong integer size.</description>
      <pubDate>Thu, 26 Apr 2012 06:59:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-using-dgeev/m-p/766376#M278</guid>
      <dc:creator>Ahmad_Falahatpisheh</dc:creator>
      <dc:date>2012-04-26T06:59:27Z</dc:date>
    </item>
  </channel>
</rss>

