From cb8ebb7ff4dacad47ff531f6f89d58a213b02c5e Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Thu, 29 Sep 2022 09:44:07 +0200 Subject: [PATCH] Fix missing type in simplex.ts --- src/utils/simplex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/simplex.ts b/src/utils/simplex.ts index 161a699..d3ffb9c 100644 --- a/src/utils/simplex.ts +++ b/src/utils/simplex.ts @@ -157,7 +157,7 @@ function ApplyMainLoop(oldMatrix: number[][], rowlength: number): number[][] { const pivotRowIndex = ratios.indexOf(minRatio); // i /// Init the new matrix - const newMatrix = structuredClone(matrix); + const newMatrix: number[][] = structuredClone(matrix); const pivot = matrix[pivotRowIndex][pivotColIndex]; // 3) apply on the pivot row the inverse of the pivot