<div><font face="arial, helvetica, sans-serif">Manual of MatGetRowIJ says &quot;<span style="background-color:rgb(255,255,255)">Returns the compressed row storage i and j indices for <i><font color="#ff0000">sequential </font></i>matrices.&quot;</span></font></div>
<div><font face="arial, helvetica, sans-serif">Could I pass MPIAIJ matrix as an argument to it?</font></div><br>On Thu, Dec 29, 2011 at 1:34 PM, Jed Brown <span dir="ltr">&lt;<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</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 class="im"><div class="gmail_quote">On Thu, Dec 29, 2011 at 13:32, Matthew Knepley <span dir="ltr">&lt;<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>We do nto recommend it, but you can use <a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetColumnIJ.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetColumnIJ.html</a></div>


<div></div></blockquote></div><div><br></div></div><div>Or, more likely,</div><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetRowIJ.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetRowIJ.html</a></div>

<div><br></div><div><br></div><div>But the matrices are not actually stored this way, so calling this function involves a copy.</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Junchao Zhang<br>