Worked example
Operation: RREF a: 1 2 3 4
R₂ ← R₂ − 3R₁ ⇒ [0, −2] R₂ ← R₂/(−2) ⇒ [0, 1] R₁ ← R₁ − 2R₂ ⇒ [1, 0]
→ [[1,0],[0,1]]
Method and scope
Choose row echelon (REF) or reduced row echelon (RREF). Each nonzero row is scaled before pivoting. Steps record the actual row operations; pivot columns are one-based. Tiny relative pivots are treated as numerically zero.
Rᵢ ← Rᵢ − factor × Rⱼ