The Gauss-Jordan method is another well-known procedure for solving a linear system. It is the same as Gauss elimination with the modification that elimination is done above the diagonal as well as below. In other words, it reduces the problem $A \mathbf{x}=\mathbf{b}$ to the equivalent one $D \mathbf{x}=\mathbf{q}$, where $D$ is a diagonal matrix. Thus, the reduced problem is especially easy to solve. But the overall algorithm is less efficient than Gauss elimination because the operations count is $n^3 / 2+0\left(n^2\right)$ flops. Verify this count.