瀏覽代碼

note about asDiagonal()

Former-commit-id: 2ce0c86a780a6ae2dedc9958a21678b824b19e2f
Alec Jacobson 8 年之前
父節點
當前提交
eedf0aa5e1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      matlab-to-eigen.html

+ 2 - 1
matlab-to-eigen.html

@@ -81,7 +81,8 @@
         <td><pre><code>M = diag(D)</code></pre></td>
         <td><pre><code>igl::diag(D,M)</code></pre></td>
         <td>Construct new square matrix M with entries of vector D along the
-        diagonal. Currently igl version supports sparse only.</td>
+        diagonal. Currently igl version supports sparse only. Might also
+        consider simply: <code>M = D.asDiagonal();</code></td>
       </tr>
 
       <tr class=d1>