<div class="gmail_quote">On Thu, Dec 29, 2011 at 13:42, Junchao Zhang <span dir="ltr">&lt;<a href="mailto:junchao.zhang@gmail.com">junchao.zhang@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><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></blockquote></div><br><div>No, but you can use MatGetRow() to access the rows one at a time. MPIAIJ matrices are not stored in a way where getting a single pointer makes sense.</div>