I need a PHP library for vectors and matrices. The library I'm looking for should include functions like matrix multiplication, vector cosine similarity, convolution etc.

I also expect such a library to have a proper compact internal representation of sparse vectors and matrices.

I'm using PHP 5.2.

Edit
Report