• Elementry row operations on a matrix in c++
    3 replies, posted
I have a 2 dimensional array i need to do some row operations on it although not to sure how to do them in c++. I'm a beginner at c++ so any help would be appreciated.
Share some code or elaborate on what you want to accomplish.
My codes a mess so al just tell you my goal. I have to enter a matrix and output the inverse of it. So far i have got the matrix set up aright and now i just need to invert it. I'm following this method [url]http://www.purplemath.com/modules/mtrxinvr.htm[/url]. As far as the method goes i have added the identity matrix on to the original matrix so now i just need to do the row operations and am home dry :) If you want to see my code then I can upload it
Are you using the matrix for transformations? Because if so, there's a method that is worlds better. All you have to do is multiply the transpose of the rotation onto the negative of the homogeneous addition vector and replace the original rotation with the transpose of the rotation.
Sorry, you need to Log In to post a reply to this thread.