[eigen] Multiarray

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hello,

First thank you very much for this great library!

I want to store dynamically sized matrices in a boost::multi_array :

        boost::multi_array<MatrixXd, 2> B(boost::extents[3][3]);

At runtime I get the following error from this call

Assertion failed: (rows > 0 && cols > 0 && "a matrix cannot be resized to 0 size"), function resize, file /usr/local/include/Eigen/ src/Core/Matrix.h, line 229.

Has anybody an idea how to solve this problem?

Tank you alot in advance,

Stefan

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/