<div dir="ltr">Why do you say it only works with Real? You need to configure PETSc to use complex numbers and it should work.<div>This is an advanced method and it does not have any tests, which basically says it is very experimental.</div><div>Don't expect it to be very robust.</div><div><br><div>Mark</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 14, 2022 at 7:19 AM feng wang <<a href="mailto:snailsoar@hotmail.com">snailsoar@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Dear All,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am using GMRES with complex numbers and would like to compute the Ritz values.<span> I am looking at
<a href="https://petsc.org/main/docs/manualpages/KSP/KSPComputeRitz/" target="_blank">KSPComputeRitz</a> and it seems to me that it only works with Petsc compiled with real numbers. Is there an easy alternative way to compute Ritz values for matrices with complex numbers?</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Feng<br>
</div>
</div>
</blockquote></div>