是否有一个很好的用于向量和矩阵的PHP库? [英] Is there a good PHP library for vectors and matrices?

查看:72
本文介绍了是否有一个很好的用于向量和矩阵的PHP库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个用于向量和矩阵的PHP库.我要寻找的程式库应包含矩阵乘法,向量余弦相似度,卷积等功能.

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.

我正在使用PHP 5.2.

I'm using PHP 5.2.

推荐答案

  • http://pear.php.net/package/Math_Matrix and
  • http://pear.php.net/package/Math_Vector/

以及许多其他有关Math的PEAR软件包

and a number of other related PEAR packages about Math

我不知道它们是否适合您的需求.自己看看.

I do not know if they suit your needs though. See for yourself.

这篇关于是否有一个很好的用于向量和矩阵的PHP库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆