Lines Matching defs:pivotRow
926 /// Pivot pivotRow and pivotCol.
951 void SimplexBase::pivot(unsigned pivotRow, unsigned pivotCol) {
955 swapRowWithCol(pivotRow, pivotCol);
956 std::swap(tableau(pivotRow, 0), tableau(pivotRow, pivotCol));
958 if (tableau(pivotRow, 0) < 0) {
961 tableau(pivotRow, 0) = -tableau(pivotRow, 0);
962 tableau(pivotRow, pivotCol) = -tableau(pivotRow, pivotCol);
967 tableau(pivotRow, col) = -tableau(pivotRow, col);
970 tableau.normalizeRow(pivotRow);
973 if (row == pivotRow)
977 tableau(row, 0) *= tableau(pivotRow, 0);
982 tableau(row, col) = tableau(row, col) * tableau(pivotRow, 0) +
983 tableau(row, pivotCol) * tableau(pivotRow, col);
985 tableau(row, pivotCol) *= tableau(pivotRow, pivotCol);
1381 std::optional<unsigned> pivotRow = findPivotRow({}, direction, column);
1384 if (!pivotRow)
1386 pivot(*pivotRow, column);
1448 std::optional<unsigned> pivotRow =
1452 if (!pivotRow)
1454 pivot(*pivotRow, column);