![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 5
Rep Power: 0
![]() |
Inverse of a Matrix
Hi Everybody...
I need rapid help by anyone about inversing of a matrix. you know inversing 1 2 3 0 5 8 4 7 9 * inverse = 1 0 0 0 1 0 0 0 1 i need the inverse matrix... I need the implementation of finding that matrix in c. I am holding the matrixes in linked list. Coz any matrix can be input from a file... And so there can be any size in result matrices.. I searched the net.. I couldnt fine any useful thing... Thnx for now... |
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 773
Rep Power: 3
![]() |
Did you try to google for how to do it?
|
|
|
|
|
|
#3 |
|
King of Portal
|
I wrote a program a while back in C to compute the inverses of n x n sized matrices. It's available at my website http://grimpirate.t35.com/articles/ansic/ansic.html The source code is in pdf format though. Hope it helps.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
If you read the forum's rules/FAQ, as a good little new member should, you will discover you shouldn't cross-post.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
If I recall correctly from my maths lessons, you need to find the equivalent matrix of cofactors, transpose that, and divide by the determinant. Enjoy.
![]() |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4
![]() |
The GSL (GNU Scientific Library) has some matrix routines:
http://www.gnu.org/software/gsl/manual/html_node/ |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|