我想知道是否有任何 C/C++ 库可以模仿 Matlab 提供的功能(当然忽略所有工具箱),如果有,它们在简单性和速度方面与 Matlab 相比如何?
最佳答案
对于标准线性代数,Armadillo本质上以 Matlab 的“易用性”作为既定目标。引用自主页:
Armadillo is an open-source C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. Various matrix decompositions are provided through optional integration with LAPACK, or one of its high performance drop-in replacements (such as MKL or ACML).
This library is useful if C++ has been decided as the language of choice (due to speed and/or integration capabilities), rather than another language like Matlab ® or Octave. It is distributed under a license that is useful in both open-source and commercial contexts.
这是一个相当不错的 C++ 库。
关于模仿 matlab 功能的 C++ 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6630181/