:). Thank you for your explanation.&nbsp;<br> <br>Yujie<br><br><div><span class="gmail_quote">On 1/14/08, <b class="gmail_sendername">Matthew Knepley</b> &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Jan 14, 2008 11:24 AM, Yujie &lt;<a href="mailto:recrusader@gmail.com">recrusader@gmail.com</a>&gt; wrote:<br>&gt; Dear Matt and Hong:<br>&gt;<br>&gt; Based what you said, it looks like a little difficult to evalute the matrix
<br>&gt; in PETSc, especailly regarding a big dimension. However, when I select<br>&gt; iterative methods, how to select a suitable one based on some evaluation?<br>&gt; Could you give me some advice? thanks a lot.<br><br>
If I knew how to choose a method, I would retire. Anyone who tells you that they<br>can is outright lying. The only alternative is to try them all. That<br>is why we built<br>PETSc.<br><br>&nbsp;&nbsp;Matt<br><br>&gt; Regards,<br>&gt; Yujie
<br>&gt;<br>&gt; On 1/14/08, Hong Zhang &lt;<a href="mailto:hzhang@mcs.anl.gov">hzhang@mcs.anl.gov</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; If you want few selected eigen solutions of sparse matrix,<br>&gt; &gt; you should use sparse eigen solver. Take a look at&#39;
<br>&gt; &gt; slepc (<a href="http://www.grycap.upv.es/slepc/">http://www.grycap.upv.es/slepc/</a>)<br>&gt; &gt; or use slepc interface with arpack.<br>&gt; &gt;<br>&gt; &gt; Hong<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Mon, 14 Jan 2008, Yujie wrote:
<br>&gt; &gt;<br>&gt; &gt; &gt; Thank you for your advice.<br>&gt; &gt; &gt; I have used -ksp_compute_eigenvalues_explicitly to get the eigen values.<br>&gt; &gt; &gt; However, it is very very<br>&gt; &gt; &gt; slow because the dimension of the matrix is about ten thousand.
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Yujie<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 1/14/08, Matthew Knepley &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; You can use
<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;<br>&gt; <a href="http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPComputeEigenvaluesExplicitly.html">http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPComputeEigenvaluesExplicitly.html
</a><br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; with and without a preconditioner. We have not coded the SVD<br>&gt; &gt; &gt;&gt; counterpart, but you can use<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;
<br>&gt; <a href="http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPComputeExplicitOperator.html">http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPComputeExplicitOperator.html
</a><br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; and then call the LAPACK yourself.<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;&nbsp;&nbsp; Matt<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; On Jan 13, 2008 11:23 PM, Yujie &lt;<a href="mailto:recrusader@gmail.com">
recrusader@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt;&gt;&gt; Hi, everyone<br>&gt; &gt; &gt;&gt;&gt;<br>&gt; &gt; &gt;&gt;&gt; I want to select iterative methods by observing the singular values<br>&gt; &gt; &gt;&gt;&gt; decompostion of the matrix. However, I don&#39;t know how to get all the
<br>&gt; &gt; &gt;&gt;&gt; singular values of the matrix in PETSc. I know the command<br>&gt; &gt; &gt;&gt;&gt; &quot;-ksp_monitor_singular_value&quot; may get the max and min singular values<br>&gt; at<br>&gt; &gt; &gt;&gt;&gt; each iteration. How to get the singular values of the matrix I want to
<br>&gt; &gt; &gt;&gt;&gt; solve? In addition, when I use the preconditioned iterative method,<br>&gt; how<br>&gt; &gt; &gt;&gt; to<br>&gt; &gt; &gt;&gt;&gt; get the singular values of the preconditioned iterative operator?
<br>&gt; &gt; &gt;&gt;&gt;<br>&gt; &gt; &gt;&gt;&gt; thanks a lot.<br>&gt; &gt; &gt;&gt;&gt;<br>&gt; &gt; &gt;&gt;&gt; Regards,<br>&gt; &gt; &gt;&gt;&gt; Yujie<br>&gt; &gt; &gt;&gt;&gt;<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;
<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt; --<br>&gt; &gt; &gt;&gt; What most experimenters take for granted before they begin their<br>&gt; &gt; &gt;&gt; experiments is infinitely more interesting than any results to which
<br>&gt; &gt; &gt;&gt; their experiments lead.<br>&gt; &gt; &gt;&gt; -- Norbert Wiener<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;&gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br><br><br><br>--<br>What most experimenters take for granted before they begin their
<br>experiments is infinitely more interesting than any results to which<br>their experiments lead.<br>-- Norbert Wiener<br><br></blockquote></div><br>