Re: [eigen] eigen3 replacement of start/segment/end |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] eigen3 replacement of start/segment/end
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 20 Jul 2010 13:15:54 -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=VRd2hXv7mZOXPpTQ73ijoxPmfY1cpKUIhHvWtZp21OU=; b=Q4HtGm65mh45WXzYIvhmo6jBIGraRd6VsQJHITCdjIg3htiQoZNdm6OFNWsmG8kQ7x ywlx1aGNf/SFn5ojHN82zWKpz7Ykgmet5sUy6fKcr18I9O1ZeKptlXvMT3Lbj2af/Sai NrfspNxNuIgeWOJU5O8mzRPMmWn+z8BKGOXlg=
- 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=f2t1WVeCc6O5Vsn6QqakLfaig7/uPDxgvFckheM0mKH9zZwutplmfFb6f791W+5+nv 9J0wwgcBVM04NxQ4qbL5JMRFPigqn6wyXzC/hSGpsynMGL9+oqElJF+QMRFXy4AFZZdX jloFV9mVd35ygl+nKq2MnARrcScse4M432rqs=
.... as explained there:
http://eigen.tuxfamily.org/dox-devel/Eigen2ToEigen3.html#VectorBlocks
2010/7/20 Keir Mierle <mierle@xxxxxxxxx>:
> Start and end have been renamed to head and tail.
> Keir
>
> On Tue, Jul 20, 2010 at 8:33 AM, Helmut Jarausch
> <jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
>>
>> Hi
>>
>> I have on old eigen2 function working with dense matrices
>>
>> template<typename Derived>
>>
>> void process(MatrixBase<Derived>& DATA) {
>> Vector2d G;
>> G << 1.0, 2.0;
>>
>> DATA.template start<2>()+= G; // fails in Eigen3
>> DATA.template segment<2>(0)+= G;
>>
>> }
>>
>> How can this be upgraded to Eigen3.
>> Many thanks for a hint,
>> Helmut.
>>
>> --
>> Helmut Jarausch
>>
>> Lehrstuhl fuer Numerische Mathematik
>> RWTH - Aachen University
>> D 52056 Aachen, Germany
>>
>>
>>
>
>