Java稀疏矩阵问题 [英] java sparse matrix problem

查看:110
本文介绍了Java稀疏矩阵问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有二维矩阵.我的矩阵是稀疏的.我面临性能问题.任何人都可以回答我可以在Java中使用什么api或类来处理稀疏矩阵以提高程序性能.

I have two dimensional matrix. My matrix is sparse. I am facing performance problem. Can any body please answer that what api or class i can use in java to handle sparse matrix to improve my program performance.

例如我想要

it take 100x100 matrix
handle sparse stuff
do the multiplication
return me my matrix same as 100x100 with 0 ( mean sparse matrix )

推荐答案

Jama讨厌大型稀疏矩阵.

Jama is awful for large sparse matrices.

看看 Colt 线性代数库.

稀疏线性代数的另一种可能性是 apache commons 库.可能比Colt轻一些,但与Jama的外观差异可能更大.

Another possibility for sparse linear algebra is the apache commons library. Might be a little lighter-weight than Colt but the difference from the look-and-feel of Jama might be a little larger.

这篇关于Java稀疏矩阵问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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