If your array is in A then the identity matrix may be found by:
Please let me know if you need further assistance.
Does anyone know of a program or a way to express a given matrix as the sum of elementary matrices?
If not, maybe just a program that reduces a given matrix to the corresponding identity matrix?
Any help would be appreciated!
I have only just started learning matrix manipulation, so I am unsure what you are asking.
If you save a matrix, say A - you can get det(A) - the determinant, which is used to calculate A^-1.
If you can give me a small example of what you require, I may be able to assist further.
Express the given matrix A as the product of elementary matrices. (basically, we want to re-write a given matrix as the product of an arbitrary number of elementary matrices)
To do this, you can take the given matrix A, and reduce it to the corresponding identity matrix, taking note of the ERO's used along the way. Then, you use those exact ERO's on the identity matrix itself, and after each ERO performed you get one of the elementary matrices.
I need a program to reduce the given matrix to the identity matrix and show the ERO's along the way.