<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I am using SLEPC example EX7.C, I am using complex binary matrices A and B written from matlab using Petscbinarywrite.m. <br><br></div>I ran the example using "./ex7 -f1 A -f2 B -eps_type krylovschur -st_type sinvert -evecs out.mat -eps_smallest_magnitude"<br>
<br></div>My plotted my eigenvectors using Petscbinaryread and comparing them to MATLAB's eigs command. <br><br></div>It is wrong. It is right only if I use real matrices A and B. <br><br></div>I compiled Petsc for complex scalars. How to get the correct eigenvectors for complex matrices, please note my eigenvalue is right but not my eigenvector. <br>
<br></div>Any help is greatly appreciated! Kindly help me out.<br><br></div>cheers,<br></div>Venkatesh<br></div>Sr. Research Fellow<br><div><div><div><div><div><br><br></div></div></div></div></div></div>