矩阵库更新
我正在做一个神经网络项目(如你所知,大部分是线性代数计算),所以我已经使用了 Jblas,这是一个很棒的库,但是在我安装了 Ubuntu 最新版本 11.04 后,我在使用它时遇到了一些麻烦,(错误可能不要复制 temp bla bla)如果我做了一些工作我会解决这个问题。
但错误本身是一个警告我真的应该使用本机库吗?知道我已经因为这种错误而逃脱了 C++(Java 的可移植性和实现更容易等),
所以我回到了 Apache Commons,它相当不错(功能上:很多包,良好的设计),但性能是最差的!
这让我陷入了两难境地:Apache 的性能与当今处理器的性能相比,我们是否应该忽视像 Apache 这样的库的缓慢性能,而依靠新处理器中技术和多线程的改进?
你认为我应该做什么,我已经使用了一半的 JBLAS,
- 我应该使用 Apache 吗?
- 继续使用 JBLA(修复错误)并继续
- 使用您选择的另一个新的 2011 年有前途的 JAVA 线性代数库?
编辑:错误是: “org.jblas 错误无法加载复制的链接文件:java.lang.UnsatisfiedLinkError:/tmp/jblas2930149998010945438libjblas_arch_flavor.so:libgfortran.so.3:无法打开共享对象文件:没有这样的文件或目录。”
在我咨询了 JBLAS 作者的 Facebook 页面 他们告诉我我需要安装 libgfortran3,问题就解决了“以防万一有人遇到同样的问题”
I'm doing a neural network project (much of linear algebra calculations as you know) so I've already used Jblas which is a great library but after I installed Ubuntu latest Version 11.04 I'm having some trouble using it, (error couldn't copy temp bla bla) which I would solve if I did some work.
But the error it self was a warning Should I really use native library ? Knowing that I already escaped C++ because of this kind of errors (Java as portable and Implementation easier etc)
So I went back to Apache Commons which is pretty good (functionally: lots of packages, good design) but performance it's the worst !!
which puts me in dilemma here the Performance in Apache Vs Performance of Processors nowadays Should we disregard the slow performance of Libraries like Apache and count on the Improvement of Technology and multi-threading in new Processors ?
What do you think I should do I'm half way through using JBLAS,
- Should I use Apache ?
- Keep going using JBLAs(fix the error) and move on
- Use another new 2011 promising JAVA linear Algebra library of your choice ?
EDIT: Error was:
"org.jblas ERROR Couldn't load copied link file: java.lang.UnsatisfiedLinkError: /tmp/jblas2930149998010945438libjblas_arch_flavor.so: libgfortran.so.3: cannot open shared object file: No such file or directory."
After I consulted the Authors of JBLAS at their Facebook Page they told me I would need libgfortran3 to be installed, and problem was solved "Just in case someone gets the same problem"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我之前已经成功使用过JAMA。它是由 Mathworks(Matlab 的创建者)和 NIST 创建的。这是一个很好的软件包,具有基本的线性代数方法,但它可能无法满足您的速度要求。
I have successfully used JAMA before. It was created by Mathworks (creators of Matlab) and NIST. It is a nice packages with basic linear algebra methods, but it may not live up to your speed requirements.
我不认为像 Java 这样的解释性语言会给你带来本机代码的原始性能。这就是为什么 FORTRAN/C/C++ 在科学计算领域仍然非常活跃和良好。据我所知,像 LAPACK 这样的软件包仍然是黄金标准。
我不确定 Colt 是否让我成为一个骗子。我对此没有个人经验,但如果我仍在该领域工作,我肯定会看看。
如果这确实是您最大的问题,我会继续使用 JBLAS。您可以修复该错误。继续前进。
I don't think an interpreted language like Java is going to give you the raw performance of native code. That's why FORTRAN/C/C++ are still very much alive and well in scientific computing. Packages like LAPACK are still the gold standard as far as I know.
I'm not sure if Colt makes me a liar. I have no personal experience with it, but if I were still working in this area I'd certainly give it a look.
If that's truly your biggest issue, I'd press on with JBLAS. You can fix that error. Keep going.