<div class="gmail_quote">On Sun, Mar 18, 2012 at 18:55, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No off-diagonal.</blockquote></div><br><div>So I think the MatGetArray() should be MatDenseGetArray() because it's not directly useful otherwise.</div><div><br></div><div>For in-place modification (if that is actually useful), I'd do it with a callback.</div>
<div><br></div><div>Note that for your specific purpose, you can do in-place modification with MatMPIAIJGetAIJ() and MatGetArray() on each off-diagonal block.</div>