<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV><BR><BR><BR><BR><BR></DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV>>At 2012-12-02 23:10:51,"Jed Brown" <jedbrown@mcs.anl.gov> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" id="isReplyContent">>The test for symmetry is not implemented for all matrix types. Looking at the code, it seems to only be SeqAIJ, but MatIsTranspose(A,A,...) would also work >for MPIAIJ.
<DIV class="gmail_extra"> </DIV>
<DIV class="gmail_extra"> </DIV>
<DIV class="gmail_extra">I made a test. I get all the elements of the matrix and compare the element A(i,j) with</DIV>
<DIV class="gmail_extra">A(j,i). The result shows that the matrix is symmetric. But the result of MatIsTranspose(A,A,0.0,matsysflg,ierr) </DIV>
<DIV class="gmail_extra">shows that it is unsymmetric(matsysflg=0). I think there is something that I donot know about using the function.</DIV>
<DIV class="gmail_extra"> </DIV>
<DIV class="gmail_extra"> </DIV>
<DIV class="gmail_extra"><BR><BR>
<DIV class="gmail_quote">>>On Sun, Dec 2, 2012 at 8:45 AM, w_ang_temp <SPAN dir="ltr"><<A href="mailto:w_ang_temp@163.com" target="_blank">w_ang_temp@163.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; FONT-SIZE: 14px">
<P>>>Hello,</P>
<P>>> I use MatIsSymmetric to know if the matrix A is symmetric.</P>
<P>>>According to my model, it should be symmetric due to the theory.</P>
<P>>>But I always get the result 'PetscBool *flg = 0', although I </P>
<P>>>set 'tol' a large value(0.001).</P>
<P>>> Because the matrix is of 20000 dimension, I can not output the</P>
<P>>>matrix to the txt. So I want to konw if there is something to be paid attention to</P>
<P>>>about the function 'MatIsSymmetric' in version 3.2. Or do I have some other ways</P>
<P>>>to determine the symmetry.I think symmetry is one of the most important thing</P>
<P>>>in my analysis.</P>
<P>>> Thanks.</P>
<P>>> Jim</P>
<DIV></DIV></DIV><BR><BR><SPAN title="neteasefooter"><SPAN></SPAN></SPAN></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>