<div class="gmail_quote">2011/1/26 Gong Ding <span dir="ltr">&lt;<a href="mailto:gdiso@ustc.edu">gdiso@ustc.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have unsymmetrical jacobian matrix in MPIAIJ format (it is nearlly symmetric, I guess). I&#39;d like to pad it to symmetrical pattern by just add 0 to corresponding matrix entry, which is required to some matrix partition step.</blockquote>
</div><br><div>How are you obtaining the matrix?  The best way is to preallocate those extra zeros.</div><div><br></div><div>A traditional purely algebraic way is to add the transpose (zeroed in this case), but transpose is a bad operation to perform in parallel so I would try to avoid it.</div>