Documentation

CompPoly.LinearAlgebra.Dense.RowOps

Dense Row Operations #

Executable row operations and Gauss-Jordan reduction for row-major matrices.

structure CompPoly.DenseMatrix.RrefResult (F : Type u_2) [Zero F] :
Type u_2

Result of row reduction, retaining pivot columns in row order.

Instances For
    def CompPoly.DenseMatrix.swapRows {F : Type u_1} [Zero F] (M : DenseMatrix F) (rowA rowB : ) :

    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 FArray RrefResult F

              Fuel-bounded Gauss-Jordan reduction.

              Instances For

                Reduced row-echelon form with pivot-column metadata.

                Instances For