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 07:48:53 -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 :content-transfer-encoding; bh=AcMaNLYlFeRRKgYJOF0Ap9qUxcqWyqbPTlrIttyRbFE=; b=doxGAh5tzN/Ezg5rxiRQy768DEvgPTikJZksW8yr6QIX7GB2zZHmXohyEHSBqAC7NL 2lSbubIiGhjkgi9Rgwe2Q5PTrfV6KsDkE5gl/KQVP9J6MmNB0C1N0ZRFH0h24f5Fy6iM whyZCLzVvy4ltkuUZydXlvxlbO1O75MbgAzHY=
- 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=rWABFatTHBV7aUu+2uSskQkVMLvT3bhSvf1LU+OlSDSQ1pmSBDegS+SZLI/VSjcGq3 ogO1qxljlc0UCkB0dnG+Mm/jpjaI1ic3lGXSY3l8NJvFZC71UeOMeI1D80gfn+xo+GQv n5UWT4z1Rf7qdcpr0XTqymm6UGHC1LkQxyHVg=
Map does not assume aligned by default. Unless you pass the Aligned
option, the pointer is not required to be aligned.
Benoit
2010/4/26 Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>:
> Hi,
>
> I am trying to trace down the std::vector issue and stumbled over the following.
>
> In HouseholderQR line 220, applyHouseholderOnTheLeft(...) is called
> with this raw pointer
>
> &m_temp.coeffRef(k+1)
>
> which is mapped as
>
> Map<typename ei_plain_row_type<PlainObject>::type> tmp(workspace,cols());
>
> and results in unaligned data because even if m_temp is aligned,
> m_temp.getData()+1 is not necessarily.
>
> How do we fix this? This does not help - I always thought it were
> affecting the Flags property
>
> Map<typename ei_plain_row_type<PlainObject>::type, Unaligned>
> tmp(workspace,cols());
>
> - Hauke
>
>
>