1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-11 03:04:28 +02:00
This commit is contained in:
Pomax
2019-03-28 10:15:33 -07:00
parent 6cc5404eb3
commit 6c7012f0ea
12 changed files with 31 additions and 14 deletions

View File

@@ -29,7 +29,7 @@ var Reordering = {
// build M, which will be (k) rows by (k-1) columns
for(i=0; i<k; i++) {
M[i] = (new Array(k)).join('0').split('').map(v => parseInt(v));
M[i] = (new Array(k)).fill(0);
if(i===0) { M[i][0] = 1; }
else if(i===n) { M[i][i-1] = 1; }
else {