tags:

views:

176

answers:

2

I saw this question,and pop up this idea.

Is there an efficient way to do this in PHP?

EDIT

Best with a demo?

+2  A: 

You could use the pear package Math_Matrix for this.

Emil H
That link does not yield a page.
monksy
wow. the pear page really doesn't like that link. went there myself and tried to correct the link. same problem. can't seem to link directly to it. Just have to click Search Packages on the top menu and search for matrix
Jonathan Fingland
the correct link is pear.php.net/package/Math-Matrix(Sorry, but I cant edit your post to correct the link in place)
Eineki
@Eineki: I fixed it.
monksy
+1  A: 

This package claims to be able to do what you are looking for.

monksy