Question: How do I return the elementary matrices used in Gauss-Jordan elimination?

Hey, any help would be much appreciated! For any 2x2 matrix A, I can use GaussJordan(A) and it will return its reduced form. But I want to write a short program that will return the elemtary matrices used during the process as well. Any idea how to do this?! Thanks!

Please Wait...