[petsc-users] Set diagonals other than main diagonal

Sajid Ali sajidsyed2021 at u.northwestern.edu
Thu Jan 3 11:23:29 CST 2019


Hi,

Is there any simple way of setting minor diagonals. The main diagonal can
be set by MatDiagonalSet but there's no equivalent way of doing it for for
minor diagonals. Does the preferred way to do this involve using
MatSetValues or there a simpler way?

Thank You,
Sajid Ali
Applied Physics
Northwestern University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190103/e7674176/attachment.html>


More information about the petsc-users mailing list