好的矩阵库? [英] Good Matrix Libraries?

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

问题描述

我一直在处理数学密集型代码,需要一个好的矩阵库。我可以使用一个二维数组,但一个完整的矩阵库(乘法,加法等)将是更方便。我显然已经google了,但这给了我很多的选择。我希望几个有经验的程序员的意见可以帮助缩小范围。



有什么好的自由矩阵/线性代数库C ++? strong>

/libs/numeric/ublas/doc/index.htm\"> uBlas


功能 / p>

uBLAS为密集,单位和稀疏向量,密集,身份,三角形,带状,对称,密码和稀疏矩阵提供模板化的C ++类。向量和矩阵的视图可以通过范围,片段,适配器类和间接数组来构造。该库覆盖了对矢量和矩阵的通常的基本线性代数运算:如不同范数的减少,矢量和矩阵的加法和减法以及与标量的乘法,矢量的内部和外部乘积,矩阵矢量和矩阵矩阵乘积以及三角解。容器,视图和表达式模板化操作之间的粘合大多是符合STL的迭代器接口。



I've been dealing with math-intensive code and require a good matrix library. I could use a two dimensional array, but a complete matrix library (with multiplication, addition etc.) would be much more convenient. I obviously already googled it, but this gave me a plethora of choices. I was hoping that the opinions of a few experienced programmers would help narrow it down.

What are some good free matrix/linear algebra libraries for C++?

解决方案

You can try uBlas

Functionality

uBLAS provides templated C++ classes for dense, unit and sparse vectors, dense, identity, triangular, banded, symmetric, hermitian and sparse matrices. Views into vectors and matrices can be constructed via ranges, slices, adaptor classes and indirect arrays. The library covers the usual basic linear algebra operations on vectors and matrices: reductions like different norms, addition and subtraction of vectors and matrices and multiplication with a scalar, inner and outer products of vectors, matrix vector and matrix matrix products and triangular solver. The glue between containers, views and expression templated operations is a mostly STL conforming iterator interface.

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

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