![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
2-dimensional matrices
Alright, so tomorrow, I am going to a programming competition for high schoolers and they informed us that we should look up information about manipulate 2-dimensional matrices in various ways. I know about matrix that are used in Algebra 2, but I hardly remember ANY of it as well as I don't know if they are the same as used in a programming situation. So I am asking for help. Could you guys help let me know what kind of matrix they might be talking about. I am thinking they are talking about 2-D arrays (which creating and working with I know how to do). Could you guys give me some insight about, adding them, subtracting them, multiplying them, devising them, my teacher said something about inverses. Anything will help. And sorry to anyone if I should have posted this in a different way, or you think I'm a little kid.
|
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
OK, adding and subtracting matrices is easy - just add/subtract each element in the second matrix to the corresponding element in the first.
Finding the determinant is better explained by Wikipedia than by me - click. To invert a square matrix, click. Essentially, you find the matrix of cofactors, transpose it (mirror it along the line from top-left to bottom-right), and divide the entire matrix by the determinant. And finally, in order to multiply a matrix with either a scalar or a vector, you should check this out. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multi dimensional array error | veiga2 | C++ | 2 | Nov 16th, 2006 3:05 AM |
| Multiplying Matricies help | Thanatos5142 | Java | 8 | Oct 23rd, 2006 7:26 PM |
| geometric series with Matrices | brad sue | C | 3 | Mar 6th, 2006 2:14 AM |
| Matrices and Defining my Array Question | TecBrain | C++ | 2 | Mar 2nd, 2005 4:46 PM |
| Matrices Tutorial. | TecBrain | C++ | 1 | Feb 26th, 2005 4:03 PM |