A C ++库阵列,矩阵,向量,和经典线性代数运算 [英] A C++ library for Arrays, Matrix, Vector, and classical linear algebra operations

查看:108
本文介绍了A C ++库阵列,矩阵,向量,和经典线性代数运算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你使用哪种库N维数组?

Which library do you use for N-dimensional arrays?

我用闪电战++在工作中,我真的不喜欢它的某些方面。
它的某些方面甚至是危险的。需要调整前
使用operator =。 A(范围::全部(),范围::全部())抛出一个(0,0)
矩阵等和线性代数操作是要
通过CLAPACK完成。

I use blitz++ at work and I really dislike some aspect of it. Some aspect of it are even dangerous. The need for resizing before using operator=. A(Range::all(), Range::all()) throws for an (0,0) matrix, etc. and the linear algebra operations are to be done via clapack.

我曾经和喜爱征。我AP preciate其全头的实施,
C ++的语法糖,和所有的线性代数运算的presence
我需要(矩阵乘法,系统分辨率,乔莱斯基...)

I used and loved eigen. I appreciate its "all-in-header" implementations, the C++ syntactic sugar, and the presence of all the linear algebra operations I need (matrix multiplication, system resolution, cholesky...)

您使用的是什么了?

推荐答案

的boost ::数组也的的boost :: MultiArray的。还有一个pretty良好的线性代数包升压叫的的uBLAS

boost::array and also boost::MultiArray. There's also a pretty good linear algebra package in boost called uBLAS

这篇关于A C ++库阵列,矩阵,向量,和经典线性代数运算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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