Re: [eigen] is MAP oneway ? (urgent) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
On 24 Jun, Benoit Jacob wrote:
> 2009/6/24 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
>> Of course: process takes a VectorXd reference, but D is not a VectorXd.
>>
>> The biggest common denominator between VectorXd and Map<VectorXd> is
>> MatrixBase, so you want process to take a MatrixBase reference:
>>
>> template<typename Derived>
>> void process(const MatrixBase<Derived>& DATA);
>
> oops, remove the const here.
Thanks, but unfortunately that raises another problem.
In "void process..." I have
DATA.segment<2>(ind)+= ...
or
DATA.start<2>()+= ...
which fails now.
So, I need to convert (cast?) a MatrixBase<Derived> object
back to an VectorXd object - but how to?
Thanks for your patience,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany