mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Small opt in pivot.
This commit is contained in:
parent
0b6e16983a
commit
0592b6d86a
@ -203,6 +203,8 @@ void performPivot(Tableau& _tableau, size_t _pivotRow, size_t _pivotColumn)
|
||||
auto subtractMultipleOfPivotRow = [&](LinearExpression& _row) {
|
||||
if (_row[_pivotColumn] == rational{1})
|
||||
_row -= _pivotRowData;
|
||||
else if (_row[_pivotColumn] == rational{-1})
|
||||
_row += _pivotRowData;
|
||||
else if (_row[_pivotColumn])
|
||||
_row -= _row[_pivotColumn] * _pivotRowData;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user