http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatPermute.html
Matt On Mon, Sep 27, 2010 at 12:38 PM, Umut Tabak <u.tabak at tudelft.nl> wrote: > Dear all, > > How can I reorder a sparse matrix in Petsc? > > Sth like in a dirty MATLAB like pseudo-code: > A = diag([1 3 4 5]); > neworder = [2 4 1 3]; > B = A(neworder, neworder) > > I know I will destroy the sparsity pattern, but for my application there is > no other way, the matrices should be reordered for some partitioning. > > Best regards, > Umut > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100927/158f4c34/attachment.htm>
