Re: [eigen] is MAP oneway ? (urgent)

[ Thread Index | Date Index | More Archives ]

On 24 Jun, Benoit Jacob wrote:
> 2009/6/24 Helmut Jarausch <jarausch@xxxxxxxxxxxxxxxxxxx>:
>> Thanks, but unfortunately that raises another problem.
>> In   "void process..."   I have
>> DATA.segment<2>(ind)+= ...
>> or
>> DATA.start<2>()+= ...
>> which fails now.
> Ah yes, this is a c++ syntax weirdness that puzzles everyone. You have
> to add a "template" keyword after the dot:
> DATA.template segment<2>(ind)+= ...
Oh dear!
Do you understand now that I prefer Python whenever possible?
(But, unfortunately, this time I need all the number crunching power of
C++ and Eigen)

Thanks a lot.

Perhaps sometime in the future there will be a document
"Snags and Pitfalls due to C++" when using Eigen.


Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany

Mail converted by MHonArc 2.6.19+