Matrix artihmetic in PHP?

10,418

Solution 1

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.

Solution 2

There is a relatively recent library for Linear Regression for PHP. This library does contain classes for matrix multiplication, and unit tests with 100% code coverage.

Share:
10,418
Ben
Author by

Ben

Updated on June 11, 2022

Comments

  • Ben
    Ben about 2 years

    Does anyone know of a PHP library that handles matrix multiplication, inversion, etc.?