Re: [eigen] Issues regarding Quaternion-alignment and const Maps |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Issues regarding Quaternion-alignment and const Maps
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 7 Jul 2010 11:22:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=7kDWAemUJRTHn2OOcdf8Ci2r0+ru7cTN5/kbS8a8xRU=; b=He3MijglvovIBnkZtE6wysXrE2JNGU03mAF0bmQivepzcPsuRQcHXfD+W7ent6zyCx nOe8FMvE2nSrPVOu2aKYRC5CJGeTi9kk7KaHyPks4nwhxkHVsnOo8IKRdzqGzhXiPJnM sFdbDAkA3mqDQWm3u2K4k8A+NRC6Axr52I2SY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=uZALJrIkMCUTLwY8QNHtvXnobcmBOvStEsRBcUCwOrBZiCH9F28/uVVIvKYCcnyHlw lD7qxaqlRrw8+/camHMoIG+wgX2w0d+W32a8b5pzeTlqRyPv6Hk8tvYq0PMeDbf5/PRm lhD5KTgm7C+cEp1y6fPcwZrtM0DVMiv6Wwjzo=
On Wed, Jul 7, 2010 at 11:03 AM, Hauke Heibel
<hauke.heibel@xxxxxxxxxxxxxx> wrote:
> On Wed, Jul 7, 2010 at 10:53 AM, Hauke Heibel
> <hauke.heibel@xxxxxxxxxxxxxx> wrote:
>> But then it seems to be working out of the box ...
>
> Not quite true since e.g.
>
> mymap(0,0) = 5;
>
> is working. ;(
>
> So there will be some more work involved.
yes, I think the main trick is to detect the const, and then propagate
it to MapBase such that the m_data pointer can be properly const
qualified if needed (using ei_meta_if<NeedConst,const
Scalar*,Scalar*>::ret), and then remove the const_cast in the
coeffRef/packetRef functions...
gael
>
> - Hauke
>
>
>