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.