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 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.

A =
| negative index   |
| "                         |
| "                         |
| "                         |
| non-zero value  | --> row N
| non-zero value  |
| "                         |
| ...                       |

Reply via email to