http://linalg.rubyforge.org/ 看起来可以满足您的需求。它基于 LAPACK,这是一个标准的、经过 40 年测试的线性代数框架。此外,您可以插入供应商特定的 LAPACK 库以获得优化代码。
Linalg https://github.com/wedesoft,我在这里发布了安装说明:http://www.quora.com/Installation-Instructions/How-do-I-install-Ruby-linalg-library-on-Mac