|Re: [eigen] is MAP oneway ? (urgent)|
[ Thread 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
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,
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany