math matrix

farshad

Centurion
Joined
May 1, 2003
Messages
109
Location
London
Hi,
Can someone send me a simple example to invert a math matrix with a little explanatiojn please?

I have this but do not really understand it.
Matrix myMatrix = new Matrix(3, 5, 1, 2, 2, 4);
myMatrix.Invert();

Thanks
 
why would you pass in 6 numbers for the constructor? you'd need to pass in an amount of numbers that is a square of another number...

4, 9, 16, 25 and so on

a matrix is a grid of numbers, that are the co-efficients of unknowns...

all an inversion is, is multiplying it by a matrix where you "get each unknown", because the co-efficient in each line is 1.

if i had a matrix

5 6 2
4 0 3
7 8 9

and I wanted to invert it, i simply multiple the matrix by

1 0 0
0 1 0
0 0 1

it's been a while since i looked at this sort of stuff, hope that helps though, it's not all that difficult.

Dan.
 
Back
Top