Dense Row Operations #
Executable row operations and Gauss-Jordan reduction for row-major matrices.
Swap two rows.
Instances For
def
CompPoly.DenseMatrix.scaleRow
{F : Type u_1}
[Field F]
(M : DenseMatrix F)
(row : ℕ)
(factor : F)
:
Scale one row by a field element.
Instances For
def
CompPoly.DenseMatrix.addScaledRow
{F : Type u_1}
[Field F]
(M : DenseMatrix F)
(target source : ℕ)
(factor : F)
:
Add factor times source row to target row.
Instances For
def
CompPoly.DenseMatrix.findPivotRow
{F : Type u_1}
[Zero F]
[BEq F]
(M : DenseMatrix F)
(startRow col : ℕ)
:
Find a pivot row at or below startRow in column col.
Instances For
def
CompPoly.DenseMatrix.normalizeAndEliminate
{F : Type u_1}
[Field F]
[BEq F]
(M : DenseMatrix F)
(pivotRow pivotCol : ℕ)
:
Normalize the pivot row and clear the pivot column in every other row.
Instances For
def
CompPoly.DenseMatrix.rrefLoop
{F : Type u_1}
[Field F]
[BEq F]
:
ℕ → ℕ → ℕ → DenseMatrix F → Array ℕ → RrefResult F
Fuel-bounded Gauss-Jordan reduction.
Instances For
Reduced row-echelon form with pivot-column metadata.