Re: [eigen] Map const correctness now fixed |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Map const correctness now fixed*From*: Jim Bosch <talljimbo@xxxxxxxxx>*Date*: Fri, 10 Dec 2010 12:25:11 -0800*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=bk56RPZ/aUKM6YvvBfPEHynWkROxluvCy97NzgQQOgA=; b=KCFQvunK2cdTRtIX4EvJtBjiK4RinfMy+F6ZKkrOSE/9T1XR+qf3iHU/6hq2VqTdyn IVEl/LkA6afsEkLR4Wr7eQWnbi8Lfdnf28DCy28mWoqSk4xdhrVczMJIS2anLb4yBmV7 IHmE8I8vyQk/pHx+HP/Od525dEXPD9LUb/jH4=*Domainkey-signature*: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=xl3WqwC71SjT2iQaqatcZS8qLNtYXmQgV2fKiIdLHs4aTgKOaebV9s1W1Aah6uzQQu oDjSYEQGd82ogD4hjySNe2o2wpq3taSsNFF0LZndjDJdKIHax2s8ulOB5+KdmmT/yTyH gVj7SkTBFNQreFA8uE1zm5xaJkE8gVJTHZ0hU=

On 12/10/2010 10:58 AM, Benoit Jacob wrote:

2010/12/10 Jim Bosch<talljimbo@xxxxxxxxx>:On 12/10/2010 07:25 AM, Benoit Jacob wrote:This was bug 54, http://eigen.tuxfamily.org/bz/show_bug.cgi?id=54Excellent! This applies to Block, Transpose, and other things with DirectAccessBit set too, right?There only ever was a problem with Map, right? Then, if you pass a Map as argument to other expressions, like Block<Map<...> >, then yes everything propagates.

Here's an example: void modify_matrix(Eigen::MatrixXd const & m) { Eigen::Transpose<Eigen::MatrixXd> t = m.transpose(); b(0, 0) = 1.0; }

Jim

**Follow-Ups**:**Re: [eigen] Map const correctness now fixed***From:*Benoit Jacob

**References**:**[eigen] Map const correctness now fixed***From:*Benoit Jacob

**Re: [eigen] Map const correctness now fixed***From:*Jim Bosch

**Re: [eigen] Map const correctness now fixed***From:*Benoit Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Map const correctness now fixed** - Next by Date:
**Re: [eigen] Map const correctness now fixed** - Previous by thread:
**Re: [eigen] Map const correctness now fixed** - Next by thread:
**Re: [eigen] Map const correctness now fixed**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |