<div class="gmail_quote">On Wed, Mar 16, 2011 at 00:13, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You cannot just check the row and column separately. You need to check them as a pair. If row < m and column < n mark A as changed.</blockquote><div><br></div><div>But you don't know what "A" is yet so all you can mark is some particular pair (row,col) as changed. And you can't store cheaply in the form (row_range, col_range) because you don't know when to extend an existing range or when to create a new range. Maybe there is something clever that works in a lot of common cases, but I don't think there is a cheap automatic way to do this. I think you would have to declare index sets for submatrices up-front.</div>
</div>