Transforms a matrix into row-reduced echelon form by a sequence of pivoting and elimination operations. This is critical for solving linear systems, determining ranks, and other linear algebra tasks.