A matrix question...

Post any maths and/or physics related questions here.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

A matrix question...

Postby Emilius » Fri Feb 22, 2008 4:05 pm

Can you propose me some site, or something, where I can find some "shorter" way to work with matrices?
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby MXP » Fri Feb 22, 2008 4:34 pm

I dont understand what you are looking for. What are you trying to do?
Need information on a function I've posted? Chances are it's at the MSDN.
MXP
 
Posts: 6506
Joined: Mon Sep 22, 2003 5:27 pm

Postby Emilius » Sat Feb 23, 2008 2:39 am

I want to make a program that works with matrices - multiplication, determinant, etc. If I use the formulas, I learned in lectures, it shouldn't work for bigger matrices like 10000x10000 elements which are often used. I found a block matrix (I think that was the name), but I didn't found anything about their determinant (now I cannot find the site where I read about them :( ) That's all about. :)
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby DannyBoy » Sat Feb 23, 2008 2:55 am

Do you specifically want to make a program or do you just need a program with which to manipulate matrices? If it's the latter, have a look at R.
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby Emilius » Sat Feb 23, 2008 3:19 am

No, I don't need such a program - I want to make one :)
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby DannyBoy » Sat Feb 23, 2008 3:24 am

Programming matrix algebra is quite common, especially as a homework assignment. Try typing "matrices" into the search facility and see! As for epic matrices, I'm not sure even MatLab could handle such calculations...
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby Alvaro » Sat Feb 23, 2008 7:41 am

What exactly do you need? An algorithm for fast multiplication? Computing the determinant? What are your matrices like? Why do you need to do this (larger context)?
User avatar
Alvaro
Moderator
 
Posts: 5185
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Postby Emilius » Sat Feb 23, 2008 10:43 am

I want to make a program that uses the finite elements method for structural analysis.
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby DannyBoy » Sat Feb 23, 2008 10:59 am

Okay. That's certainly not a trivial program. Have you used C/C++ before?

I'm not overly familiar with FEM... So, do you have a set of equations in matrix form that then need to be solved using Gaussian elimination or some such thing?
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby Emilius » Sat Feb 23, 2008 2:27 pm

I found an example - in wikipedia... but every matrix' determinant, for instance, may be calculated by using the common fromula - detA = sum(j=1..n) [(-1)^(i+j) * det(Aij * aij)], where A = [aij] i = 1..n and j = 1..n ... If I understood the question...
Last edited by Emilius on Sat Feb 23, 2008 2:36 pm, edited 1 time in total.
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby DannyBoy » Sat Feb 23, 2008 2:36 pm

So, do you actually need any help then? :roll:

When posting questions it helps if you are concise, clear and specific. Suggested reading.
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby Emilius » Sat Feb 23, 2008 2:40 pm

I made a mistake... it does not work... Block matrix cannot be used to calculate a determinant unless the partitioned matrices are nxn... I forgot it... :oops: Whatever... I'll try to find some other way...
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby MXP » Sat Feb 23, 2008 4:19 pm

If a matrix is not square then it already does not have a determinant. The method you got from Wikipedia will work just fine.
Need information on a function I've posted? Chances are it's at the MSDN.
MXP
 
Posts: 6506
Joined: Mon Sep 22, 2003 5:27 pm

Postby Emilius » Sat Feb 23, 2008 4:46 pm

The common formula will be difficult to compute for a matrix 10000x10000, which is often used in FEM... If I try to use a block matrix, as I suggested earlier, and I have a matrix 505x505, for instance, I couldn't divide it by square matrices...
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Postby Emilius » Sat Feb 23, 2008 5:03 pm

I think I just found a solution, but I must make sure that it works in any cases... I'll try it in the morning. Wish me luck :)
Emilius
 
Posts: 13
Joined: Wed Aug 15, 2007 5:58 am

Next

Return to Maths & Physics

Who is online

Users browsing this forum: No registered users and 0 guests