Fix missing type in simplex.ts

This commit is contained in:
Eric NGUYEN 2022-09-29 09:44:07 +02:00
parent 10260d3811
commit cb8ebb7ff4

View file

@ -157,7 +157,7 @@ function ApplyMainLoop(oldMatrix: number[][], rowlength: number): number[][] {
const pivotRowIndex = ratios.indexOf(minRatio); // i const pivotRowIndex = ratios.indexOf(minRatio); // i
/// Init the new matrix /// Init the new matrix
const newMatrix = structuredClone(matrix); const newMatrix: number[][] = structuredClone(matrix);
const pivot = matrix[pivotRowIndex][pivotColIndex]; const pivot = matrix[pivotRowIndex][pivotColIndex];
// 3) apply on the pivot row the inverse of the pivot // 3) apply on the pivot row the inverse of the pivot