Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 12th, 2006, 1:54 AM   #1
khanshan
Newbie
 
Join Date: May 2006
Posts: 5
Rep Power: 0 khanshan is on a distinguished road
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...
khanshan is offline   Reply With Quote
Old Jun 12th, 2006, 2:17 AM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 773
Rep Power: 3 Jimbo is on a distinguished road
Did you try to google for how to do it?
Jimbo is offline   Reply With Quote
Old Jun 12th, 2006, 3:36 AM   #3
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 439
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
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
grimpirate is offline   Reply With Quote
Old Jun 12th, 2006, 6:25 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 16th, 2006, 11:05 AM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 16th, 2006, 4:16 PM   #6
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
The GSL (GNU Scientific Library) has some matrix routines:

http://www.gnu.org/software/gsl/manual/html_node/
jim mcnamara is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC