Metadata-Version: 2.4
Name: cherrynova
Version: 0.5.0
Requires-Dist: matplotlib>=3.11.2
Requires-Dist: numpy>=2.5.3
Requires-Dist: torch>=2.14.0
Summary: Add your description here
Author-email: cherrynova <marialubida31@gmail.com>
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

My approach to implementing rref follows the same step-by-step process shown in the Row Echelon Form lecture (slides 74–81), but automated into a loop so it works for any matrix, not just one specific example. The function moves through the matrix one column at a time, tracking which row should hold the next pivot. For each column, it first checks whether the current pivot position holds a zero; if it does, the function searches the rows below for one with a non-zero value in that column and swaps it into the pivot position using rowswap, since a zero pivot can't be scaled into a 1. If no non-zero value is found anywhere below in that column, the function simply moves on to the next column without creating a pivot there. Once a valid (non-zero) pivot is in place, the function uses rowscale to divide that entire row by the pivot's value, turning the pivot into exactly 1, as required by the definition of Row Echelon Form. Then, for every row below the pivot row, the function checks whether that row still has a non-zero value in the current column; if so, it uses rowreplacement to subtract the appropriate multiple of the pivot row from it, turning that entry into 0. This process repeats for each column, moving the pivot row down by one each time a pivot is successfully created, until every column has been processed or all rows have been used. The result is a matrix where every pivot is 1 and every entry below each pivot is 0, satisfying the Row Echelon Form conditions from slide 74. I reused my three earlier functions (rowswap, rowscale, rowreplacement) as building blocks inside rref, rather than rewriting the row operations from scratch.
