<p dir="ltr">MatGetDiagonal or MatGetValue, depending on how you want it.</p>
<div class="gmail_quote">On Jun 11, 2013 7:41 AM, "丁老师" <<a href="mailto:ztdepyahoo@163.com">ztdepyahoo@163.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><div style="line-height:1.7;font-size:14px;font-family:arial"><div style="line-height:1.7;font-size:14px;font-family:arial">which function return the value at the diagonal of matrix A(i,i).<br>
<div style="line-height:1.7;font-size:14px;font-family:arial"><br></div><div style="line-height:1.7;font-size:14px;font-family:arial">Regards.</div><div style="line-height:1.7;font-size:14px;font-family:arial"><br></div></div>
<span title="neteasefooter"><span></span></span></div><br><br><span title="neteasefooter"><span></span></span></div><br><br><span title="neteasefooter"><span></span></span></blockquote></div>