Home
last modified time | relevance | path

Searched refs:pivotRow (Results 1 – 3 of 3) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DSimplexSolver.java128 Integer pivotRow = getPivotRow(tableau, pivotCol); in doIteration() local
129 if (pivotRow == null) { in doIteration()
134 double pivotVal = tableau.getEntry(pivotRow, pivotCol); in doIteration()
135 tableau.divideRow(pivotRow, pivotVal); in doIteration()
139 if (i != pivotRow) { in doIteration()
141 tableau.subtractRow(i, pivotRow, multiplier); in doIteration()
/external/llvm-project/mlir/lib/Analysis/Presburger/
DSimplex.cpp222 void Simplex::pivot(unsigned pivotRow, unsigned pivotCol) { in pivot() argument
225 swapRowWithCol(pivotRow, pivotCol); in pivot()
226 std::swap(tableau(pivotRow, 0), tableau(pivotRow, pivotCol)); in pivot()
228 if (tableau(pivotRow, 0) < 0) { in pivot()
231 tableau(pivotRow, 0) = -tableau(pivotRow, 0); in pivot()
232 tableau(pivotRow, pivotCol) = -tableau(pivotRow, pivotCol); in pivot()
237 tableau(pivotRow, col) = -tableau(pivotRow, col); in pivot()
240 normalizeRow(pivotRow); in pivot()
243 if (row == pivotRow) in pivot()
247 tableau(row, 0) *= tableau(pivotRow, 0); in pivot()
[all …]
/external/llvm-project/mlir/lib/Analysis/
DAffineStructures.cpp828 unsigned rowIdx, unsigned pivotRow, in eliminateFromConstraint() argument
832 if (isEq && rowIdx == pivotRow) in eliminateFromConstraint()
841 int64_t pivotCoeff = constraints->atEq(pivotRow, pivotCol); in eliminateFromConstraint()
852 int64_t v = pivotMultiplier * constraints->atEq(pivotRow, j) + in eliminateFromConstraint()
1127 unsigned pivotRow; in gaussianEliminateIds() local
1129 &pivotRow)) { in gaussianEliminateIds()
1132 &pivotRow)) { in gaussianEliminateIds()
1142 eliminateFromConstraint(this, i, pivotRow, pivotCol, posStart, in gaussianEliminateIds()
1149 eliminateFromConstraint(this, i, pivotRow, pivotCol, posStart, in gaussianEliminateIds()
1153 removeEquality(pivotRow); in gaussianEliminateIds()