[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Multiarray
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 30 Jan 2009 20:41:25 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9XbyakF1QvaD+dZI7ZD0gDmi1SBRfpmEm+c5casas20=; b=HqX+lVdep1Ac7UbGTK5GxtC/tMqLW1MMwM/r9G5DG1EItGqbicTwj15lWcIe4Xgi5f DiczzF0mDcAzdO3M2ySLFlLSugwdsW+R9uuCk2s55Y4gGmcS1bDFdZbWP4vyXl5ck0nT pUoU+QPqLRTNoKGBYWOtqFkMILGw/Sgau06dc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rMgc+tvNcIxxn2IokZO7gVjnNATqha9d/u5s7j+F+yW0DchJk2TygCh/ui/8IujVg4 LQthB5zPN0TJvvqTr/W3PdRxJUvCkaMhr5OCJvIkjeTOH+nAzSM7zjPUi8RJclevT/yJ +RciglYW/RL5FeQnOeUF1k99sM8uVF7hCuUPU=
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
>
>