<?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 What is the value of N in in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/unexpected-outputs-of-lapack-cheev/m-p/1107975#M24223</link>
    <description>&lt;P&gt;What is the value of N in your code? The matrix 'a' doesn't look to have a square shape. I believe this is the problem. Take a look at the lapacke_cheev_row.c example in MKL, please. It can be found in the 'examples' folder in your MKL installation.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 19:13:45 GMT</pubDate>
    <dc:creator>Zhang_Z_Intel</dc:creator>
    <dc:date>2016-04-27T19:13:45Z</dc:date>
    <item>
      <title>unexpected outputs of lapack_cheev</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/unexpected-outputs-of-lapack-cheev/m-p/1107974#M24222</link>
      <description>&lt;P&gt;Hello Guys,.&lt;/P&gt;

&lt;P&gt;I am using the LAPACKE_cheev now from MKL. I have written a piece of code with this API. However, its outputs are out of my expectation. The code is attached.&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;	lapack_complex_float *a = (lapack_complex_float*)malloc(sizeof(lapack_complex_float)*N*N);
	a[0].imag = 0;
	a[0].real = 0;
	a[1].imag = 1;
	a[1].real = 0;
	a[2].imag = 0;
	a[2].real = 1;
	a[3].imag = 0;
	a[3].real = 0;
	a[4].imag = 0;
	a[4].real = 0;
	a[5].imag = 0;
	a[5].real = 0;

	int matrix_order = LAPACK_ROW_MAJOR; //LAPACK_COL_MAJOR
	const char jobz = 'N';
	const char uplo = 'U';
	lapack_int n = N;
	lapack_int lda = N;
	float *w = (float*)malloc(sizeof(float)*N);

LAPACKE_cheev(matrix_order, jobz, uplo, n, a, lda, w);
	
	for (int i = 0; i &amp;lt; N; i++)
	{
		cout &amp;lt;&amp;lt; w&lt;I&gt; &amp;lt;&amp;lt; endl;
	}
&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;I expect the outputs as follows:&lt;/P&gt;

&lt;P&gt;[-1.414, 0, 1.414]&lt;/P&gt;

&lt;P&gt;However, the outputs from my local machine is as follows:&lt;/P&gt;

&lt;P&gt;[-4.31602e+008,&amp;nbsp;-1,&amp;nbsp;1]&lt;/P&gt;

&lt;P&gt;Could anybody help me with this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 14:22:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/unexpected-outputs-of-lapack-cheev/m-p/1107974#M24222</guid>
      <dc:creator>zhang_j_</dc:creator>
      <dc:date>2016-04-27T14:22:21Z</dc:date>
    </item>
    <item>
      <title>What is the value of N in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/unexpected-outputs-of-lapack-cheev/m-p/1107975#M24223</link>
      <description>&lt;P&gt;What is the value of N in your code? The matrix 'a' doesn't look to have a square shape. I believe this is the problem. Take a look at the lapacke_cheev_row.c example in MKL, please. It can be found in the 'examples' folder in your MKL installation.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 19:13:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/unexpected-outputs-of-lapack-cheev/m-p/1107975#M24223</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2016-04-27T19:13:45Z</dc:date>
    </item>
  </channel>
</rss>

