On Sun, Feb 22, 2009 at 9:30 PM, Shengli Xu <span dir="ltr">&lt;<a href="mailto:shengli.xu.xu@gmail.com">shengli.xu.xu@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br clear="all">Hi everyone,<br><br>I want get the ordering matrix of a sparse matrix. I use MatGetOrdering(Mat matrix, MatOrderingType type, IS* rowperm, IS* colperm); to get rowperm and colperm. <br><br>How to get the matrix after ordering? </blockquote>
<div><br>I am&nbsp; not sure what you mean. A MatOrdering is exactly those permutation vectors. We do not<br>change the matrix. If you want to change the matrix, you must use something like MatPermute().<br><br>&nbsp; Matt<br>&nbsp;</div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>-- <br><font color="#888888">Shengli Xu<br>
</font></blockquote></div>-- <br>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<br>