tags:

views:

815

answers:

1

Hi,

does anyone know of a library in PHP that handles matrix multiplication, inversion, etc.? I don't mind rolling my own, but I don't particularly fancy implementing inversion from scratch...

Thanks,

Ben

+3  A: 

You could try the Math_Matrix library. I haven't used it, but it seems to be fairly comprehensive, going beyond simple matrix arithmetic to also include things like calculating the determinant or solving systems of equations.

Tony