<?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 Hi Mecej4,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077919#M22644</link>
    <description>&lt;P&gt;Hi Mecej4,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How can I now compute the eigenvectors? I use the subroutine "call rsteqr(d,e,z)" with z as a (n,n) matrix, but the results are not correct.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 11:12:13 GMT</pubDate>
    <dc:creator>BABAK</dc:creator>
    <dc:date>2016-07-14T11:12:13Z</dc:date>
    <item>
      <title>solving eigenvalue problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077916#M22641</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;I am trying to solve the following eigenvalue problem using lapack95:&lt;/P&gt;

&lt;DIV class="syntaxhighlighter  " id="highlighter_848871" style="width: 731.8px; font-size: 13.008px; color: rgb(96, 96, 96);"&gt;
	&lt;DIV class="bar                          show"&gt;
		&lt;DIV class="toolbar"&gt;&lt;A class="item viewSource" href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/633217#viewSource" style="font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; width: 16px; height: 16px;" title="view source"&gt;view source&lt;/A&gt;&lt;A class="item printSource" href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/633217#printSource" style="font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; width: 16px; height: 16px;" title="print"&gt;print&lt;/A&gt;&lt;A class="item about" href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/633217#about" style="font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; width: 16px; height: 16px;" title="?"&gt;&lt;SPAN style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 1em; line-height: 1.1em; color: rgb(96, 96, 96); background-color: rgb(255, 255, 255);"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;
	&lt;/DIV&gt;

	&lt;DIV class="lines" style="width: 2195.4px;"&gt;
		&lt;PRE class="brush:fortran;"&gt;program comp
USE mkl95_lapack
USE mkl95_PRECISION
USE mkl95_BLAS
implicit none
real, dimension(2,2) :: A
real, dimension(1) :: t
real, dimension(2) :: c
A = reshape((/-5., 2., 2., -2./),(/2,2/))
call sytrd(A, t)
call orgtr(A, t)
call rsteqr(c, t, A)
write(*,*) c
end program comp
&lt;/PRE&gt;

		&lt;DIV class="line alt2"&gt;&amp;nbsp;&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;But the results aren't correct. I only can deduce this implementation from the program's help for lapack95. What would be the correct way for doing this implementation?&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 17:58:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077916#M22641</guid>
      <dc:creator>BABAK</dc:creator>
      <dc:date>2016-05-29T17:58:44Z</dc:date>
    </item>
    <item>
      <title>When you use the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077917#M22642</link>
      <description>&lt;P&gt;When you use the "computational" routines in Lapack, you have greater control over the individual phases of the computation, but you also take on the responsibility to understand what each routine does and how to use them in the correct sequence. I do not know what your real objective is (beyond this simple 2 X 2 matrix example), but here is your program, corrected:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program comp
USE lapack95
implicit none
integer i
real, dimension(2,2) :: A
real, dimension(2) :: tau, d
real, dimension(1) :: e
A = reshape((/-5., 2., 2., -2./),(/2,2/))
call sytrd(A, tau)
do i=1,2
	 d(i)=A(i,i)
end do
e(1)=A(1,2)
call rsteqr(d, e)
write(*,*) d
end program comp
&lt;/PRE&gt;

&lt;P&gt;When run, it gives the eigenvalues as -1, -6, which I can check by hand.&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 21:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077917#M22642</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-05-29T21:18:00Z</dc:date>
    </item>
    <item>
      <title>Hi Babak,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077918#M22643</link>
      <description>&lt;P&gt;Hi Babak,&lt;/P&gt;

&lt;P&gt;If you'd like to try lapack driver function to Computes all eigenvalues and eigenvectors of a&amp;nbsp;symmetric or Hermitian matrix&lt;/P&gt;

&lt;P&gt;You may refer to the function list in setion of&amp;nbsp;Symmetric Eigenproblems in mkl manual:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for example, you need eigenvalues only, it's more efficient to call sterf. If T is positive-definite, pteqr can compute small&lt;BR /&gt;
	eigenvalues more accurately than ?steqr.&lt;BR /&gt;
	To solve the problem by a single call, use one of the divide and conquer routines stevd, syevd, spevd, or&lt;BR /&gt;
	sbevd for real symmetric matrices or heevd, hpevd, or hbevd for complex Hermitian matrices.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 01:47:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077918#M22643</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-05-30T01:47:32Z</dc:date>
    </item>
    <item>
      <title>Hi Mecej4, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077919#M22644</link>
      <description>&lt;P&gt;Hi Mecej4,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How can I now compute the eigenvectors? I use the subroutine "call rsteqr(d,e,z)" with z as a (n,n) matrix, but the results are not correct.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 11:12:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/solving-eigenvalue-problem/m-p/1077919#M22644</guid>
      <dc:creator>BABAK</dc:creator>
      <dc:date>2016-07-14T11:12:13Z</dc:date>
    </item>
  </channel>
</rss>

