Re: [eigen] HouseholderQR bug?? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] HouseholderQR bug??
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 26 Apr 2010 10:12:21 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Du2KJKLOy0UsO/05HewFk/nesmTyRtr3u3TjcN2RpbA=; b=q7lYGv0BB780kD6CJgdX6CHCiKMYIyoSB8VDcynQdT8gBD+VtxpMlFzmQ5f66HldET WZ/hGSTK+CYWb9D4Frdis4XjQ3Dd5KeFFSyss34ZB0gliC29KBhzRJV8Cj+tlX0eTrGB uHvyeF0XhiISkmX6Rq+64Si1lK4BNBRgkuzVM=
- 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; b=jYWRerfXIPQfTZZakiEYIDrvoBC1TRe2PhbPZhsxYnuiiOY/yvt6NuVH4WEU/0tQZ6 dvojAb/8wa2qUGewtT1Ka8zg//gzPtvCVHuV5roUTVowvuDMJV7T3BQ8bbjcZ5P7XkKd G6Lv0n9YFuuyGkPJPKCNQtCJbhA6dlAoi1WH0=
I tried your test program, but for me it succeeds, I can't reproduce
the assert failure. linux gcc 4.5.0 x86-64.
2010/4/26 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> I think the problem is this that since
>
> RowMajor == 1 and DontAlign == 2
These are the Options passed to Matrix, not those passed to Map. They
should never be used for the Options parameter of Map. Do you think
they are used like that? That would be a bug.
>
> results in
>
> Map::Options = RowMajor|DontAlign = 3
>
> and since Aligned == 1 and Map::Options&Aligned == 1
>
> ei_traits<Map>::IsAligned = (Map::Options&Aligned == Aligned) = true
I tried, and it's actually false: the following program prints 0 here:
#include <Eigen/Core>
#include <iostream>
using namespace Eigen;
using namespace std;
int main()
{
typedef Matrix<double,1,Dynamic,1,1,Dynamic> T;
cout << ei_traits<Map<T> >::IsAligned << endl;
}
>
> - Hauke
>
>
>