Re: [eigen] Multiarray

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


Hi,

Your problem is caused by the fact that currently Eigen doesn't allow
assigning an uninitialized matrix to another matrix .... except if the
other matrix is uninitialized.

A simple test case is:
        MatrixXf A;
        MatrixXf B;
        B = A;

Somehow your boost code must be doing something like that internally.
Now I agree that this is annoying and should probably work, so I'm
going to look at it ASAP. But it's probably going to be in a few days
(it's not 100% trivial) and not part of the 2.0 release.

Cheers,
Benoit


2009/1/30 Stefan Ulbrich <s.ulbrich@xxxxxxxxxxxxxx>:
> 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/