Browse Source

note about asDiagonal()

Former-commit-id: 2ce0c86a780a6ae2dedc9958a21678b824b19e2f
Alec Jacobson 8 years ago
parent
commit
eedf0aa5e1
1 changed files with 2 additions and 1 deletions
  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>