On Thu, Dec 29, 2011 at 1:28 PM, Junchao Zhang <span dir="ltr"><<a href="mailto:junchao.zhang@gmail.com">junchao.zhang@gmail.com</a>></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">
Hello,<div> I create a MPIAIJ matrix. How can I know the # of nonzeros stored locally? </div><div> Furthermore, in case it is needed, how can I get access to the Compress Sparse Row(CSR) data structure of the local matrix, i.e., the row pointer array, column index array, value array?</div>
</blockquote><div><br></div><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">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetColumnIJ.html</a></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><div><div> Thank you!</div><span class="HOEnZb"><font color="#888888"><div>
-- Junchao Zhang</div>
</font></span></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>