Erase the leaving symbols, not the entering symbols in dualOptimize. Matches the Kiwi C++ implementation: 0989ff015f/kiwi/solverimpl.h (L615)
This commit is contained in:
parent
bf7f638e4a
commit
2b23f2e562
|
@ -530,7 +530,7 @@ public class Solver {
|
||||||
if(entering.getType() == Symbol.Type.INVALID){
|
if(entering.getType() == Symbol.Type.INVALID){
|
||||||
throw new InternalSolverError("internal solver error");
|
throw new InternalSolverError("internal solver error");
|
||||||
}
|
}
|
||||||
rows.remove(entering);
|
rows.remove(leaving);
|
||||||
row.solveFor(leaving, entering);
|
row.solveFor(leaving, entering);
|
||||||
substitute(entering, row);
|
substitute(entering, row);
|
||||||
rows.put(entering, row);
|
rows.put(entering, row);
|
||||||
|
|
Loading…
Reference in New Issue