1

I'm working on a project that needs to perform a variety of mathematical operations, which are native to languages ​​such as scilab, matlab, octave. So I'm looking for a good library (preferably an open source library) that supports C++ and good performance. It should have the following features:

  • it should support vector math (so it should allow you to easily define vectors and matrices, and operations between them, etc.);
  • it should allow you to generate random numbers using normal or uniform distributions (both unidimensional and bidimensional distributions);
  • it should allow to comfortably perform other operations such as the cumulative sum, the division of a vector (ie all its elements) for the same value, etc..

I read about Boost, but I did not find examples that explain how to use these features: I'm looking for a guide like "Boost C++ for scilab programmers"...

4

2 に答える 2

2

OpenCVは、行列とベクトル、および乱数発生器クラスをサポートしています。

行列クラス

ベクトルクラス

RNGクラス

于 2012-12-14T00:29:08.380 に答える
1

Eigenポイント1と3をカバーする優れたマトリックスおよびベクトルライブラリです。ポイント2に関しては、ランダムライブラリがたくさんあります。実際、次のように自分で簡単に書くこともできます。

http://www.cplusplus.com/forum/beginner/7445/

お役に立てれば。

PS。Eigen へのリンクはこちら:

http://eigen.tuxfamily.org/index.php?title=Main_Page

于 2012-12-14T00:27:16.047 に答える