On Mon, Sep 5, 2011 at 4:08 PM, Kristen Eisenberg <span dir="ltr">&lt;<a href="mailto:kristen.eisenberg@yahoo.com">kristen.eisenberg@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div>[petsc-users] SLEPc generalized eigenvalue problem question?</div><div><br></div><div>I create 2 matrices using:<br>
<br>MatCreateSeqDense(PETSC_COMM_SELF, n, n, Ka, &amp;A);<br>MatCreateSeqDense(PETSC_COMM_SELF, n, n, Kb, &amp;B);<br>These matrices are 99% zeros ( 16,016,004 entries and 18660 non-zeros).<br> They are symmetric and real.  Their tri-diagonal elements are non-zero plus<br>
a few other entries.<br></div></div></div></blockquote><div><br></div><div>You would get better performance and use less memory if you made these matrices</div><div>of type MATAIJ.</div><div><br></div><div>   Matt</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt">
<div>I tried to use ex7 for the generalized eigenvalue problem:<br><br>./ex7.exe -f1 k.dat -f2 m.dat -eps_gen_hermitian -eps_smallest_real &gt; x.out<br>2&gt;&amp;1<br><br>without specifying an EPS and get:<br><br>Generalized eigenproblem stored in file.<br>
<br>Reading REAL matrices from binary files...<br>Number of iterations of the method: 500<br>Number of linear iterations of the method: 4009<br>Solution method:
 krylovschur<br><br>Number of requested eigenvalues: 1<br>Stopping condition: tol=1e-07, maxit=500<br>Number of converged approximate eigenpairs: 0<br><br>Is krylovschur inappropriate for this problem or have I set up the problem<br>
incorrectly by using   MatCreateSeqDense(...) to create the matrix input<br>files in PETSc binary form?</div><div><br></div><font color="#888888"><div>


<div class="MsoNormal"><span lang="DE">Kristen Eisenberg</span></div>

<div class="MsoNormal"><span lang="DE">Billige Flüge
Marketing GmbH</span></div>

<div class="MsoNormal"><span lang="DE">Emanuelstr. 3,</span></div>

<div class="MsoNormal"><span lang="DE">10317 Berlin</span></div>

<div class="MsoNormal"><span lang="DE">Deutschland</span></div>

<div class="MsoNormal"><span lang="DE">Telefon: +49 (33)
5310967</span></div>

<div class="MsoNormal"><span lang="DE">Email:
utebachmeier at <a href="http://gmail.com" target="_blank">gmail.com</a></span></div>

<div class="MsoNormal"><span lang="DE">Site:
<a href="http://flug.airego.de" target="_blank">http://flug.airego.de</a> - Billige Flüge vergleichen</span></div></div></font></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>