<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 21, 2015 at 5:06 PM, Orxan Shibliyev <span dir="ltr"><<a href="mailto:orxan.shibli@gmail.com" target="_blank">orxan.shibli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am solving Ax=b with KSP. I set the matrix (A) so that from first row to a certain row (row N) I used negative indices (see below). I got an error indicating that the matrix is</div></blockquote><div><br></div><div>What do you mean by this? Matrix rows are always refered to by non-negative, contiguous integers.</div><div><br></div><div> Thanks,</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 dir="ltr"> missing diagonal entry at 0 (zero). Does this mean that negative indexing is not working so that the row zero points to the actual first row which has negative index? Should not the rows with negative indices be ignored? In case, I checked the first row without negative index (row N) and its diagonal entry is not zero anyway.<div><br></div><div>A = </div><div>| negative index |</div><div>| " |</div><div>| " |</div><div>| " |</div><div>| non-zero value | --> row N</div><div>| non-zero value |</div><div>| " |</div><div>| ... |</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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</div>
</div></div>